MC9S12G128 wake up from Pseudo Stop Mode and enter can wake up isr

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

MC9S12G128 wake up from Pseudo Stop Mode and enter can wake up isr

647 次查看
1090097669
Contributor III

after the chip sleeps, power on again after a period of time (About 20s), MCU may automatically trigger a CAN wakeup interrupt, resulting in an incorrect process,How to avoid this phenomenon?

Blow is my code:

void interrupt Vcanwkup_ISR(void)
{
CANRFLG_WUPIF = 1;
CANRFLG = 0x80;
CANCTL0 = 0x00;
CANRIER = 0x01;
System_WakeupByCanFlag = 1;

}

MCU_Stop();
if(System_WakeupByCanFlag == 1)
{
System_WakeupByCanFlag = 0;
_MCU_Restart();
}

0 项奖励
3 回复数

557 次查看
1090097669
Contributor III

Hi,

How can I prohibit CAN Tx's action, or how to prohibit the chip from responding to CAN ACK?

0 项奖励

557 次查看
lama
NXP TechSupport
NXP TechSupport

Hi,

the only possibility is to have CAN initialized in a Listen only mode.

Best regards,

Ladislav

0 项奖励

557 次查看
lama
NXP TechSupport
NXP TechSupport

Hi,

There is no reason to be behavior strange if normal communication mode is correct.

Could you please compare your project with attached examples?

Rx is device assigned for sleep mode and Tx device wakes it up.

Best regards,

Ladislav

0 项奖励