GD32F403xx User Manual
604
Initial working mode
When the conf iguration of CAN bus communication is needed to be changed, the CAN must
enter initial working mode.
When IWMOD bit in CAN_CTL register is set, the CAN enters the initial working mode. Then
the IWS bit in CAN_STAT register is set.
Initial working mode to sleep working mode: set SLPWMOD bit and clear IWMOD bit in
CAN_CTL register.
Initial working mode to normal working mode: clear IWMOD bit and clear SLPWMOD bit in
CAN_CTL register.
Normal working mode
The CAN could communicate with other CAN communication nodes in normal working mode.
To enter normal working mode: clear IWMOD and SLPWMOD bit in CAN_ CTL register.
Normal working mode to sleep working mode: set SLPWMOD bit in CAN_CTL register and
wait the current transmission or reception completed.
Normal working mode to initial working mode: set IWMOD bit in CAN_CTL register, and wait
the current transmission or reception completed.
22.3.2.
Communication modes
The CAN interf ace has four communication modes:
◼
Silent communication mode.
◼
Loopback communication mode.
◼
Loopback and silent communication mode.
◼
Normal communication mode.
Silent communication mode
Silent communication mode means reception available and transmission disable.
The RX pin of the CAN could detect the signal from the network and the TX pin always holds
logical one.
When the SCMOD bit in CAN_BT register is set, the CAN enters the silent communication
mode. When it is cleared, the CAN leaves silent communication mode.
Silent communication mode is useful for monitoring the network messages.
Loopback communication mode
Loopback communication mode means the transmitted messages are transferred into the Rx