09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

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.

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

24.7.2 Time triggered communication mode<br />

In this mode, the internal counter of the CAN hardware is activated and used to generate the<br />

Time Stamp value stored in the CAN_RDTxR/CAN_TDTxR registers, respectively (for Rx<br />

and Tx mailboxes). The internal counter is incremented each CAN bit time (refer to<br />

Section 24.7.7: Bit timing). The internal counter is captured on the sample point of the Start<br />

Of Frame bit in both reception and transmission.<br />

24.7.3 Reception handling<br />

For the reception of CAN messages, three mailboxes organized as a FIFO are provided. In<br />

order to save CPU load, simplify the software and guarantee data consistency, the FIFO is<br />

managed completely by hardware. The application accesses the messages stored in the<br />

FIFO through the FIFO output mailbox.<br />

Valid message<br />

A received message is considered as valid when it has been received correctly according to<br />

the CAN protocol (no error until the last but one bit of the EOF field) and It passed through<br />

the identifier filtering successfully, see Section 24.7.4: Identifier filtering.<br />

Figure 230. Receive FIFO states<br />

EMPTY<br />

FMP=0x00<br />

FOVR=0<br />

Valid Message<br />

Received<br />

Release<br />

Mailbox<br />

Release<br />

Mailbox<br />

RFOM=1<br />

Release<br />

Mailbox<br />

RFOM=1<br />

PENDING_1<br />

FMP=0x01<br />

FOVR=0<br />

PENDING_2<br />

FMP=0x10<br />

FOVR=0<br />

PENDING_3<br />

FMP=0x11<br />

FOVR=0<br />

Valid Message<br />

Received<br />

Valid Message<br />

Received<br />

Valid Message<br />

Received<br />

Release<br />

Mailbox<br />

RFOM=1<br />

OVERRUN<br />

FMP=0x11<br />

FOVR=1<br />

Valid Message<br />

Received<br />

Doc ID 018909 Rev 3 668/1416

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

Saved successfully!

Ooh no, something went wrong!