496
Chapter 14
FCAN Interface Function
Preliminary User’s Manual U15839EE1V0UM00
(4)
CAN 1 to 4 information registers (C1LAST to C4LAST)
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 4 for the derivatives µPD703129(A) and
µPD703129(A1), x = 1 to 2 for the derivative µPD703128(A)).
These registers can be read-only in 8-bit and 16-bit units.
Figure 14-36:
CAN 1 to 4 Information Registers (C1LAST to C4LAST)
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
1054H
00FFH
C2LAST
0
0
0
0
LERR3 LERR2 LERR1 LERR0 LREC7 LREC6 LREC5 LREC4 LREC3 LREC2 LREC1 LREC0
1094H
00FFH
C3LAST
0
0
0
0
LERR3 LERR2 LERR1 LERR0 LREC7 LREC6 LREC5 LREC4 LREC3 LREC2 LREC1 LREC0
10D4H
00FFH
C4LAST
0
0
0
0
LERR3 LERR2 LERR1 LERR0 LREC7 LREC6 LREC5 LREC4 LREC3 LREC2 LREC1 LREC0
1114H
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 31
Message buffer number of the last received message
32 to 255
Reserved (not possible)
Summary of Contents for mPD703128
Page 6: ...6 Preliminary User s Manual U15839EE1V0UM00 ...
Page 20: ...20 Preliminary User s Manual U15839EE1V0UM00 ...
Page 32: ...32 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 154: ...154 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 238: ...238 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 356: ...356 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 522: ...522 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 600: ...600 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 610: ...610 Preliminary User s Manual U15839EE1V0UM00 ...
Page 612: ......