English
Language : 

M16C62_M Datasheet, PDF (517/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
3.3 Delayed One-Shot Output
Overview The following are steps of outputting a pulse only once after a specified elapse since an external
trigger is input. Figure 3.3.1 shows the operation timing, Figure 3.3.2 shows the connection dia-
gram, and Figures 3.3.3 and 3.3.4 show the set-up procedure.
Use the following peripheral function:
• One-shot timer mode of timer A
Specifications
(1) Set timer A0 in one-shot timer mode, and set timer A1 in one-shot timer mode with pulse-
output function.
(2) Set 1 ms, an interval before a pulse is output, in timer A0; and set 50 µs, a pulse width, in timer
A1. Both timer A0 and timer A1 use f1 for the count source.
(3) Connect a 16-MHz oscillator to XIN.
Operation (1) Setting the trigger select bit to “1” and setting the count start flag to “1” enables the counter of
timer A0 to count.
(2) If an effective edge, selected by use of the external trigger select bit, is input to the TA0IN pin,
the counter begins a down count. The counter of timer A0 performs a down count on count
source f1.
(3) As soon as the counter of timer A0 becomes “000016”, the counter reloads the content of the
reload register and stops counting. At this time, the timer A0 interrupt request bit goes to “1”.
(4) An underflow in timer A0 triggers the counter of timer A1 and causes it to begin counting.
When timer A1 begins counting, the output level of the TA1OUT pin goes to “H”.
(5) As soon as the counter of timer A1 becomes “000016”, the output level of the TA1OUT pin
goes to “L”, the counter reloads the content of the reload register, and stops counting. At this
time, timer A1 interrupt request bit goes to “1”.
2-200