NEC V850ES/F 3-L Series User Manual page 574

32-bit single-chip microcontroller
Table of Contents

Advertisement

Chapter 18
(7)
Access
Address
Initial Value
Note
574
Set
Clear
OPMODE1
OPMODE1
0
1
Other than above
Set
Clear
OPMODE2
OPMODE2
0
1
Other than above
CnLEC - CANn module last error information register
The CnLEC register provides the error information of the CAN protocol.
This register can be read/written in 8-bit units.
<CnRBaseAddr> + 052
00
. The register is initialized by any reset.
H
7
6
0
0
1.
The contents of the CnLEC register are not cleared when the CAN module
changes from an operation mode to the initialization mode.
2.
If an attempt is made to write a value other than 00
by software, the access is ignored.
LEC2 LEC1 LEC0 Last CAN protocol error information
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
User's Manual U18743EE1V2UM00
Setting of OPMODE1 bit
1
OPMODE1 bit is cleared to 0.
0
OPMODE1 bit is set to 1.
OPMODE1 bit is not changed.
Setting of OPMODE2 bit
1
OPMODE2 bit is cleared to 0.
0
OPMODE2 bit is set to 1.
OPMODE2 bit is not changed.
H
5
4
3
0
0
0
No error
Stuff error
Form error
ACK error
Bit error. (The CAN module tried to transmit a recessive-level
bit as part of a transmit message (except the arbitration field),
but the value on the CAN bus is a dominant-level bit.)
Bit error. (The CAN module tried to transmit a dominant-level
bit as part of a transmit message, ACK bit, error frame, or
overload frame, but the value on the CAN bus is a
recessive-level bit.)
CRC error
Undefined
CAN Controller (CAN)
2
1
0
LEC2
LEC1
LEC0
to the CnLEC register
H

Advertisement

Table of Contents
loading

Table of Contents