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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

578 Views
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 Kudos
3 Replies

488 Views
1090097669
Contributor III

Hi,

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

0 Kudos

488 Views
lama
NXP TechSupport
NXP TechSupport

Hi,

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

Best regards,

Ladislav

0 Kudos

488 Views
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 Kudos