|
Gurus, what is wrong here?
/*INT0 Interrupt config*/ #pragma code uart_int_service = 0x08 void low_isr(void) void ext_int0_isr(void) Всем ответившим заранее спасибо
E-mail:
info@telesys.ru
#include
TRISB=0xFF;
INTCON2bits.RBPU = 0; /*???Just in case*/
INTCON2bits.INTEDG0 = 0;/*Interrupt on falling edge*/
INTCONbits.INT0IE = 1; /*Enable PortB changes Interrupt*/
INTCON |= 0xC0;
.....
#pragma interruptlow low_isr save=section(".tmpdata")
{
if(INTCONbits.INT0IF)
{
ext_int0_isr();
}
}
{
PORTBbits.RB1 ^= 1;
INTCONbits.INT0IF = 0;
}
Ответы