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 />

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 Standby mode.<br />

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

refer to the ISO 11898 standard.<br />

Figure 235. 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 />

SAMPLE POINT TRANSMIT POINT<br />

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

1<br />

NominalBitTime<br />

NominalBitTime = 1 × tq + tBS1 + tBS2 with:<br />

tBS1 = tq x (TS1[3:0] + 1),<br />

tBS2 = tq x (TS2[2:0] + 1),<br />

tq = (BRP[9:0] + 1) x tPCLK where tq refers to the Time quantum<br />

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

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

Doc ID 018909 Rev 3 676/1416

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

Saved successfully!

Ooh no, something went wrong!