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 PCH

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







VREF in PCH
PostPosted: Tue Feb 25, 2003 9:02 am     Reply with quote

Hi, in PCH with 18f458 the comand

setup_vref(OFF); not compiler and send a erro

"UNDEFINED INDENTIFER". I need VREF in a VDD.


Help me.

Thanks

Orcino
___________________________
This message was ported from CCS's old forum
Original Post ID: 12083
R.J.Hamlett
Guest







Re: VREF in PCH
PostPosted: Tue Feb 25, 2003 9:33 am     Reply with quote

:=
:=
:= Hi, in PCH with 18f458 the comand
:=
:= setup_vref(OFF); not compiler and send a erro
:=
:= "UNDEFINED INDENTIFER". I need VREF in a VDD.
:=
:=
:= Help me.
The 18F458, does not have a internally configrable Vref (which this function is for). It allows you to connect the Vref input, to Vdd, AN3, or the internal _fixed_ reference voltage. This is done by the 'SETUP_ADC_PORTS' function. The 'SETUP_VREF' function, is confined to chips that have a configurable voltage divider internally attached to the Vref source, and this function then controls which 'tap' from the divider is used.
You need to look up which analog inputs you want to use, and then select the option with this combination, and Vref=Vdd. The options available are listed in the include file for the chip.

Best Wishes
___________________________
This message was ported from CCS's old forum
Original Post ID: 12084
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