i have a doubt about the interrupt handler on pic24 :
the official document explain this,
Interrupt can be written in C exactly as described in the compiler.
Then it was discussed about TWO interrupt handler, C method and ASM method.
readind the manual several time but i don’t understand if i can use C or if i have to use ASM ?
here an example about the Scondary UART Rx Interrupt.
Can i use this code ? is it correct ?
unsigned char screen_pos;
void attribute((interrupt, no_auto_psv)) _U2RXInterrupt(void)
IFS1bits.U2RXIF = 0;
message = ReadUART2();
WriteUART2( message +1 );
info_serie.screen_mess = message;
info_serie.screen_pos = 10;
thank you for help.