This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LS0714: DCAN as Wakeup Source

Part Number: TMS570LS0714

An example of how to set the registers correctly to wakeup by DCAN activity would be helpful, if available.

Please clarify the TRM:

24.11.2 Wakeup From Global Power-Down Mode

When the DCAN module is in global power-down mode, a CAN bus activity detection circuit exists, which can be active, if enabled. If this circuit is active,on occurrence of a dominant CAN bus level, the DCAN will set the WakeUpPnd bit in Error and Status Register (DCAN ES).

So ... how does one "enable it"?  It is desired to use the "global power-down mode" not the "local power down" mode as described more completely with the PDR flag.

Related question,  how does one clear wakeup enable bits, which seem to be set by default and there is only the "WAKEENASET2" register as described in 15.8.10.

 

  • Hello Kime,

    The CAN detection circuit is enabled by setting WUBA bit of DCAN CTL register. Both global and local power down down mode use this detection circuit. If DCAN is in local power down mode, on occurrence of a dominant CAN bus level, the DCAN will automatically start the wake up sequence (clear PDR bit --clear PDA bit--Set WakeUpPnd bit--clear Init bit).

    If DCAN is in global power down mode, on occurrence of a dominant CAN bus level, the DCAN will set the WakeUpPnd bit (SIE register), the application has to manually clear the bit (PSPWRDWNCLRx) in PCR module, and clear the Init bit in CAN control register.

    The WAKE_INT is a signal from the OR gate of all the wake up signals including DCAN WakeUpPnd. You can mask the WakeUpPnd interrupt by setting WAKEENACLR register.