Interrupt Control Registers
INTCON1: Interrupt Control Register1
bit31-17
Reserved
bit16
SS0: Single Vector Shadow Register Set Bit
?
bit14
FRZ : Freeze in debug exeption Mode bit
1: Debug Exception Mode에서 수행을 멈춘다.
0: Debug Exception Mode에서도 수행을 계속한다.
bit13
Reserved
bit12
MVEC: Multi Vector Configuration bit
1: 멀티 벡터 인터럽트를 사용
0: 싱글 벡터 인터럽트를 사용
bit11
Reserved
bit10-8
TPC<2:0>: Temporal Proximity Control bits
?
bit7-5
Reserved
bit4
INT4EP: External Interrput 4 Edge Polarity Control bit
1: Rising Edge
0: Falling Edge
bit3
INT3EP: External Interrput 3 Edge Polarity Control bit
1: Rising Edge
0: Falling Edge
bit2
INT2EP: External Interrput 2 Edge Polarity Control bit
1: Rising Edge
0: Falling Edge
bit1
INT1EP: External Interrput 1 Edge Polarity Control bit
1: Rising Edge
0: Falling Edge
bit0
INT0EP: External Interrput 0 Edge Polarity Control bit
1: Rising Edge
0: Falling Edge
외부 인터럽트 소스
void Init_eint()
{
//외부 인터럽트 초기화
mPORTESetPinsDigitalIn((BIT_8 ));
mINT1ClearIntFlag();
mINT1IntEnable(1);
mINT1SetIntPriority(3);
mINT1SetEdgeMode(1);// Rising Edge
}
//*
//외부 인터럽트 루틴
void __ISR(_EXTERNAL_1_VECTOR,ipl3) _extint1(void)
{
mINT1ClearIntFlag();
}
'Enginius > Firmware' 카테고리의 다른 글
| PIC32 - I2C (0) | 2010.02.17 |
|---|---|
| PIC32 - GPIO (0) | 2010.02.17 |
| PIC32 - ADC (0) | 2010.02.17 |
| PIC32 - 기본 페리 (0) | 2010.01.05 |
| AVR - atmega128 pwm 쓰기 (0) | 2010.01.01 |