
BAT32G1x9 user manual | Chapter 22 CAN control
924 / 1149
Rev.1.02
Figure 22-52. Transition to operating mode
The transition from initialization mode to operating mode is controlled by the bit string OPMODE [2:0] in
the CnCTRL register.
Changing from one mode of operation to another requires a transition from the two to an initialization
mode. Do not directly change one mode of operation to another, otherwise the operation is not guaranteed.
When the CAN bus is not in the inter-frame space (i.e. the frame receive or transmit is in progress) and the
CAN module is in the inter-frame space (the value of OPMODE [2:0] is changed to 00H), the application
transition from operating mode to initialization mode is pending. After making a request to change the mode to
initialization mode, read the OPMODE [2:0] bit until its value changes to 000B to confirm that the module has
entered initialization mode (see Fig.22-62).
22.8.5
Resets the CAN Module Error Counter cnERC
If you need to reset the CAN module error counter CnERC and the CAN module information register
CnINFO, when reinitializing or forced recovery from the bus shutdown state, set the CCPERC bit of the
CnCTRL register to 1 in initialization mode. When this bit is set to 1, the CAN module error counter CnERC
and the CAN module information register CnINFO will be cleared to their default values.
OPMODE[2:0]=00H
LikeN
bus busy
[Receive mode
only].
OPMODE[2:0]=03H
OPMODE[2:0]=00H
CAN bus busy
OPMODE[2:0]=00H
CAN bus busy
[In
normal
operating mode
with
Abbot].
OPMODE[2:0]=02H
OPMODE[2:0]=03H
OPMODE[2:0]=00H
Inter-frame space
[Single-shot mode].
OPMODE[2:0]=04H
OPMODE[2:0]=00H
Inter-frame space
OPMODE[2:0]=04H
OPMODE[2:0]=00H
CAN bus busy
OPMODE[2:0]=02H
OPMODE[2:0]=00H
Inter-frame space
OPMODE[2:0]=00H
CAN bus busy
OPMODE [2:0] =
01H
OPMODE[2:0]=00H
Inter-frame space
IniTmode
OPMODE[2:0]=00H
OPMODE[2:0]=05H
OPMODE[2:0]=01H
[Self-test mode].
OPMODE[2:0]=05H
OPMODE[2:0]=00H
Inter-frame space
GOM=1
All
CANs are in
IniT
mode GOM=0
EFSD=1
和
GOM=0
The CAN
module
channel is
invalid
Release Reset
Reset Reset