434
Chapter 13
FCAN Interface Function
Preliminary User’s Manual U14913EE1V0UM00
(4)
CAN 1 to 3 information registers (C1LAST to C3LAST)
The CxLAST registers return the number of the last received message and last CAN protocol error
of the corresponding CAN module x
(x = 1 to 3).
These registers can be read-only in 8-bit and 16-bit units.
Figure 13-36: CAN 1 to 3 Information Registers (C1LAST to C3LAST)
Notes:
1. The register address is calculated according to the following formula:
effective address = P address offset
2. This error code only occurs in single-shot mode (SSHT bit of the CxDEF register = 1).
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Address
Offset
Note 1
Initial
value
C1LAST
0
0
0
0
LERR3 LERR2 LERR1 LERR0 LREC7 LREC6 LREC5 LREC4 LREC3 LREC2 LREC1 LREC0
854H
00FFH
C2LAST
0
0
0
0
LERR3 LERR2 LERR1 LERR0 LREC7 LREC6 LREC5 LREC4 LREC3 LREC2 LREC1 LREC0
894H
00FFH
C3LAST
0
0
0
0
LERR3 LERR2 LERR1 LERR0 LREC7 LREC6 LREC5 LREC4 LREC3 LREC2 LREC1 LREC0
8D4H
00FFH
Bit Position
Bit Name
Function
11 to 8
LERR3 to
LERR0
Holds the code of the last CAN protocol error.
Remark:
The LERR3 to LERR0 bits cannot be cleared. Thus these bits remain
unchanged until the next error occurs.
7 to 0
LREC7 to
LREC0
Holds the message buffer number of the last received message.
LERR3
LERR2
LERR1
LERR0
Code of Last CAN Protocol Error
0
0
0
0
No error (reset state only)
0
0
0
1
CAN bus bit error
0
0
1
0
CAN bus stuff error
0
0
1
1
CAN bus CRC error
0
1
0
0
CAN bus form error
0
1
0
1
CAN bus acknowledgement error
0
1
1
0
CAN bus arbitration lost
Note 2
0
1
1
1
CAN module overrun error
1
0
0
0
CAN wake-up from CAN bus
Others than above
Reserved
LREC7 to LREC0
Receive Message Buffer Number
0 to 63
Message buffer number of the last received message
64 to 254
Reserved (not possible)
255
No message has been received
Summary of Contents for V850E/CA1 ATOMIC
Page 6: ...6 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 52: ...52 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 144: ...144 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 162: ...162 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 224: ...224 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 308: ...308 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 512: ...512 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 564: ...564 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 566: ...566 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 584: ...584 Preliminary User s Manual U14913EE1V0UM00 MEMO ...