English
Language : 

M16C62_M Datasheet, PDF (515/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 0 00 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 Count
Count source period
source f(XIN) : 16MHZ f(XcIN) : 32.768kHZ
0 0 f1
62.5ns
0 1 f8
500ns
1 0 f32
2µs
1 1 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 one-shot timer mode and functions
b7
b0
0 00 1 0 1 10
Timer A1 mode register [Address 039716 ]
TA1MR
Selection of one-shot timer mode
Pulse output function select bit
1 : Pulse is output
External trigger select bit (Invalid when choosing timer's overflow as trigger)
Trigger select bit
1 : Selected by event/trigger select register
0 (Must always be “0” in one-shot timer mode)
Count source select bit
b7 b6
0 0 : f1
b7 b6
00
01
10
11
Count
source
f1
f8
f32
fC32
Count source period
f(XIN) : 16MHZ f(XcIN) : 32.768kHZ
62.5ns
500ns
2µs
976.56µs
Continued to the next page
Figure 3.2.3. Set-up procedure of variable-period variable-duty PWM output (1)
2-198