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 CCS Technical Support

exterior interrupts - PIC18f2331

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



Joined: 04 Feb 2009
Posts: 83
Location: PA

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

exterior interrupts - PIC18f2331
PostPosted: Wed Apr 15, 2009 8:47 pm     Reply with quote

hello all!

I am using a PIC18f2331 that has three interrupts (INT0, INT1, INT2).
when using these I have the global interrupts enabled, but I currently have the following:

Code:

#INT_EXT
function 1{
.
.
}
#INT_EXT1
function 2{
.
.
}
#INT_EXT2
function 3{
.
.
}

Is this the correct format for INT0, INT1, and INT2 respectively??

I was unclear why a EXT0 was not used...

I may be just completely confused on this but would appreciate any help.

Thank you all as always,
deperkin
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Apr 15, 2009 11:15 pm     Reply with quote

Quote:
Is this the correct format for INT0, INT1, and INT2 respectively??

Yes.

Quote:
I was unclear why a EXT0 was not used...

For historical reasons. Initially, Microchip only had one external interrupt
which they called "INT" (on the 16F877, for example). CCS copied that
terminology.
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