Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 15th October 2007, 12:09 PM   (permalink)
Default pic16f887 analogue reference

Am I correct in assuming that I can read the 600mV reference on address 1111, and use this to determine the true VCC?
spuffock is offline  
Old 15th October 2007, 12:34 PM   (permalink)
Default

Quote:
Originally Posted by spuffock
Am I correct in assuming that I can read the 600mV reference on address 1111, and use this to determine the true VCC?
Yes, select Vdd as the reference to the A/D converter and the 600 mV reference as the input (setting CHS0/3, as you said).
eng1 is offline  
Old 15th October 2007, 03:10 PM   (permalink)
Default

Good find. I have a project at the moment where this would be useful. The data sheet is a little unclear as to how this can be used, it appears that the only place that the Fixed Vref goes is to the ADC input - is this correct? I'll probably get time tomorrow to try this but just thought I'd ask (it's midnight here). The reason I ask is because I'm using the comparators with the ladder Vref and the diagrams in the data sheet suggest that this would still work to measure Vdd.

Mike.
Pommie is offline  
Old 15th October 2007, 03:20 PM   (permalink)
Default

I believe there's an application note that specifically describes using the hardware for that function. I'll see if I can find it for you Mike.

Mike


<added>

It's application note AN1072A - Measuring Vdd using the 0.6v reference
Mike, K8LH is offline  
Old 15th October 2007, 03:34 PM   (permalink)
Default

Hi Mike,

Thanks for the AN, that will come in useful tomorrow. It doesn't however answer my question, can you have both the ladder Vref and the Fixed Vref at the same time. I.E ladder to comparator inputs and fixed to ADC input.

Mike.
Pommie is offline  
Old 15th October 2007, 05:19 PM   (permalink)
Default

Quote:
Originally Posted by Pommie
it appears that the only place that the Fixed Vref goes is to the ADC input - is this correct?
The fixed Vref can be used as the reference to for the comparators too. CVref and the fixed Vref are multiplexed (see bits C1Rsel and C2Rsel).
Also, CVref can be selected as the input of the A/D converter according to the datasheet (ADCON0, CHS0/3).
I haven't used both at the same time but I agree with you, the diagrams in the datasheet suggest that it's possible.

Quote:
Originally Posted by Pommie
The reason I ask is because I'm using the comparators with the ladder Vref and the diagrams in the data sheet suggest that this would still work to measure Vdd.

Last edited by eng1; 15th October 2007 at 05:23 PM.
eng1 is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Using Oscilloscopes mechie Electronic Theory 9 29th November 2007 10:49 PM
Voltage reference with a zener diode Futterama General Electronics Chat 7 28th January 2006 09:35 AM
Reference voltage question. MrMikey83 Micro Controllers 4 24th December 2005 07:48 AM
PIC18F4410 Analogue Input Woes yapyapyap Micro Controllers 3 14th November 2005 08:26 AM
A Microcontroller based Analogue Waveforms Analyzer Project km Electronic Projects Design/Ideas/Reviews 76 30th June 2004 07:40 PM



All times are GMT. The time now is 12:07 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker