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 support@ccsinfo.com

Vref in 12F615

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



Joined: 06 May 2013
Posts: 33
Location: Toronto

View user's profile Send private message

Vref in 12F615
PostPosted: Mon May 06, 2013 1:07 pm     Reply with quote

Hi,

I am working with PIC12F615 and trying to use 1.2V ref voltage for ADC. But unable to find proper Syntax. I looked in to the header file but couldn't find it.
Need Help
Ttelmah



Joined: 11 Mar 2010
Posts: 19436

View user's profile Send private message

PostPosted: Mon May 06, 2013 2:40 pm     Reply with quote

Because it can't be done.....

The internal Vref, cannot be used as the ADC Vref.
The ADC, can only have it's Vref, from the supply rails, or from the Vref input pin. Quote from data sheet:
"The ADC voltage reference is software selectable to
either VDD or a voltage applied to the external reference
pins."
The minimum Vref supported by the ADC, is 2.2v, with 2.5v minimum for full accuracy.
The reference, as well as being too low in voltage, cannot supply the current needed by the ADC.

You can _read_ the reference as an input to the ADC, but not use it as Vref.

Best Wishes
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