Searching \ for '16F676, will this work for me?' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=16F
Search entire site for: '16F676, will this work for me?'.

Truncated match.
PICList Thread
'16F676, will this work for me?'
2003\01\31@100003 by John Pearson

flavicon
face
I want to read a DC voltage, .200 to 2.000 volts, into a PC serial port. I need .001volt resolution.

I was thinking of the 16f676 with the 10 bit AD converter with a reference voltage set at about 2.000 volts.

Would this provide the results I need or are there factors involved I am not aware of.

It doesn't have any SPI, but would it be to difficult to bit bang the info out a port pin?

--
http://www.piclist.com hint: To leave the PICList
spam_OUTpiclist-unsubscribe-requestTakeThisOuTspammitvma.mit.edu>

2003\01\31@110941 by Larry Bradley

flavicon
face
The 10 bit A/D has 1 part in 1024 resolution. If you use a 2 volt
reference, the resolution will be only be about 2 mv.

There are a pile of external A/D converters you can use - I like the Maxim
products - the MAX187 is a 12 bit serial (SPI) A/D with a built-in 4.096
volt reference; there make other versions without the reference, so you can
supply your own. A 12 bit converter gives you 1 part in 4096. With a 2 volt
reference, that is 0.5 millivolt resolution. Other companies make similar
products - Linear Technology, National ... Not cheap though. Check their
web sites, then Digikey for prices. Some places (e.g. Maxim) will send you
samples.

Note that when working with analog stuff, layout, bypassing, and power
supply filtering are important - you are dealing with f**k-all voltages, as
an old professor used to say. Read the data sheets carefully - they usually
describe what needs to be done.

I've never done the bit-banging in ASM, since I use Picbasic most of the
time, but the protocol isn't difficult - the data sheets for the A/D will
show you all the timing diagrams. And someone here must have done the SPI
stuff.

As to output to the PC serial port, again. I'm sure there are people who
have serial I/O routines - I know there are Microchip App notes with serial
I/O routines.

Larry


At 07:09 AM 1/31/2003 -0800, you wrote:
{Quote hidden}

Larry Bradley
Orleans (Ottawa), Ontario, CANADA

--
http://www.piclist.com hint: To leave the PICList
piclist-unsubscribe-requestspamKILLspammitvma.mit.edu>

2003\01\31@150913 by Dave Tweed

face
flavicon
face
John Pearson <.....xeroKILLspamspam.....CMC.NET> wrote:
> I want to read a DC voltage, .200 to 2.000 volts, into a PC serial port.
> I need .001volt resolution.
>
> I was thinking of the 16f676 with the 10 bit AD converter with a =
> reference voltage set at about 2.000 volts.

Well, to start with, to read a span of 1.8 volts with 0.001 volt
resolution, you're going to need at least 11 bits.

-- Dave Tweed

--
http://www.piclist.com hint: To leave the PICList
EraseMEpiclist-unsubscribe-requestspam_OUTspamTakeThisOuTmitvma.mit.edu>

More... (looser matching)
- Last day of these posts
- In 2003 , 2004 only
- Today
- New search...