29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Controller area network (bxCAN)<br />

RM0008<br />

Bits 25:24 SJW[1:0]: Resynchronization jump width<br />

These bits define the maximum number of time quanta the CAN hardware is allowed to<br />

lengthen or shorten a bit to perform the resynchronization.<br />

t RJW = t CAN x (SJW[1:0] + 1)<br />

Bit 23 Reserved, forced by hardware to 0.<br />

Bits 22:20 TS2[2:0]: Time segment 2<br />

These bits define the number of time quanta in Time Segment 2.<br />

t BS2 = t CAN x (TS2[2:0] + 1)<br />

Bits 19:16 TS1[3:0]: Time segment 1<br />

These bits define the number of time quanta in Time Segment 1<br />

t BS1 = t CAN x (TS1[3:0] + 1)<br />

For more information on bit timing, please refer to Section 22.7.7: Bit timing on page 558.<br />

Bits 15:10 Reserved, forced by hardware to 0.<br />

Bits 9:0 BRP[9:0]: Baud rate prescaler<br />

These bits define the length of a time quanta.<br />

t q = (BRP[9:0]+1) x t PCLK<br />

22.9.3 CAN mailbox registers<br />

This chapter describes the registers of the transmit <strong>and</strong> receive mailboxes. Refer to<br />

Section 22.7.5: Message storage on page 556 for detailed register mapping.<br />

Transmit <strong>and</strong> receive mailboxes have the same registers except:<br />

● The FMI field in the CAN_RDTxR register.<br />

● A receive mailbox is always write protected.<br />

● A transmit mailbox is write-enabled only while empty, corresponding TME bit in the<br />

CAN_TSR register set.<br />

There are 3 TX Mailboxes <strong>and</strong> 2 RX Mailboxes. Each RX Mailbox allows access to a 3 level<br />

depth FIFO, the access being offered only to the oldest received message in the FIFO.<br />

Each mailbox consist of 4 registers.<br />

CAN_RI0R<br />

CAN_RI1R<br />

CAN_TI0R<br />

CAN_TI1R<br />

CAN_TI2R<br />

CAN_RDT0R<br />

CAN_RDT1R<br />

CAN_TDT0R<br />

CAN_TDT1R<br />

CAN_TDT2R<br />

CAN_RL0R<br />

CAN_RL1R<br />

CAN_TDL0R<br />

CAN_TDL1R<br />

CAN_TDL2R<br />

CAN_RH0R<br />

CAN_RH1R<br />

CAN_TDH0R<br />

CAN_TDH1R<br />

CAN_TDH2R<br />

FIFO0<br />

FIFO1<br />

Three Tx Mailboxes<br />

572/995 Doc ID 13902 Rev 9

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

Saved successfully!

Ooh no, something went wrong!