Operating Modes; Figure 394. Bit Timing - ST STM32G0 1 Series Reference Manual

Table of Contents

Advertisement

RM0444
SyncSeg
t
SyncSeg
The baud rate is the inverse of bit time (baud rate = 1 / bit time), which, in turn, is the sum of
three components.
for the nominal bit time
for the data bit time
The (Re)Synchronization Jump Width (SJW) defines an upper bound for the amount of
lengthening or shortening of the bit segments. It is programmable between one and four
time quanta.
A valid edge is defined as the first transition in a bit time from dominant to recessive bus
level, provided the controller itself does not send a recessive bit.
If a valid edge is detected in BS1 instead of SYNC_SEG, BS1 is extended by up to SJW so
that the sample point is delayed.
Conversely, if a valid edge is detected in BS2 instead of SYNC_SEG, BS2 is shortened by
up to SJW so that the transmit point is moved earlier.
As a safeguard against programming errors, the configuration of the Bit Timing register is
only possible while the device is in Standby mode. Registers FDCAN_DBTP and
FDCAN_NBTP (dedicated, respectively, to data and nominal bit timing) are only accessible
when CCCR.CCE and CCCR.INIT are set.
Note:
For a detailed description of the CAN bit timing and resynchronization mechanism, refer to
the ISO 11898-1 standard.
36.3.2

Operating modes

Configuration
Access to IP version, hardware and input clock divider configuration. When the clock divider
is set to 0, the primary input clock is used as it is.
Bit segment 1 (BS1)
Figure 394
indicates that bit time = t
tq = (FDCAN_NBTP.NBRP[8:0] + 1) * t
t
= 1 tq
SyncSeg
t
= tq * (FDCAN_NBTP.NTSEG1[7:0] + 1)
BS1
t
= tq * (FDCAN_NBTP.NTSEG2[6:0] + 1)
BS2
tq = (FDCAN_DBTP.DBRP[4:0] + 1) * t
t
= 1 tq
SyncSeg
t
= tq * (FDCAN_DBTP.DTSEG1[4:0] + 1)
BS1
t
= tq * (FDCAN_DBTP.DTSEG2[3:0] + 1)
BS2
FD controller area network (FDCAN)

Figure 394. Bit timing

t
BS1
Sample
point
fdcan_tq_clk
fdcan_tq_clk
RM0444 Rev 5
Bit segment 2 (BS2)
t
BS2
+ t
+ t
, where:
SyncSeg
BS1
BS2
Transmit
point
MS47283V1
1201/1390
1261

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32G0 1 Series and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF