
Controller area network (bxCAN)
RM0351
1580/1830
DocID024597 Rev 5
this mode, the bxCAN clock is stopped, however software can still access the bxCAN
mailboxes.
If software requests entry to
initialization
mode by setting the INRQ bit while bxCAN is in
Sleep
mode, it must also clear the SLEEP bit.
bxCAN can be woken up (exit Sleep mode) either by software clearing the SLEEP bit or on
detection of CAN bus activity.
On CAN bus activity detection, hardware automatically performs the wakeup sequence by
clearing the SLEEP bit if the AWUM bit in the CAN_MCR register is set. If the AWUM bit is
cleared, software has to clear the SLEEP bit when a wakeup interrupt occurs, in order to exit
from Sleep mode.
Note:
If the wakeup interrupt is enabled (WKUIE bit set in CAN_IER register) a wakeup interrupt
will be generated on detection of CAN bus activity, even if the bxCAN automatically
performs the wakeup sequence.
After the SLEEP bit has been cleared, Sleep mode is exited once bxCAN has synchronized
with the CAN bus, refer to
Figure 503: bxCAN operating modes
. The Sleep mode is exited
once the SLAK bit has been cleared by hardware.
Figure 503. bxCAN operating modes
1. ACK = The wait state during which hardware confirms a request by setting the INAK or SLAK bits in the
CAN_MSR register
2. SYNC = The state during which bxCAN waits until the CAN bus is idle, meaning 11 consecutive recessive
bits have been monitored on CANRX
46.5 Test
mode
Test mode can be selected by the SILM and LBKM bits in the CAN_BTR register. These bits
must be configured while bxCAN is in Initialization mode. Once test mode has been
selected, the INRQ bit in the CAN_MCR register must be reset to enter Normal mode.
6OHHS
1RUPDO
5HVHW
,1546<1&6/((3
DL
6/$.
,1$.
6/$.
,1$.
6/$.
,1$.
,154$&.
6/((3
,154$&.
6/((3
,154$&.
6/((3
$&.
6/((3
6<1&,154
,QLWLDOL]DWLRQ