Renesas M16C/62P Hardware Manual page 143

Renesas 16-bit single-chip microcomputer
Hide thumbs Also See for M16C/62P:
Table of Contents

Advertisement

M16C/62P Group (M16C/62P, M16C/62PT)
Table 15.3 Specifications in Event Counter Mode (when processing two-phase pulse signal with
Timers A2, A3 and A4)
Item
Count Source
Count Operation
Divide Ratio
Count Start Condition
Count Stop Condition
Interrupt Request Generation Timing
TAiIN Pin Function
TAiOUT Pin Function
Read from Timer
Write to Timer
(1)
Select Function
NOTES:
1. Only Timer A3 is selectable. Timer A2 is fixed to normal processing operation, and Timer A4 is fixed
to multiply-by-4 processing operation.
R
e
. v
2
3 .
0
S
e
p
0
, 1
2
0
0
4
R
E
J
0
9
B
0
1
8
5
0 -
2
3
0
Z
• Two-phase pulse signals input to TAiIN or TAiOUT pins (i = 2 to 4)
• Up-count or down-count can be selected by two-phase pulse signal
• When the timer overflows or underflows, it reloads the reload register
contents and continues counting. When operating in free-running mode,
the timer continues counting without reloading.
1/ (FFFFh - n + 1) for up-count
1/ (n + 1) for down-count n : set value of TAi register
Set TAiS bit of TABSR register to "1" (= start counting)
Set TAiS bit to "0" (= stop counting)
Timer overflow or underflow
Two-phase pulse input
Two-phase pulse input
Count value can be read by reading Timer A2, A3 or A4 register
• When not counting and until the 1st count source is input after counting start
Value written to TAi register is written to both reload register and counter
• When counting (after 1st count source input)
Value written to TAi register is written to reload register
(Transferred to counter when reloaded next)
• Normal processing operation (Timer A2 and Timer A3)
The timer counts up rising edges or counts down falling edges on TAjIN
pin when input signals on TAjOUT pin is "H".
TAjOUT
TAjIN
(j=2, 3)
• Multiply-by-4 processing operation (Timer A3 and Timer A4)
If the phase relationship is such that TAkIN(k=3, 4) pin goes "H" when the
input signal on TAkOUT pin is "H," the timer counts up rising and falling
edges on TAkOUT and TAkIN pins. If the phase relationship is such that
TAkIN pin goes "L" when the input signal on TAkOUT pin is "H," the timer
counts down rising and falling edges on TAkOUT and TAkIN pins.
TAkOUT
TAkIN
(k=3, 4)
• Counter initialization by Z-phase input (Timer A3)
The timer count value is initialized to 0 by Z-phase input.
page 129
f o
3
6
4
Specification
Up-
Up-
Up-
Down-
count
count
count
count
Count down all edges
Count up all edges
Count up all edges
Count down all edges
15. Timers
0000h to FFFFh
Down-
Down-
count
count

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/62pt

Table of Contents