View previous topic :: View next topic |
Author |
Message |
deperkin
Joined: 04 Feb 2009 Posts: 83 Location: PA
|
exterior interrupts - PIC18f2331 |
Posted: Wed Apr 15, 2009 8:47 pm |
|
|
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
|
|
Posted: Wed Apr 15, 2009 11:15 pm |
|
|
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. |
|
|
|