|
M16C62_M Datasheet, PDF (331/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.3 Operation of Timer A (timer mode, gate function selected)
In timer mode, choose functions from those listed in Table 2.2.2. Operations of the circled items are
described below. Figure 2.2.8 shows the operation timing, and Figure 2.2.9 shows the set-up procedure.
Table 2.2.2. Choosed functions
Item
Set-up
Count source
O Internal count source(f1 / f8 / f32 / fc32)
Pulse output function O No pulses output
Gate function
Pulses output
No gate function
Performs count only for the period in which the TAiIN pin is at âLâ level
O Performs count only for the period in which the TAiIN pin is at âHâ level
Operation (1) When the count start flag is set to â1â and the TAiIN pin inputs at âHâ level, the counter per-
forms a down count on the count source.
(2) When the TAiIN pin inputs at âLâ level, the counter holds its value and stops.
(3) 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â.
(4) Setting the count start flag to â0â causes the counter to hold its value and to stop.
Note
⢠Make the pulse width of the signal input to the TAiIN pin not less than two cycles of the count
source.
n = reload register content
FFFF16
(1) Start count
n
(2) Stop count
(3) Underflow
(4) Stop count
000016
Set to â1â by software
Count start flag â1â
â0â
TAiIN pin
âHâ
input signal
âLâ
Timer Ai interrupt â1â
request bit
â0â
Cleared to â0â by
software
Start count again.
Time
Set to â1â by software
Cleared to â0â when interrupt request is accepted, or cleared by software
Figure 2.2.8. Operation timing of timer mode, gate function selected
2-14
|
▷ |