My problem is that interrupts don't work correctly.
I use CW 10.2 and the new micro 9s08PT60.
My interrupt function is:
interrupt VectorNumber_Vmtim1 void Vmtim1_ISR(void)
{
MTIM1_SC_TRST = TRUE; // Interrupt flag reset
PORT_PTED ^= 0x01;
}
After 2/3 times PTE0 changes status, the micro is reset.
Watchdog is disabled.
I tried with another interrupts, with #pragma TRAP_PROC, with "Interrupt vector table", but the result is the same.
Any idea?
Thanks
Hi,
can you supply the asm related code? this way we can verify the correctness of the compiler configuration/results.
Some compiler (like Cosmic) generate the .ls file that contain both the source code and the related asm generated code.