
DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10360_0
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 00.06 — 5 June 2009
337 of 808
NXP Semiconductors
UM10360
Chapter 16: LPC17xx CAN1/2
(8)
(9)
7.7 CAN Error Warning Limit register (CAN1EWL - 0x4004 4018,
CAN2EWL - 0x4004 8018)
This register sets a limit on Tx or Rx errors at which an interrupt can occur. It can be read
at any time but can only be written if the RM bit in CANmod is 1. The default value (after
hardware reset) is 96.
Note that a content change of the Error Warning Limit Register is possible only if the
Reset Mode was entered previously. An Error Status change (Status Register) and an
Error Warning Interrupt forced by the new register content will not occur until the Reset
Mode is cancelled again.
7.8 CAN Status Register (CAN1SR - 0x4004 401C, CAN2SR -
0x4004 801C)
This register contains three status bytes in which the bits not related to transmission are
identical to the corresponding bits in the Global Status Register, while those relating to
transmission reflect the status of each of the 3 Tx Buffers.
t
TSEG1
t
SCL
TSEG1
1
+
(
)
×
=
t
TSEG2
t
SCL
TSEG2
1
+
(
)
×
=
Table 303. CAN Error Warning Limit register (CAN1EWL - address 0x4004 4018, CAN2EWL -
address 0x4004 8018) bit description
Bit Symbol Function
Reset
Value
RM
Set
7:0 EWL
During CAN operation, this value is compared to both the Tx and
Rx Error Counters. If either of these counter matches this value,
the Error Status (ES) bit in CANSR is set.
96
10
= 0x60 X
Table 304. CAN Status Register (CAN1SR - address 0x4004 401C, CAN2SR - address 0x4004 801C) bit description
Bit
Symbol Value
Function
Reset
Value
RM
Set
0
RBS
Receive Buffer Status. This bit is identical to the RBS bit in the CANxGSR.
0
0
1
DOS
Data Overrun Status. This bit is identical to the DOS bit in the CANxGSR.
0
0
2
TBS1
Transmit Buffer Status 1.
1
1
0(locked)
Software cannot access the Tx Buffer 1 nor write to the corresponding
CANxTFI, CANxTID, CANxTDA, and CANxTDB registers because a
message is either waiting for transmission or is in transmitting process.
1(released)
Software may write a message into the Transmit Buffer 1 and its CANxTFI,
CANxTID, CANxTDA, and CANxTDB registers.
3
TCS1
Transmission Complete Status.
1
x
0(incomplete)
The previously requested transmission for Tx Buffer 1 is not complete.
1(complete)
The previously requested transmission for Tx Buffer 1 has been successfully
completed.
4
RS
Receive Status. This bit is identical to the RS bit in the GSR.
1
0