758
Chapter 18
AFCAN Controller
User’s Manual U16580EE3V1UD00
Figure 18-17:
Recovery from bus-off state through normal recovery sequence
(b) Forced recovery operation that skips bus-off recovery sequence
The CAN module can be forcibly released from the bus-off state, regardless of the bus state, by
skipping the bus-off recovery sequence. Here is the procedure.
First, the CAN module requests to enter the initialization mode. For the operation and points to be
noted at this time, “Recovery from bus-off state through normal recovery sequence” on page 757.
Next, the module requests to enter an operation mode. At the same time, the CCERC bit of the
CnCTRL register must be set to 1.
As a result, the bus-off recovery sequence defined by the CAN protocol ISO 11898 is skipped, and
the module immediately enters the operation mode. In this case, the module is connected to the
CAN bus after it has monitored 11 consecutive recessive-level bits. For details, refer to the
processing in <~Reference>Figure 18-54 on page 859.
Caution:
This function is not defined by the CAN protocol ISO 11898. When using this func-
tion, thoroughly evaluate its effect on the network system.
(6)
Initializing CAN module error counter register (CnERC) in initialization mode
If it is necessary to initialize the CAN module error counter register (CnERC) and CAN module
information register (CnINFO) for debugging or evaluating a program, they can be initialized to the
default value by setting the CCERC bit of the CnCTRL register in the initialization mode. When ini-
tialization has been completed, the CCERC bit is automatically cleared to 0.
Cautions: 1. This function is enabled only in the initialization mode. Even if the CCERC bit is
set to 1 in a CAN operation mode, the CnERC and CnINFO registers are not initial-
ized.
2. The CCERC bit can be set at the same time as the request to enter a CAN opera-
tion mode.
»error-p
ass
ive«
00H
00H
≠
00H
00H
8
0H
≤
TEC[7:0]
≤
FFH
BOFF
b
it
in CnINFO
regi
s
ter
OPMODE[2:0]
in CnCTRL
regi
s
ter
(
us
er writing
s
)
OPMODE[2:0]
in CnCTRL
regi
s
ter
(
us
er re
a
ding
s
)
TEC[7:0]
in CnERC
regi
s
ter
REP
S
, REC[6:0]
in CnERC
regi
s
ter
TEC > FFH
≠
00H
≠
00H
≠
00H
FFH < TEC [7:0]
»
bus
-off«
»
bus
-off-recovery-
s
e
qu
ence«
»error-
a
ctive«
00H
≤
TEC[7:0]
<
8
0H
00H
≤
REP
S
, REC[6:0]
<
8
0H
00H
≤
REP
S
, REC[6:0]
≤
8
0H
<1>
<2>
<
3
>
Undefined
Summary of Contents for V850E/PH2
Page 6: ...6 Preface User s Manual U16580EE3V1UD00...
Page 16: ...16 User s Manual U16580EE3V1UD00...
Page 28: ...28 User s Manual U16580EE3V1UD00...
Page 32: ...32 User s Manual U16580EE3V1UD00...
Page 84: ...84 Chapter 2 Pin Functions User s Manual U16580EE3V1UD00 MEMO...
Page 144: ...144 Chapter 3 CPU Functions User s Manual U16580EE3V1UD00 MEMO...
Page 192: ...192 Chapter 5 Memory Access Control Function PD70F3187 only User s Manual U16580EE3V1UD00 MEMO...
Page 312: ...312 Chapter 9 16 Bit Timer Event Counter P User s Manual U16580EE3V1UD00 MEMO...
Page 534: ...534 Chapter 11 16 bit Timer Event Counter T User s Manual U16580EE3V1UD00...
Page 969: ...969 Chapter 20 Port Functions User s Manual U16580EE3V1UD00 MEMO...
Page 970: ...970 Chapter 20 Port Functions User s Manual U16580EE3V1UD00...
Page 976: ...976 Chapter 22 Internal RAM Parity Check Function User s Manual U16580EE3V1UD00 MEMO...
Page 984: ...984 Chapter 23 On Chip Debug Function OCD User s Manual U16580EE3V1UD00 MEMO...
Page 1006: ...1006 Chapter 24 Flash Memory User s Manual U16580EE3V1UD00 MEMO...
Page 1036: ...1036 Chapter 27 Recommended Soldering Conditions User s Manual U16580EE3V1UD00 MEMO...
Page 1046: ...1046 Appendix A Index User s Manual U16580EE3V1UD00 MEMO...
Page 1052: ...1052 User s Manual U16580EE3V1UD00...
Page 1053: ......