|
|
View previous topic :: View next topic |
Author |
Message |
Orcino Borges Guest
|
VREF in PCH |
Posted: Tue Feb 25, 2003 9:02 am |
|
|
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 |
Posted: Tue Feb 25, 2003 9:33 am |
|
|
:=
:=
:= 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 |
|
|
|
|
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
|