Resetting Error Counter Cnerc Of Can Module - NEC V850E/RS1 User Manual

32-/16-bit single-chip microcontroller with can interface
Table of Contents

Advertisement

OPMODE[2:0] = 00H
and CAN bus is busy.
The transition from the initialization mode to an operation mode is controlled by the bit string
OPMODE[2:0] in the CnCTRL register.
Changing from one operation mode into another requires shifting to the initialization mode in between.
Do not change one operation mode to another directly; otherwise the operation will not be guaranteed.
Requests for transition from an operation mode to the initialization mode are held pending when the
CAN bus is not in the interframe space (i.e., frame reception or transmission is in progress), and the
CAN module enters the initialization mode at the first bit in the interframe space (the values of
OPMODE[2:0] are changed to 00H). After issuing a request to change the mode to the initialization
mode, read the OPMODE[2:0] bits until their values become 000B to confirm that the module has
entered the initialization mode (refer to Figure 16-58, "Re-initialization," on page 661).
Remark:

16.8.5 Resetting error counter CnERC of CAN module

If it is necessary to reset the CAN module error counter CnERC and the CAN module information regis-
ter CnINFO when re-initialization or forced recovery from the bus-off state is made, set the CCERC bit
of the CnCTRL register to 1 in the initialization mode. When this bit is set to 1, the CAN module error
counter CnERC and the CAN module information register CnINFO are cleared to their default values.
Remark:
628
Downloaded from
Elcodis.com
electronic components distributor
Chapter 16 FCAN Controller
Figure 16-50: Transition to Operation Modes
OPMODE[2:0] = 00H
and CAN bus is busy.
[Normal operation
mode with ABT]
OPMODE[2:0]=02H
OPMODE[2:0] = 00H
and interframe space
OPMODE[2:0] = 02H
OPMODE[2:0] = 00H
[Normal operation
and interframe space
mode]
OPMODE[2:0]=01H
OPMODE[2:0] = 01H
GOM = 1
All CAN modules are
in INIT mode and GOM = 0
RESET released
RESET
n = 0, 1
m = 0 to 31
n = 0, 1
m = 0 to 31
User's Manual U16702EE3V2UD00
OPMODE[2:0] = 00H
and CAN bus is busy.
[Receive-only mode]
OPMODE[2:0]=03H
OPMODE[2:0] = 03H
[Single-shot mode]
OPMODE[2:0]=04H
OPMODE[2:0] = 00H
and interframe space
OPMODE[2:0] = 04H
OPMODE[2:0] = 00H
and interframe space
INIT mode
OPMODE[2:0] = 05H
OPMODE[2:0] = 00H
OPMODE[2:0] = 00H
and interframe space
EFSD = 1
and GOM = 0
CAN module
channel invalid
OPMODE[2:0] = 00H
and CAN bus is busy.
OPMODE[2:0] = 00H
and CAN bus is busy.
[Self-test mode]
OPMODE[2:0]=05H

Advertisement

Table of Contents
loading

Table of Contents