09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

<strong>RM0090</strong> Controller area network (bxCAN)<br />

Table 98. Transmit mailbox mapping<br />

Offset to transmit mailbox base address Register name<br />

Receive mailbox<br />

When a message has been received, it is available to the software in the FIFO output<br />

mailbox. Once the software has handled the message (e.g. read it) the software must<br />

release the FIFO output mailbox by means of the RFOM bit in the CAN_RFR register to<br />

make the next incoming message available. The filter match index is stored in the MFMI field<br />

of the CAN_RDTxR register. The 16-bit time stamp value is stored in the TIME[15:0] field of<br />

CAN_RDTxR.<br />

Table 99. Receive mailbox mapping<br />

Offset to receive mailbox base<br />

address (bytes)<br />

Figure 234. CAN error state diagram<br />

0 CAN_TIxR<br />

4 CAN_TDTxR<br />

8 CAN_TDLxR<br />

12 CAN_TDHxR<br />

Register name<br />

0 CAN_RIxR<br />

4 CAN_RDTxR<br />

8 CAN_RDLxR<br />

12 CAN_RDHxR<br />

ERROR ACTIVE<br />

When 128 * 11 recessive bits occur:<br />

When TEC or REC > 127<br />

When TEC and REC < 128,<br />

BUS OFF<br />

ERROR PASSIVE<br />

When TEC > 255<br />

ai15903<br />

Doc ID 018909 Rev 3 674/1416

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

Saved successfully!

Ooh no, something went wrong!