
43.4.13 Error and Status 2 register (CANx_ESR2)
This register reports some general status information.
Address: Base a 38h offset
Bit
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
R
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Bit
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
CANx_ESR2 field descriptions
Field
Description
31–23
Reserved
This field is reserved.
This read-only field is reserved and always has the value 0.
22–16
LPTM
Lowest Priority Tx Mailbox
If CAN_ESR2[VPS] is asserted, this field indicates the lowest number inactive Mailbox (see the
CAN_ESR2[IMB] bit description). If there is no inactive Mailbox then the Mailbox indicated depends on
CAN_CTRL1[LBUF] bit value. If CAN_CTRL1[LBUF] bit is negated then the Mailbox indicated is the one
that has the greatest arbitration value (see the "Highest priority Mailbox first" section). If
CAN_CTRL1[LBUF] bit is asserted then the Mailbox indicated is the highest number active Tx Mailbox. If a
Tx Mailbox is being transmitted it is not considered in LPTM calculation. If CAN_ESR2[IMB] is not
asserted and a frame is transmitted successfully, LPTM is updated with its Mailbox number.
15
Reserved
This field is reserved.
This read-only field is reserved and always has the value 0.
14
VPS
Valid Priority Status
This bit indicates whether CAN_ESR2[IMB] and CAN_ESR2[LPTM] contents are currently valid or not. It is
asserted upon every complete Tx arbitration process unless the CPU writes to Control and Status word of
a Mailbox that has already been scanned, that is, it is behind Tx Arbitration Pointer, during the Tx
arbitration process. If there is no inactive Mailbox and only one Tx Mailbox that is being transmitted then
VPS is not asserted. This bit is negated upon the start of every Tx arbitration process or upon a write to
Control and Status word of any Mailbox.
NOTE: CAN_ESR2[VPS] is not affected by any CPU write into Control Status (C/S) of a MB thatis
blocked by abort mechanism. When CAN_MCR[AEN] is asserted, the abort code write in C/S of a
MB that is being transmitted (pending abort), or any write attempt into a Tx MB with CAN_IFLAG
set is blocked.
0
Contents of IMB and LPTM are invalid.
1
Contents of IMB and LPTM are valid.
13
IMB
Inactive Mailbox
If ESR2[VPS] is asserted, this bit indicates whether there is any inactive Mailbox (CODE field is either
0b1000 or 0b0000). This bit is asserted in the following cases:
Table continues on the next page...
Chapter 43 Flex Controller Area Network (FlexCAN)
KV4x Reference Manual, Rev. 2, 02/2015
Freescale Semiconductor, Inc.
Preliminary
1115
Summary of Contents for freescale KV4 Series
Page 2: ...KV4x Reference Manual Rev 2 02 2015 2 Preliminary Freescale Semiconductor Inc...
Page 60: ...KV4x Reference Manual Rev 2 02 2015 60 Preliminary Freescale Semiconductor Inc...
Page 128: ...Debug Security KV4x Reference Manual Rev 2 02 2015 128 Preliminary Freescale Semiconductor Inc...
Page 138: ...Boot KV4x Reference Manual Rev 2 02 2015 138 Preliminary Freescale Semiconductor Inc...
Page 1358: ...KV4x Reference Manual Rev 2 02 2015 1358 Preliminary Freescale Semiconductor Inc...