I started a project on a 16f877a and I was using a 3.3V Vref for the analog port.
I could set A0 to A2 as analog input and A3 as a Vref !
How can I right that for the 18f4550 ?
Can I still do it ?
Thanks
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Mon Feb 16, 2009 7:06 pm
Look in the ADC section of the 18F4550.h file. It tells how to do it.
It lists the constants to be used with setup_adc_ports().
Quote:
c:\Program Files\picc\Devices\18F4550.h
boily
Joined: 27 Jan 2009 Posts: 19
Posted: Tue Feb 17, 2009 7:55 am
yeah I look into that but can't find how to set the Vref :
Code:
//////// Standard Header file for the PIC18F4550
++++++++++++++++
Header File removed.
Reason: Forum Rule #10
10. Don't post the CCS example code or drivers, or ask for such code
and drivers. Please do NOT copy this code into the forums.
This includes header files for devices (example 18f452.h).
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