I am new to the PIC controls and little rusty on C. How do I trigger an A/D from pin RB0. I need the header and code.
I am using a PIC18F258
I think #bit REST_INTERRUPT = intcon3.1 for one header
and code as
RESET_INTERRUPT=0
enable_interrupts (INT_EXT0)
but I get message that INT_EXTO is not defined.
I know this is stupid but I am new to it.
IF you want the whole code I am using let me know. I modified an example.
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Mon Apr 12, 2004 9:07 pm
When you need to know the names of constant values
that CCS uses in their library functions, you should look
in the appropriate .H file for your PIC. It will tell you
the proper constant name to use.
You should look in the 18F258.H file. It is in this folder:
c:\Program Files\Picc\Devices
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