Operation Of Timer A (Two-Phase Pulse Signal Process In Event Counter Mode, Normal Mode Selected) - Renesas M16C Series User Manual

16-bit single-chip microcomputer
Hide thumbs Also See for M16C Series:
Table of Contents

Advertisement

M30245 Group
2.2.7 Operation of timer A (two-phase pulse signal process in event counter mode,
normal mode selected)
In processing two-phase pulse signals in event counter mode, choose functions from those listed in Table
2.2.6. Operations of the circled items are described below. Figure 2.2.16 shows the operation timing, and
Figure 2.2.17 shows the set-up procedure.
www.DataSheet4U.com
Operation
Note
TAi
TAi
Count start flag
Timer Ai interrupt
request bit
Note 1: First set to "Reload type" operation. Once the first counting pulse has occurred, the timer may be changed to "Free-Run type".
Figure 2.2.16. Operation timing of two-phase pulse signal process in event counter mode, normal mode selected
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
Table 2.2.6. Choosed functions
Item
Count operation type
Reload type
O
Free run type
Two-phase pulses
O
Normal processing
process (Note)
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.
(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 timer Ai 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 timer Ai interrupt request bit goes to "1".
• The up count or down count conditions are as follows:
If a rising edge is present at the TAi
an up count is performed.
If a falling edge is present at the TAi
a down count is performed.
• Set TAi
pin and TAi
IN
OUT
(1) Start count
"H"
OUT
"L"
"H"
IN
"L"
FFFF
16
(Note)
0000
16
Set to "1" by software
"1"
"0"
"1"
"0"
page 22 of 354
pin when the input signal level to the TAi
IN
pin when the input signal level to the TAi
IN
pin's port direction register to "0".
(2) Underflow
Cleared to "0" when interrupt request is accepted, or cleared by software
Set-up
(3)
Overflow
Time
2. Timer A
pin is "H",
OUT
pin is "H",
OUT

Advertisement

Table of Contents
loading

Table of Contents