Resetting Error Counter Cnerc Of Can Module; Figure 18-27: Transition To Operation Modes - NEC V850E/PH2 User Manual

32-bit single-chip microcontroller
Table of Contents

Advertisement

OPMODE[2:0] = 00H
and CAN bus is busy.
[Normal operation
mode with ABT]
OPMODE[2:0]=02H
0] = 00H
s is busy.
[Normal operation
mode]
OPMODE[2:0]=01H
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 the
OPMODE[2:0] bits are changed to 000B). After issuing a request to change the mode to the initializa-
tion mode, read the OPMODE[2:0] bits until their value becomes 000B to confirm that the module has
entered the initialization mode (see <~Reference>Figure 18-36 on page 841).

18.8.5 Resetting error counter CnERC of CAN module

If it is necessary to reset the CAN module error counter CnERC and CAN module information register
CnINFO when re-initialization or forced recovery from the bus-off status is made, set the CCERC bit of
the CnCTRL register to 1 in the initialization mode. When this bit is set to 1, the CnERC and CnINFO
registers are cleared to their default values.
Chapter 18 AFCAN Controller

Figure 18-27: Transition to operation modes

[Receive-only mode]
OPMODE[2:0]=03H
OPMODE[2:0] = 03H
OPMODE[2:0] = 00H
and interframe space
OPMODE[2:0] = 02H
OPMODE[2:0] = 00H
and interframe space
INIT mode
OPMODE[2:0] = 00H
OPMODE[2:0] = 01H
GOM = 1
All CAN modules are
in INIT mode and GOM = 0
CAN module
channel invalid
RESET released
RESET
User's Manual U16580EE3V1UD00
OPMODE[2:0] = 00H
and CAN bus is busy.
[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
OPMODE[2:0] = 05H
OPMODE[2:0] = 00H
and interframe space
EFSD = 1
and GOM = 0
OPMODE[2:0] = 00H
and CAN bus is busy.
OPMODE
and CAN b
[Self-test mode]
OPMODE[2:0]=05H
809

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mupd70f3187

Table of Contents