Rev.2.00 Oct 16, 2006 page 297 of 354
REJ09B0340-0200
M30245 Group
3. Timer A Applications
Figure 3.1.3. Set-up procedure of long-period timers (1)
Continued to the next page
Setting timer A0
Selecting timer mode and functions
Pulse output function select bit
0 : Pulse is not output (TA0
OUT
pin is a normal port pin)
Timer A0 mode register [Address 0396
16
]
TA0MR
Gate function select bit
0 0 : Gate function not available (TA0
IN
pin is a normal port pin)
b4 b3
Selection of timer mode
b7
b0
0
0
0
0
0
0 (Must always be “0” in timer mode)
Count source select bit
0 0 : f
1
b7 b6
0
0
0
Setting counter value
b7
b0
(b15)
(b8)
b7
b0
Timer A0 register [Address 0387
16
, 0386
16
]
TA0
3E
16
7F
16
Selecting event counter mode and each function
Setting timer A1
Pulse output function select bit]
0 : Pulse is not output (TA1
OUT
pin is a normal port pin)
Timer A1 mode register [Address 0397
16
]
TA1MR
Up/down switching cause select bit
0 : Up/down flag content
Selection of event counter mode
Count operation type select bit
0 : Reload type
0 (Must always be “0” in event counter mode)
Count polarity select bit
b7
b0
0
1
0
0
0
0
0
Count source period
f(X
IN
) : 16MH
Z
f(Xc
IN
) : 32.768kH
Z
b7 b6
Count
source
62.5ns
500ns
2µs
976.56µs
0
0
0
1
1
0
1
1
f
1
f
8
f
32
f
C32
0
When not using two-phase pulse signal processing, set this bit to “0”
Содержание M16C FAMILY
Страница 12: ...Chapter 1 Hardware...
Страница 13: ...See M30245 group datasheet...
Страница 14: ...Chapter 2 Peripheral Functions Usage...
Страница 303: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 304: ...Chapter 3 Examples of Peripheral Functions Applications...
Страница 340: ...Chapter 4 External Buses...
Страница 361: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 362: ...Chapter 5 Standard Characteristics...
Страница 369: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan M30245 Group REJ09B0340 0200 User s Manual...