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.

RM0008<br />

Controller area network (bxCAN)<br />

Note:<br />

A valid edge is defined as the first transition in a bit time from dominant to recessive bus<br />

level provided the controller itself does not send a recessive bit.<br />

If a valid edge is detected in BS1 instead of SYNC_SEG, BS1 is extended by up to SJW so<br />

that the sample point is delayed.<br />

Conversely, if a valid edge is detected in BS2 instead of SYNC_SEG, BS2 is shortened by<br />

up to SJW so that the transmit point is moved earlier.<br />

As a safeguard against programming errors, the configuration of the Bit Timing Register<br />

(CAN_BTR) is only possible while the device is in St<strong>and</strong>by mode.<br />

For a detailed description of the CAN bit timing <strong>and</strong> resynchronization mechanism, please<br />

refer to the ISO 11898 st<strong>and</strong>ard.<br />

Figure 204. Bit timing<br />

NOMINAL BIT TIME<br />

SYNC_SEG BIT SEGMENT 1 (BS1) BIT SEGMENT 2 (BS2)<br />

1 x t q t BS1 t BS2<br />

BaudRate = ----------------------------------------------<br />

1<br />

NominalBitTime<br />

NominalBitTime = 1 t q<br />

+ t BS1<br />

+ t BS2<br />

with:<br />

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

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

SAMPLE POINT<br />

TRANSMIT POINT<br />

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

where t q refers to the Time quantum<br />

t PCLK = time period of the APB clock,<br />

BRP[9:0], TS1[3:0] <strong>and</strong> TS2[2:0] are defined in the CAN_BTR Register.<br />

Doc ID 13902 Rev 9 559/995

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

Saved successfully!

Ooh no, something went wrong!