Sei sulla pagina 1di 5

Silicon Laboratories CAN Bit Timing

To use this spreadsheet


Didier Juges: Didier Juges:
1. Fill the values in BLUE this SYSCLK divided by typical propagation delay
2. Results in GREEN the Silabs CAN prescaler in twisted pair: 5ns/m
CAN0CFG Didier Juges:
Baud Rate Prescaler,
max 63, adjust to try to
BRP Extension get Number of Tq = 16
0
SYSCLK (Hz) Bit Rate (bits/sec) BRP Tq
24,000,000 250,000 5 2.50E-07

Bus Length (m) Bus Delay (nsec/m) Bus Delay Transceiver Delay (nsec)
10 5 50 150

SyncSeg Prop Seg. Min Prop. Seg. Prop. Seg. (in Tq)
1 11 2 11

df1 df2 df Didier Juges:


0.485% 0.313% 0.313% adjust to get sampling
point where needed
Didier Juges: (75% or 87.5%)
always 1

The bit time is divided into four segments: The Synchronisation Segment, the Propagation Time
Segment, the Phase Buffer Segment 1, and the Phase Buffer Segment 2. Each segment consists of
a specific, programmable number of time quanta. The length of the time quantum (tq), which is
the basic time unit of the bit time, is defined by the CAN controller’s system clock fsys and the
Baud Rate Prescaler (BRP) :
tq = BRP / fsys.
The C_CAN’s system clock fsys is the frequency of its CAN_CLK input.
Silicon Laboratories CAN Bit Timing Calculator

Didier Juges:
Didier Juges: Tq = Time Quantum,
Baud Rate Prescaler, defined by CAN clock
max 63, adjust to try to (SYSCLK divided by CAN
get Number of Tq = 16 Baud Rate Prescaler)

Number of Tq per bit Rounded Tqs Actual Bit Period Actual Bit Rate
16 16 4.00E-06 250000
Didier Juges:
Prop. Delay (nsec) This is calculated and Sampling Point
400 should be at least equal 87.5%
to the propagation delay

Tpropseg Time for Phase Seg1 + Phase Seg2 Phase Seg1 Phase Seg2
2.75.E-06 4 2 2

Tolerance TSEG1 TSEG2


0.313% 12 1
CAN0BT
Bit Timing Register (decimal)
7173 Didier Juges:
nt, the Propagation Time Bit Timing Register (hex) Value to use to set
2. Each segment consists of CAN0BT
1C05
me quantum (tq), which is
ystem clock fsys and the
Error CAN Clock
0.00% 0

SJW MIN SJW


1 1

SJW_p
0

Didier Juges:
Synchronization Jump
Width, should be less
than Phase Seg,
typically set to 1

Potrebbero piacerti anche