Wakeup with CAN on 9S08DZ32

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

Wakeup with CAN on 9S08DZ32

585 次查看
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 回复数