AnsweredAssumed Answered

SPC570s PIT

Question asked by david tomsa on Aug 3, 2017
Latest reply on Aug 7, 2017 by david tomsa

Hi,

 

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.

Outcomes