i'm using Hightec Studio/Compiler an i try to set the PIT for a SPC570s µC.
InterruptInstall(IRQ_ID_PIT0_CH0, callback, 1)
This function set the following:INTC_PSR226 = 0x8001 and set the Pointer to the funcion 'callback' into the vector table.
Now my Problem, everytime when an Interrupt occurrs, the programm crashed. In Debug Window, the Controller stops at: 0x00000010: FF FF FF FF Unknown Instruction .
It would be nice if anyone could help me.