Datasheet

When a MOb error occurs and is set in its own CANSTMOB register, no general error is set in CANGIT
register.
20.10. Examples of CAN baud rate setting
The CAN bus requires very accurate timing especially for high baud rates. It is recommended to use only
an external crystal for CAN operations.
(Refer to “Bit timing” on page 164 and “Baud rate” on page 165 for timing description and page 179 to
page 180 for “CAN Bit Timing Registers”).
Table 20-2. Examples of CAN baud rate settings for commonly frequencies.
fCLK
IO
[MHz]
CAN
rate
[Kbps]
Description Segments Registers
Sampling
point
TQ
[s]
Tbit
[TQ]
Tprs
[TQ]
Tph1
[TQ]
Tph2
[TQ]
Tsjw
[TQ]
CANBT1 CANBT2 CANBT3
16.000 1000 69%
(1)
0.0625 16 7 4 4 1 0x00 0x0C 0x36
(2)
75% 0.125 8 3 2 2 1 0x02 0x04 0x13
500 75% 0.125 16 7 4 4 1 0x02 0x0C 0x37
0.250 8 3 2 2 1 0x06 0x04 0x13
250 75% 0.250 16 7 4 4 1 0x06 0x0C 0x37
0.500 8 3 2 2 1 0x0E 0x04 0x13
200 75% 0.3125 16 7 4 4 1 0x08 0x0C 0x37
0.625 8 3 2 2 1 0x12 0x04 0x13
125 75% 0.500 16 7 4 4 1 0x0E 0x0C 0x37
1.000 8 3 2 2 1 0x1E 0x04 0x13
100 75% 0.625 16 7 4 4 1 0x12 0x0C 0x37
1.250 8 3 2 2 1 0x26 0x04 0x13
12.000 1000 67%
(1)
0.083333 12 5 3 3 1 0x00 0x08 0x24
(2)
x - - - n o d a t a - - -
500 75% 0.166666 12 5 3 3 1 0x02 0x08 0x25
0.250 8 3 2 2 1 0x04 0x04 0x13
250 75% 0.250 16 7 4 4 1 0x04 0x0C 0x37
0.500 8 3 2 2 1 0x0A 0x04 0x13
200 75% 0.250 20 8 6 5 1 0x04 0x0E 0x4B
0.416666 12 5 3 3 1 0x08 0x08 0x25
125 75% 0.500 16 7 4 4 1 0x0A 0x0C 0x37
1.000 8 3 2 2 1 0x16 0x04 0x13
100 75% 0.500 20 8 6 5 1 0x0A 0x0E 0x4B
0.833333 12 5 3 3 1 0x12 0x08 0x25
8.000 1000 63%
(1)
x - - - n o d a t a - - -
0.125 8 3 2 2 1 0x00 0x04 0x12
(2)
500 69%
(1)
0.125 16 7 4 4 1 0x00 0x0C 0x36
(2)
75% 0.250 8 3 2 2 1 0x02 0x04 0x13
250 75% 0.250 16 7 4 4 1 0x02 0x0C 0x37
0.500 8 3 2 2 1 0x06 0x04 0x13
200 75% 0.250 20 8 6 5 1 0x02 0x0E 0x4B
0.625 8 3 2 2 1 0x08 0x04 0x13
125 75% 0.500 16 7 4 4 1 0x06 0x0C 0x37
1.000 8 3 2 2 1 0x0E 0x04 0x13
100 75% 0.625 16 7 4 4 1 0x08 0x0C 0x37
1.250 8 3 2 2 1 0x12 0x04 0x13
Atmel ATmega16M1/32M1/64M1 [DATASHEET]
Atmel-8209F-ATmega16M1/32M1/64M1_Datasheet_Complete-10/2016
240