Wakeup with CAN on 9S08DZ32

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Wakeup with CAN on 9S08DZ32

421件の閲覧回数
jamesclem
Contributor I

I am trying to wakeup the micro from stop mode with CAN activity but having no luck.  I have an external interrupt on port B that wakes it up. I set a breakpoint at the line after STOP and the port wakeup hits the BP but the CAN wakeup does nothing. CAN works fine in run mode and I verified that SLPAK is true before STOP. Below is the code to configure the CAN wakeup

 

 

 

   CANCTL0_SLPRQ = 1;

   while (CANCTL1_SLPAK == 0) {};

   CANCTL0_WUPE = 1;

 

   CANRIER_WUPIE = 1;

 

    STOP;

 

 

BP->  wakeup_init();

 

Any advice?

ラベル(1)
0 件の賞賛
返信
0 返答(返信)