Datasheet

Table Of Contents
265
7682C–AUTO–04/08
AT90CAN32/64/128
19.11.6 CAN Data Message Register - CANMSG
Bit 7:0 – MSG7:0: Message Data
This register contains the CAN data byte pointed at the page MOb register.
After writing in the page MOb register, this byte is equal to the specified message location of the
pre-defined identifier + index. If auto-incrementation is used, at the end of the data register writ-
ing or reading cycle, the index is auto-incremented.
The range of the counting is 8 with no end of loop (0, 1,..., 7, 0,...).
19.12 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 240 and “Baud Rate” on page 241 for timing description and page
256 to page 257 for “CAN Bit Timing Registers”).
Bit 7 6 5 4 3 2 1 0
MSG 7 MSG 6 MSG 5 MSG 4 MSG 3 MSG 2 MSG 1 MSG 0 CANMSG
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Initial Value - - - - - - - -
Table 19-2. Examples of CAN Baud Rate Settings for Commonly Frequencies
f
clk
io
(MHz)
CAN
Baud
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 0x37
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