CW10.2 MC9s08PT60 interrupts don't work

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

CW10.2 MC9s08PT60 interrupts don't work

993 次查看
Denisauro
Contributor I

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

标签 (1)
标记 (1)
0 项奖励
回复
3 回复数

624 次查看
jorgeplascencia
Contributor I

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.

 

0 项奖励
回复

624 次查看
Denisauro
Contributor I

Nobody tell me nothing?

0 项奖励
回复

624 次查看
RoGa
Contributor I

me too. Are you resolt ?

 

0 项奖励
回复