30.01.2015 Views

UM10211 - Standard ICs

UM10211 - Standard ICs

UM10211 - Standard ICs

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

NXP Semiconductors<br />

<strong>UM10211</strong><br />

Chapter 12: LPC2300 CAN1, 2<br />

Table 205. Receive Data register A (CAN1RDA - address 0xE004 4028, CAN2RDA - address<br />

0xE004 8028) bit description<br />

Bit Symbol Function Reset<br />

Value<br />

15:8 Data 2 If the DLC field in CANRFS ≥ 0010, this contains the first Data byte<br />

of the current received message.<br />

23:16 Data 3 If the DLC field in CANRFS ≥ 0011, this contains the first Data byte<br />

of the current received message.<br />

31:24 Data 4 If the DLC field in CANRFS ≥ 0100, this contains the first Data byte<br />

of the current received message.<br />

6.12 Receive Data Register B (CAN1RDB - 0xE004 402C, CAN2RDB -<br />

0xE004 802C)<br />

0 X<br />

0 X<br />

0 X<br />

This register contains the 5th through 8th Data bytes of the current received message. It is<br />

read-only in normal operation, but can be written for testing purposes if the RM bit in<br />

CANMOD is 1. See Table 12–191 for details on specific CAN channel register address.<br />

Table 206. Receive Data register B (CAN1RDB - address 0xE004 402C, CAN2RDB - address<br />

0xE004 802C) bit description<br />

Bit Symbol Function Reset<br />

Value<br />

7:0 Data 5 If the DLC field in CANRFS ≥ 0101, this contains the first Data byte<br />

of the current received message.<br />

15:8 Data 6 If the DLC field in CANRFS ≥ 0110, this contains the first Data byte<br />

of the current received message.<br />

23:16 Data 7 If the DLC field in CANRFS ≥ 0111, this contains the first Data byte<br />

of the current received message.<br />

31:24 Data 8 If the DLC field in CANRFS ≥ 1000, this contains the first Data byte<br />

of the current received message.<br />

0 X<br />

0 X<br />

0 X<br />

RM<br />

Set<br />

RM<br />

Set<br />

0 X<br />

6.13 Transmit Frame Information Register (CAN1TFI[1/2/3] - 0xE004 40[30/<br />

40/50], CAN2TFI[1/2/3] - 0xE004 80[30/40/50])<br />

When the corresponding TBS bit in CANSR is 1, software can write to one of these<br />

registers to define the format of the next transmit message for that Tx buffer. Bits not listed<br />

read as 0 and should be written as 0.<br />

The values for the reserved bits of the CANxTFI register in the Transmit Buffer should be<br />

set to the values expected in the Receive Buffer for an easy comparison, when using the<br />

Self Reception facility (self test), otherwise they are not defined.<br />

The CAN Controller consist of three Transmit Buffers. Each of them has a length of 4<br />

words and is able to store one complete CAN message as shown in Figure 12–29.<br />

The buffer layout is subdivided into Descriptor and Data Field where the first word of the<br />

Descriptor Field includes the TX Frame Info that describes the Frame Format, the Data<br />

Length and whether it is a Remote or Data Frame. In addition, a TX Priority register allows<br />

the definition of a certain priority for each transmit message. Depending on the chosen<br />

Frame Format, an 11-bit identifier for <strong>Standard</strong> Frame Format (SFF) or an 29-bit identifier<br />

for Extended Frame Format (EFF) follows. Note that unused bits in the TID field have to<br />

be defined as 0. The Data Field in TDA and TDB contains up to eight data bytes.<br />

<strong>UM10211</strong>_1<br />

© NXP B.V. 2007. All rights reserved.<br />

User manual Rev. 01 — 27 March 2007 228 of 613

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!