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

A?D and external trigger

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



Joined: 11 Apr 2004
Posts: 2

View user's profile Send private message Send e-mail

A?D and external trigger
PostPosted: Mon Apr 12, 2004 7:58 pm     Reply with quote

Question 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

View user's profile Send private message

PostPosted: Mon Apr 12, 2004 9:07 pm     Reply with quote

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
Guest








PostPosted: Tue Apr 13, 2004 6:27 pm     Reply with quote

thank you PCM programmer.... I am still learning Embarassed
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