next up previous contents index
Next: 4.5.4 Linking and Assembling Up: 4.5 The PIC14 port Previous: 4.5.2 Adding New Devices   Contents   Index

4.5.3 Interrupt Code

For the interrupt function, use the keyword `__interrupt' with level number of 0 (PIC14 only has 1 interrupt so this number is only there to avoid a syntax error - it ought to be fixed). E.g.:

void Intr(void) __interrupt 0 
{ 
  T0IF = 0; /* Clear timer interrupt */ 
}



2008-12-05