PDA

View Full Version : ADCIN VRef



Tobias
- 6th July 2008, 15:33
I have a PIC16F876A. On pin A.5 I want to monitor a 0-5v signal. I am not too sure about what to do with the VREF+ pin. Can I just hook up 5V from the power regulator? Do I need to connect VREF- to ground? Is a cap suggested on the A.5 line? I looked over the site for a schematic and struck out.
Thanks
Toby

skimask
- 7th July 2008, 05:16
I have a PIC16F876A. On pin A.5 I want to monitor a 0-5v signal. I am not too sure about what to do with the VREF+ pin. Can I just hook up 5V from the power regulator? Do I need to connect VREF- to ground? Is a cap suggested on the A.5 line? I looked over the site for a schematic and struck out.
Thanks
Toby

Depending on how you have your A/D converter registers set up. Either they can both be internally referenced (Vref+ = Vdd, Vref- = Vss), or one or the other or both can be externally referenced. It's in the analog section of the datasheet.

rhino
- 7th July 2008, 15:18
Toby -
Check out Bruce's site for some good write ups on how to use A/D converters.... http://www.rentron.com/PicBasic1.htm
That will show you a couple of different ways of doing it.

Tobias
- 7th July 2008, 17:20
Thanks guys