
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
325 of 808
NXP Semiconductors
UM10360
Chapter 16: LPC17xx CAN1/2
In the following register tables, the column “Reset Value” shows how a hardware reset
affects each bit or field, while the column “RM Set” indicates how each bit or field is
affected if software sets the RM bit, or RM is set because of a Bus-Off condition. Note that
while hardware reset sets RM, in this case the setting noted in the “Reset Value” column
prevails over that shown in the “RM Set” column, in the few bits where they differ. In both
columns, X indicates the bit or field is unchanged.
7.1
CAN Mode r
egister (CAN1MOD - 0x4004 4000, CAN2MOD -
0x4004 8000)
The contents of the Mode Register are used to change the behavior of the CAN
Controller. Bits may be set or reset by the CPU that uses the Mode Register as a
read/write memory. Reserved bits are read as 0 and should be written as 0.
TFI1
Tx Info1
Tx Info
Tx Info
Tx Info
TID1
Tx Identifier
Tx Identifier
Tx Identifier
Tx Identifier
TDA1
Tx Data
Tx Data
Tx Data
Tx Data
TDB1
Tx Data
Tx Data
Tx Data
Tx Data
Table 295. CAN1 and CAN2 controller register summary
Generic
Name
Operating Mode
Reset Mode
Read
Write
Read
Write
Table 296. CAN Wake and Sleep registers
Name
Description
Access Reset Value
Address
CANSLEEPCLR
Allows clearing the current CAN channel sleep state as well
as reading that state.
R/W
0
0x400F C110
CANWAKEFLAGS
Allows reading the wake-up state of the CAN channels.
R/W
0
0x400F C114
Table 297. CAN Mode register (CAN1MOD - address 0x4004 4000, CAN2MOD - address 0x4004 8000) bit description
Bit Symbol
Value
Function
Reset
Value
RM
Set
0
RM
Reset Mode.
1
1
0(normal)
The CAN Controller is in the Operating Mode, and certain registers can not be
written.
1(reset)
CAN operation is disabled, writable registers can be written and the current
transmission/reception of a message is aborted.
1
LOM
Listen Only Mode.
0
x
0(normal)
The CAN controller acknowledges a successfully received message on the
CAN bus. The error counters are stopped at the current value.
1(listen only)
The controller gives no acknowledgment, even if a message is successfully
received. Messages cannot be sent, and the controller operates in “error
passive” mode. This mode is intended for software bit rate detection and “hot
plugging”.
2
STM
Self Test Mode.
0
x
0(normal)
A transmitted message must be acknowledged to be considered successful.
1(self test)
The controller will consider a Tx message successful even if there is no
acknowledgment received.
In this mode a full node test is possible without any other active node on the bus
using the SRR bit in CANxCMR.