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

722件の閲覧回数
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 返答(返信)

632件の閲覧回数
1090097669
Contributor III

Hi,

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

0 件の賞賛
返信

632件の閲覧回数
lama
NXP TechSupport
NXP TechSupport

Hi,

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

Best regards,

Ladislav

0 件の賞賛
返信

632件の閲覧回数
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 件の賞賛
返信