|
M16C62_M Datasheet, PDF (341/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.8 Operation of timer A (2-phase pulse signal process in event counter mode,
multiply-by-4 mode selected)
In processing 2-phase pulse signals in event counter mode, choose functions from those listed in Table
2.2.7. Operations of the circled items are described below. Figure 2.2.18 shows the operation timing, and
Figure 2.2.19 shows the set-up procedure.
Table 2.2.7. Choosed functions
Item
Set-up
Item
Set-up
Count operation type
Reload type
O Free run type
Processing 2 phase
Normal processing
pulses (Note)
O 4-multiplication processing
Note: Timer A3 alone can be selected. Timer A2 is solely used for normal processes, and timer A4 is solely used for 4-
multiplication processes.
Operation (1) Setting the count start flag to â1â causes the counter to count effective edges of the count source.
(2) Even if an underflow occurs, the content of the reload register is not reloaded, but the count
continues. At this time, the interrupt request bit goes to â1â.
(3) Even if an overflow occurs, the content of the reload register is not reloaded, but the count
continues. At this time, the interrupt request bit goes to â1â.
Note
⢠The up count or down count conditions are as follows:
Table 2.2.8. The up count or down count conditions
Up count
Input signal to the
TAiOUT pin
âHâ level
âLâ level
Rising
Falling
Input signal to the
TAiIN pin
Rising
Falling
âLâ level
âHâ level
Down
count
Input signal to the
TAiOUT pin
âHâ level
âLâ level
Rising
Falling
Input signal to the
TAiIN pin
Falling
Rising
âHâ level
âLâ level
âHâ
TAiOUT âLâ
âHâ
TAiIN
âLâ
(1) Start count
FFFF16
000016
Count start flag â1â
â0â
Timer Ai interrupt â1â
request bit
â0â
Set to â1â by software
(2) Underflow
Time
(3) Overflow
Cleared to â0â when interrupt request is accepted, or cleared by software
Figure 2.2.18. Operation timing of 2-phase pulse signal process in event counter mode, multiply-by-4 mode selected
2-24
|
▷ |