NEC UPD703116 User Manual page 584

32-bit single-chip microcontrollers
Table of Contents

Advertisement

(22) CAN1 information register (C1LAST)
The C1LAST register indicates the CAN module's error information and the number of the message buffer
received last.
This register is read-only, in 16-bit units.
15
14
13
C1LAST
0
0
0
Bit position
Bit name
11 to 8
LERR3 to
LERR0
7 to 0
LREC7 to
LREC0
Note xxxx: CAN message buffer registers can be allocated to the xxxx addresses as programmable
peripheral I/O registers. Note, however, that the xxxx addresses cannot be changed after being
set.
m = 2, 6, A, E
584
CHAPTER 11 FCAN CONTROLLER
12
11
10
9
8
7
0
LERR3
LERR2
LERR1
LERR0
LREC7
Indicates the last error information.
LERR3
LERR2
0
0
0
0
0
0
0
0
0
1
0
1
0
1
0
1
1
0
Other than above
Caution Since the LERR3 to LERR0 bits cannot be cleared, the current status is
retained until the next error occurs.
Indicates the last received message number.
0 to 31: The number of the message buffer last received
32 to 255: Not used
User's Manual U14492EJ5V0UD
6
5
4
3
2
1
LREC6
LREC5
LREC4
LREC3
LREC2
LREC1
Function
LERR1
LERR0
0
0
Error not detected
0
1
Bit error
1
0
Stuff error
1
1
CRC error
0
0
Form error
0
1
ACK error
1
0
Arbitration lost (only in single shot
mode (C1DEF register's SSHT bit = 1))
1
1
CAN overrun error
0
0
Wake-up from CAN bus
Undefined
0
Address
Initial value
Note
LREC0
xxxxmC54H
00FFH
Last error information

Advertisement

Table of Contents
loading

Table of Contents