
DocID13284 Rev 2
463/564
UM0404
CAN modules
In this example, the concatenated bit time parameters are (2-1)
3
& (7-1)
4
& (1-1)
2
& (1-1)
6
,
the Bit Timing Register CANxBTR is programmed to = 0x1600h.
Example for bit timing at low baudrate
In this example, the frequency of CAN module clock
is 2 MHz,
BRP
is 1, the bitrate is 100
Kbit/s.
In this example, the concatenated bit time parameters are (4-1)
3
& (5-1)
4
& (4-1)
2
& (2-1)
6
,
the Bit Timing Register CANxBTR is programmed to = 0x34C1h.
Tolerance for CAN clock
0.39 %
=
δ
PLL
(13 x t
BT
= 13 x 10 x t
q
= 130
t
CPU
)
5
ns
=
Data from PLL jitter characteristics
Tolerance for oscillator (no PLL effect)0.35 %
=
t
q
1
μ
s = 2
x
t
CPU
Delay of bus driver
200 ns
Delay of receiver circuit
80
ns
Delay of bus line (40m)
220 ns
t
Prop
1
μ
s = 1 x t
q
t
SJW
4
μ
s =
4 x t
q
t
PB1
4
μ
s =
4 x t
q
t
Seg1
= t
Prop
+ t
PB1
5
μ
s =
5 x t
q
t
Seg2
= t
PB2
4
μ
s =
Information Processing Time + 3 x t
q
= 4 x t
q
t
Sync-Seg
1
μ
s =
1 x t
q
t
BT
10
μ
s =
t
Sync-Seg
+ t
Seg1
+ t
Seg2
= 10 x t
q
Tolerance for CAN clock
1.58 %
=
δ
PLL
(13 x t
BT
= 13 x 10 x t
q
= 260 t
CPU
)10
ns =
Data from PLL jitter characteristics
Tolerance for oscillator (no PLL effect) 1.57 %
=
min t
PB1
t
PB2
(
,
)
2
13
t
BT
t
PB2
–
⋅
(
)
⋅
-----------------------------------------------
0.1
μ
s
2
13
1
μ
s
0.2
μ
s
–
⋅
(
)
⋅
---------------------------------------------------
=
min t
PB1
t
PB2
(
,
)
2
δ
PLL
⋅
–
2
13
t
BT
t
PB2
–
⋅
(
)
⋅
------------------------------------------------------------------
min t
PB1
t
PB2
(
,
)
13
t
BT
t
PB2
–
⋅
(
)
⋅
----------------------------------------------
4
μ
s
2
13
10
μ
s
4
μ
s
–
⋅
(
⋅
------------------------------------------------
=
min t
PB1
t
PB2
(
,
)
2
δ
PLL
⋅
–
2
13
t
BT
t
PB2
–
⋅
(
)
⋅
------------------------------------------------------------------