15.08.2013 Views

DESIGN OF A CUSTOM ASIC INCORPORATING CAN™ AND 1 ...

DESIGN OF A CUSTOM ASIC INCORPORATING CAN™ AND 1 ...

DESIGN OF A CUSTOM ASIC INCORPORATING CAN™ AND 1 ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 5.28 CAN Transmit Data Segment Registers.<br />

DB7 – DB0: Data Bits. These data bits in the eight data segment registers make up the<br />

bytes of data to be transmitted. The number of bytes to be transmitted is determined by<br />

the Data Length Code bits (bits 3 – 0) as defined in the TRTDL Register (See Section<br />

5.3.14).<br />

5.3.16 CAN Module Receive Buffer Registers Overview<br />

There are two full Receive Buffers (each ten bytes in length) used to handle all incoming<br />

messages being passed from the BSP to the CPU. Each Receive Buffer is capable of storing an<br />

entire message and has a layout identical to that of the Transmit Buffer. They are arranged in a<br />

double buffered configuration, with each buffer occupying the same area of the memory map.<br />

When the first buffer is filled it can be read by the CPU as a second incoming message is being<br />

transferred by the BSP into the second buffer. After the CPU has read a message from the<br />

Receive Buffer it can release that buffer, making it available for storing the next incoming<br />

message and allowing the second buffer to be read once it contains a complete message. The<br />

layout of these registers is shown in Table 5.17.<br />

Table 5.17 Receive Buffer Registers.<br />

Register Address Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0<br />

Identifier (RBI) 30h ID10 ID9 ID8 ID7 ID6 ID5 ID4 ID3<br />

RTR/DLC (RRTDL) 31h ID2 ID1 ID0 RTR DLC3 DLC2 DLC1 DLC0<br />

DSB1 (RDS1) 32h DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0<br />

DSB2 (RDS2) 33h DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0<br />

DSB3 (RDS3) 34h DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0<br />

DSB4 (RDS4) 35h DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0<br />

DSB5 (RDS5) 36h DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0<br />

DSB6 (RDS6) 37h DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0<br />

DSB7 (RDS7) 38h DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0<br />

DSB8 (RDS8) 39h DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0<br />

164

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

Saved successfully!

Ooh no, something went wrong!