English
Language : 

M16C62_M Datasheet, PDF (522/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
Initialization of timer A0
b7
b0
0 0 0 0 0 0 0 0 Timer A0 mode register
TA0MR [Address 039616 ]
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
0 (Must always be “0” in 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
b15
0F16
b7
b8 b7
b0
9F16
b0 Timer A0 register
TA0 [Address 038716, 038616]
b7
b0
1
Count start flag [Address 038016]
TABSR
Timer A0 count start flag
1 : Starts counting
Initialization of port P7 direction register
b7
b0
0
Port P7 direction register [Address 03EF16]
PD7
Port P70 direction register
0 : Input mode
Buzzer ON
b7
b0
1
Timer A0 mode register [Address 039616 ]
TA0MR
Pulse output function select bit
1 : Pulse is output (Port P70 is TA0OUT output pin)
Buzzer OFF
b7
0
b0
Timer A0 mode register [Address 039616 ]
TA0MR
Pulse output function select bit
0 : Pulse is not output
Figure 3.4.2. Set-up procedure of buzzer output
2-205