Can Module; Reading C0Str Register - Renesas M16C/29 Series User Manual

Hide thumbs Also See for M16C/29 Series:
Table of Contents

Advertisement

M
1
6
C
2 /
9
G
o r
u
p

22.11 CAN Module

22.11.1 Reading C0STR Register

The CAN module on the M16C/29 Group updates the status of the C0STR register in a certain period.
When the CPU and the CAN module access to the C0STR register at the same time, the CPU has the
access priority; the access from the CAN module is disabled. Consequently, when the updating period of
the CAN module matches the access period from the CPU, the status of the CAN module cannot be
updated. (See Figure 22.5)
Accordingly, be careful about the following points so that the access period from the CPU should not
match the updating period of the CAN module:
(1) There should be a wait time of 3f
register. (See Figure 22.6)
(2) When the CPU polls the C0STR register, the polling period must be 3f
22.7)
Table 22.2 CAN Module Status Updating Period
3f
period = 3
CAN
(Example 1) Condition X
(Example 2) Condition X
(Example 3) Condition X
(Example 4) Condition X
(Example 5) Condition X
R
e
. v
1
1 .
2
M
r a
3 .
, 0
2
0
0
7
R
E
J
0
9
B
0
1
0
1
0 -
1
1
2
CAN
X
(Original oscillation period)
IN
16 MHz CCLK: Divided by 1
IN
16 MHz CCLK: Divided by 2
IN
16 MHz CCLK: Divided by 4
IN
16 MHz CCLK: Divided by 8
IN
16 MHz CCLK: Divided by 16
IN
page 442
f o
4
5
8
or longer (see Table 22.2) before the CPU reads the C0STR
Division value of the CAN clock (CCLK)
3f
CAN
3f
CAN
3f
CAN
3f
CAN
3f
CAN
or longer. (See Figure
CAN
period = 3
62.5 ns
period = 3
62.5 ns
period = 3
62.5 ns
period = 3
62.5 ns
period = 3
62.5 ns
22. Usage Notes
1 = 187.5 ns
2 = 375 ns
4 = 750 ns
8 = 1.5 µs
16 = 3 µs

Advertisement

Table of Contents
loading

Table of Contents