m5m51016btp Renesas Electronics Corporation., m5m51016btp Datasheet - Page 33

no-image

m5m51016btp

Manufacturer Part Number
m5m51016btp
Description
Renesas 16-bit Single-chip Microcomputer M16c Family / M16c/20 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
M30245 Group
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
Operation
Note
Figure 2.2.18. Operation timing of two-phase pulse signal process in event counter mode, multiply-by-4 mode selected
2.2.8 Operation of timer A (two-phase pulse signal process in event counter mode,
Timer Ai interrupt
request bit
In processing two-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.
Count start flag
Note: First set to “Reload type” operation. Once the first counting pulse has occurred, the timer may be changed to “Free-Run type”.
multiply-by-4 mode selected)
Table 2.2.7. Choosed functions
Note: Timer A3 alone can be selected. Timer A2 is solely used for normal processes, and timer A4 is solely used for 4-
(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
(3) Even if an overflow occurs, the content of the reload register is not reloaded, but the count
• The up count or down count conditions are as follows:
Table 2.2.8. The up count or down count conditions
• Set TAi
Up count
TAi
Count operation type
TAi
OUT
“1”
“0”
“1”
“0”
continues. At this time, the interrupt request bit goes to “1”.
continues. At this time, the interrupt request bit goes to “1”.
FFFF
0000
IN
multiplication processes.
“H”
“L”
“H”
“L”
16
16
Item
IN
page 24 of 354
(1) Start count
pin and TAi
(Note)
Input signal to the
Set to “1” by software
TAi
“H” level
“L” level
Falling
Rising
OUT
O
pin
OUT
Reload type
Free run type
pin's port direction register to “0”.
Set-up
Input signal to the
Cleared to “0” when interrupt request is accepted, or cleared by software
TAi
“H” level
“L” level
Falling
Rising
IN
pin
(2) Underflow
Processing two- phase
pulses (Note)
Down
count
Item
Input signal to the
TAi
“H” level
“L” level
Falling
Rising
OUT
O
pin
Normal processing
4-multiplication processing
(3) Overflow
Set-up
Input signal to the
Time
TAi
“H” level
“L” level
Falling
Rising
IN
pin
2. Timer A

Related parts for m5m51016btp