English
Language : 

M16C62_M Datasheet, PDF (511/615 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/60 SERIES
Timer A Applications
Mitsubishi microcomputers
M16C / 62A Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Setting timer A0
Selecting timer mode and functions
b7
b0
0 0 00 0 0 0 0
Timer A0 mode register [Address 039616]
TA0MR
Selection of timer mode
Pulse output function select bit
0 : Pulse is not output (TA0OUT pin is a normal port pin)
Gate function select bit
b4 b3
0 0 : Gate function not available (TA0IN pin is a normal port pin)
0 (Must always be “0” in timer mode)
Count source select bit
b7 b6
0 0 : f1
b7 b6
00
01
10
11
Count
Count source period
source f(XIN) : 16MHZ f(XcIN) : 32.768kHZ
f1
62.5ns
f8
500ns
f32
2µs
fC32
976.56µs
Setting counter value
(b15)
b7
3E16
(b8)
b0 b7
7F16
b0 Timer A0 register [Address 038716, 038616]
TA0
Setting timer A1
Selecting event counter mode and each function
b7
b0 Timer A1 mode register [Address 039716]
0 0 0 0 0 0 1 TA1MR
Selection of event counter mode
Pulse output function select bit]
0 : Pulse is not output (TA1OUT pin is a normal port pin)
Count polarity select bit
Up/down switching cause select bit
0 : Up/down flag content
0 (Must always be “0” in event counter mode)
Count operation type select bit
0 : Reload type
Continued to the next page
Figure 3.1.3. Set-up procedure of long-period timers (1)
2-194