BAT32G1x9 user manual | Chapter 22 CAN control
959 / 1149
Rev.1.02
The
PMODE
Begin
no
t
INITmode
Set upCCERC bit
Configure C0CTRL register (set
OPMODE)
C0ERC and C0INFO
Register clearing?
not
be
end
Fig.22-62.Reinitialize
yes
Set the CnBRP
register, cnBTR
register
Set the CnIE registers
Set the CnMASK
register
Initialize the message buffer
Note: After the CAN module is set to initialization mode, do not immediately set it to another operating mode. If you
need to immediately set the module to a different operating mode, visitCnCTRL and CnGMCTRLRegisters
other than registers (for example, setting a message buffer).
Remarks OPMODE: normal operation mode, normal operation mode with ABT, receive only mode,
single-shot mode, self-test mode.