AtomSoft
Well-Known Member
Damn interrupts:
This is the configs for the interrup. Im trying to set INT1 & INT2 where :
INT1 = Low Priority
INT2 = HIGH Priority
Any thoughts of why this isnt working? It seems to only jump to the "high_isr".
I have the 1hz thing from DS1306 to RB1 and RB2 is the INT0 from DS1306
This is the configs for the interrup. Im trying to set INT1 & INT2 where :
INT1 = Low Priority
INT2 = HIGH Priority
Code:
/* Interrupt Items */
RCON = 0x80;
INTCON = 0xC0;
INTCON2 = 0x80;
INTCON3 = 0x98;
/**********************************
Interrupt Code
***********************************/
#pragma code low_vector=0x18
void interrupt_at_low_vector(void)
{
_asm GOTO low_isr _endasm
}
#pragma code /* return to the default code section */
#pragma interruptlow low_isr
void low_isr (void)
{
myTmp = PORTB;
UpdateTime();
INTCON3 = 0xFC;
}
#pragma code high_vector=0x08
void interrupt_at_high_vector(void)
{
_asm GOTO high_isr _endasm
}
#pragma code /* return to the default code section */
#pragma interrupt high_isr
void high_isr (void)
{
myTmp = PORTB;
alarmOut = 1;
RTCRegRead(0x07);
INTCON3 = 0xFC;
}
Any thoughts of why this isnt working? It seems to only jump to the "high_isr".
I have the 1hz thing from DS1306 to RB1 and RB2 is the INT0 from DS1306
Last edited: