card_claud
Newbie level 4
Hi !
I am using for the first time PIC24, programming in C and using MPLab + Hitech.
I do not know why, but I am not getting the interrupt work. I put a breakpoint inside the interrupt, but seems it never comes inside...
Someone could help me, please ?
My code:
Setting:
//----- TIMER1 -------------
T1CON = 1000000000000000 ; //ON, FOSC/2, 16bits
PR1 = 0;
TMR1 = 0;
T1IF = 0;
T1IE = 1; //Seta interupção
And Interrupt vetor
void interrupt TMR01 (void) @ T1_VCTR
{
while (1) { };
}
Thanks in advance
I am using for the first time PIC24, programming in C and using MPLab + Hitech.
I do not know why, but I am not getting the interrupt work. I put a breakpoint inside the interrupt, but seems it never comes inside...
Someone could help me, please ?
My code:
Setting:
//----- TIMER1 -------------
T1CON = 1000000000000000 ; //ON, FOSC/2, 16bits
PR1 = 0;
TMR1 = 0;
T1IF = 0;
T1IE = 1; //Seta interupção
And Interrupt vetor
void interrupt TMR01 (void) @ T1_VCTR
{
while (1) { };
}
Thanks in advance