CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

16lf1503 and FVR used as Vref+ for ADC

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Sam_63



Joined: 21 Oct 2011
Posts: 17

View user's profile Send private message

16lf1503 and FVR used as Vref+ for ADC
PostPosted: Fri Feb 24, 2012 2:23 am     Reply with quote

I've read though many post here and reviewed the data sheet but, it's still not entirely clear if it's possible to route/use a FVR voltage, say the 2.048V for example, as the Vref+ on the ADC.

The block diagram really doesn't indicate much here but obviously, the FVR line goes into the ADC block but, can this FVR voltage somehow be connected to Vref+ line internal to the ADC block?

.....setup_adc_ports(sAN0 | VSS_FVR2.048); //pseudo code

any help would be much appreciated
Ttelmah



Joined: 11 Mar 2010
Posts: 19504

View user's profile Send private message

PostPosted: Fri Feb 24, 2012 2:53 am     Reply with quote

Not as the Vref.

First part, look at the data sheet. Figure 15-1, shows the FVR arriving at the ADC input multiplexer, as effectively AN31.

Then read the ADC specs, and see that Vref, can come from either Vdd, or the Vref input pin only.

Key point is that with a fixed voltage available to read, you can effectively calibrate whatever other source you use. So you can select the FVR input as an input voltage, use Vdd as your 'Vref' for the ADC, read the input, and you then can calculate the voltage that is actually on the Vdd pin. You then have a calibrated voltage to work from.
So it is available as a 'calibration' source, but not as a 'reference' source.

Best Wishes
Sam_63



Joined: 21 Oct 2011
Posts: 17

View user's profile Send private message

PostPosted: Fri Feb 24, 2012 8:21 am     Reply with quote

Got it, thx Ttel!

Guess I was hoping there was a "un-seen" SPDT switch inside the ADC box for this purpose. That would have been just too convenient, bummer
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group