How to wakeup CAN BUS when CPU is in the Wait mode(S12XEP100)

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

How to wakeup CAN BUS when CPU is in the Wait mode(S12XEP100)

732 Views
helh_girl
Contributor I

hello,every one ,

I have a S12XEP100 demo kit  here .

When I perform  asm WAI; even though I have set 

CAN0CTL0_CSWAI = 0;
CAN0CTL0_WUPE = 1;

I send CAN frame from CANKing , it doesn't affect my kit .This means that CPU is also in wait mode,it doesn't  work. CAN you  help me?

 

Best regards.

Yours Eva

Labels (1)
0 Kudos
1 Reply

323 Views
DEMO9S12XEP100
Contributor II

 

Hello

 

I work with borad S12XEP100 also but in my application i dont use the life phase so i configured my MSCAN in normal mode . bu i read the datascheet i think that you must write this bit before sleep mode entry for the selected function to take effect.

 

if you want to manage the wake up mode you must manage the sleep mode also thus you must write correctly all bits in all registrs assiated at thise life phse.

0 Kudos