UPD78F0838 Renesas Electronics Corporation., UPD78F0838 Datasheet - Page 546

no-image

UPD78F0838

Manufacturer Part Number
UPD78F0838
Description
8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
544
REPS, REC[6:0]
in C0ERC
register
OPMODE[2:0]
in C0CTRL
register
(user readings)
OPMODE[2:0]
in C0CTRL
register
(user writings)
TEC[7:0]
in C0ERC
register
BOFF bit
in C0INFO
register
(6) Initializing CAN module error counter register (C0ERC) in initialization mode
(b) Forced recovery operation that skips bus-off recovery sequence
If it is necessary to initialize the CAN module error counter register (C0ERC) and CAN module information
register (C0INFO) for debugging or evaluating a program, they can be initialized to the default value by
setting the CCERC bit of the C0CTRL register in the initialization mode. When initialization 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
Figure 15-17. Recovery Operation from Bus-off State through Normal Recovery Sequence
80H
»error-passive«
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, refer to (a) Recovery operation from bus-off state through normal recovery sequence.
Next, the module requests to enter an operation mode. At the same time, the CCERC bit of the C0CTRL
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 Figure
15-56. Bus-Off Recovery (Expect Normal Operation Mode with ABT).
Caution This function is not defined by the CAN protocol ISO 11898. When using this function,
TEC[7:0]
2. The CCERC bit can be set at the same time as the request to enter a CAN operation
TEC > FFH
00H
00H
1 in a CAN operation mode, the C0ERC and C0INFO registers are not initialized.
mode.
thoroughly evaluate its effect on the network system.
80H
FFH
REPS, REC[6:0]
FFH < TEC [7:0]
»bus-off«
<1>
Preliminary User’s Manual U19748EJ1V0UD
CHAPTER 15 CAN CONTROLLER
FFH
00H
<2>
»bus-off-recovery-sequence«
00H
Undefined
00H
00H
<3>
00H
00H
»error-active«
00H
TEC[7:0]
REPS, REC[6:0]
80H
80H

Related parts for UPD78F0838