English
Language : 

M16C62_M Datasheet, PDF (519/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 one-shot timer mode and functions
b7
b0
0 0 01 0 0 10
Timer A0 mode register [Address 039616]
TA0MR
Selection of one-shot timer mode
Pulse output function select bit
0 : Pulse is not output (TA0OUT pin is normal port pin)
External trigger select bit
0 : Falling edge of TA0IN pin's input signal
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
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 one-shot start flag
(Select TA0IN pin to input TA0 trigger)
b7
b0
One-shot start flag [Address 038216]
ONSF
Timer A0 event/trigger select bit
b7 b6
0 0 : Input on TA0IN is selected (Note)
Note: Set the corresponding port direction register to “0”.
Setting delay time
(b15)
b7
3E16
(b8)
b0 b7
8016
b0
Timer A0 register [Address 038716, 038616]
TA0
Continued to the next page
Figure 3.3.3. Set-up procedure of delayed one-shot output (1)
2-202