|
M16C62_M Datasheet, PDF (333/615 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/60 SERIES | |||
|
◁ |
Timer A
Mitsubishi microcomputers
M16C / 62A Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
2.2.4 Operation of Timer A (timer mode, pulse output function selected)
In timer mode, choose functions from those listed in Table 2.2.3. Operations of the circled items are
described below. Figure 2.2.10 shows the operation timing, and Figure 2.2.11 shows the set-up proce-
dure.
Table 2.2.3. Choosed functions
Item
Set-up
Count source
O
Pulse output function
O
Gate function
O
Internal count source(f1 / f8 / f32 / fc32)
No pulses output
Pulses output
No gate function
Performs count only for the period in which the TAiIN pin is at âLâ level
Performs count only for the period in which the TAiIN pin is at âHâ level
Operation (1) Setting the count start flag to â1â causes the counter to perform a down count on the count
source.
(2) If an underflow occurs, the content of the reload register is reloaded and the count continues.
At this time, the timer Ai interrupt request bit goes to â1â. Also, the output polarity of the
TAiOUT pin reverses.
(3) Setting the count start flag to â0â causes the counter to hold its value and to stop. Also, the
TAiOUT pin outputs an âLâ level.
FFFF16
n = reload register content
(2) Underflow
(1) Start count
(3) Stop count
n
Start count again
000016
Cleared to â0â by
Set to â1â by software software
Count start flag â1â
â0â
Set to â1â by software
Pulse output from âHâ
TAiOUT pin
âLâ
Timer Ai interrupt â1â
request bit
â0â
Cleared to â0â when interrupt request is accepted, or cleared by software
Figure 2.2.10. Operation timing of timer mode, pulse output function selected
2-16
Time
|
▷ |