But this code does not seem to be a good match for my processor (18F87K22). Most of these registers are different. Can someone help me work out what is required for this processor?Enable code:
intcon.PEIE = 1; // Enable peripheral interrupts
intcon.GIE = 1; // Enable global interrupts
pie1.RCIE = 1; // Enable USART receive interrupts
Disable code:
pie1.RCIE = 0; // Disable USART receive interrupts
Handler code:
if (pir1 & (1 << RCIF))
{
FCM_%n(); // call selected macro
clear_bit(pir1, RCIF); // clear interrupt
}
TIA, JethroNull