Renesas PCA4738L-64A Technical Information Seite 28

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 82
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 27
25
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
3822 Group
MITSUBISHI MICROCOMPUTERS
TIMERS
The 3822 group has five timers: timer X, timer Y, timer 1, timer 2,
and timer 3. Timer X and timer Y are 16-bit timers, and timer 1,
timer 2, and timer 3 are 8-bit timers.
All timers are down count timers. When the timer reaches “0016”,
an underflow occurs at the next count pulse and the correspond-
ing timer latch is reloaded into the timer and the count is
continued. When a timer underflows, the interrupt request bit cor-
responding to that timer is set to “1”.
Read and write operation on 16-bit timer must be performed for
both high and low-order bytes. When reading a 16-bit timer, read
the high-order byte first. When writing to a 16-bit timer, write the
low-order byte first. The 16-bit timer cannot perform the correct
operation when reading during the write operation, or when writing
during the read operation.
Fig. 21 Timer block diagram
CNTR
0 act
i
ve
edge switch bit
Ti
mer 1 count source
selection bit
R
ea
l
t
i
me port
control bit 0
1
P
5
5/
C
N
T
R
1
0
f(XIN)/16
(
f
(
XCIN
)
516 in low-s
p
eed mode
)
CNTR
1 act
i
ve
edge switch bit
1
0
T
i
m
e
r
Y
s
t
o
p
c
o
n
t
r
o
l
b
i
t
Falling edge detection
P
er
i
o
d
measurement mode
Ti
mer
Y
interrupt
request
Pulse width HL continuously measurement mode
R
i
s
i
n
g
e
d
g
e
d
e
t
e
c
t
i
o
n
0
0
,
0
1
,
1
1
Ti
mer
Y
operat
i
ng
mode bits
Ti
mer
X
interrupt
request
Ti
mer
X
mo
d
e reg
i
ster
write signal
P
5
4/
C
N
T
R
0
Q
Q
T
S
P
5
4
d
i
r
e
c
t
i
o
n
r
e
g
i
s
t
e
r
P
u
l
s
e
o
u
t
p
u
t
m
o
d
e
P
5
4
l
a
t
c
h
Ti
mer
X
stop
control bit
0
1
Ti
mer
X
wr
i
te
control bit
Q
D
L
a
t
c
h
Q
D
L
a
t
c
h
1
0
1
1
0
Timer X operat-
ing mode bits
00,01,11
f
(
X
I
N
)
/
1
6
(
f
(
X
I
N
)
/
1
6
i
n
l
o
w
-
s
p
e
e
d
m
o
d
e
)
P
u
l
se w
id
t
h
measurement
mode
C
N
T
R
0
a
c
t
i
v
e
e
d
g
e
s
w
i
t
c
h
b
i
t
P
u
l
se output mo
d
e
Q
Q
T
S
0
P
56
di
rect
i
on reg
i
ster
P
56
l
atc
h
1
T
O
U
T
o
u
t
p
u
t
a
c
t
i
v
e
e
d
g
e
s
w
i
t
c
h
b
i
t
Ti
mer 2 wr
i
te
control bit
0
1
T
O
U
T
o
u
t
p
u
t
c
o
n
t
r
o
l
b
i
t
1
P
56/
T
OUT
X
CIN
T
i
m
e
r
3
c
o
u
n
t
s
o
u
r
c
e
s
e
l
e
c
t
i
o
n
b
i
t
0
1
T
i
m
e
r
2
i
n
t
e
r
r
u
p
t
r
e
q
u
e
s
t
Ti
mer 3
interrupt
request
Ti
mer 2 count source
selection bit
Ti
mer 1
interrupt
request
D
a
t
a
b
u
s
f(X
IN
)
/16
(
f
(
XCIN
)
/16 in low-s
p
eed mode
]
)
f
(
XI
N)
/
1
6
(
f
(
X
C
I
N)
/
1
6
i
n
l
o
w
-
s
p
e
e
d
m
o
d
e
)
f
(
X
I
N
)
/
1
6
(
f
(
X
C
I
N
)
/
1
6
i
n
l
o
w
-
s
p
e
e
d
m
o
d
e
)
C
N
T
R
0
i
n
t
e
r
r
u
p
t
r
e
q
u
e
s
t
CNTR
1
interrupt
request
T
i
m
e
r
Y
o
p
e
r
a
t
i
n
g
m
o
d
e
b
i
t
s
0
0
,
0
1
,
1
0
1
1
R
e
a
l
t
i
m
e
p
o
r
t
c
o
n
t
r
o
l
b
i
t
1
P
5
2
l
a
t
c
h
R
e
a
l
t
i
m
e
p
o
r
t
c
o
n
t
r
o
l
b
i
t
1
P
5
3
l
a
t
c
h
Timer Y (low) (8) T
i
m
e
r
Y
(
h
i
g
h
)
(
8
)
Ti
mer 3
l
atc
h
(
8
)
Ti
mer 3
(
8
)
T
i
m
e
r
1
l
a
t
c
h
(
8
)
T
i
m
e
r
1
(
8
)
T
i
m
e
r
2
l
a
t
c
h
(
8
)
Ti
mer 2
(
8
)
Timer X (low) (8)
Timer X (high) (8)
T
i
m
e
r
X
(
l
o
w
)
l
a
t
c
h
(
8
) Timer X (high) latch (8)
T
i
m
e
r
Y
(
l
o
w
)
l
a
t
c
h
(
8
) Timer Y (high) latch (8)
T
OUT output
control bit
0
0
0
P
5
2
P
5
3
P
5
2
d
i
r
e
c
t
i
o
n
r
e
g
i
s
t
e
r
P
53
di
rect
i
on reg
i
ster
P
5
2
d
a
t
a
f
o
r
r
e
a
l
t
i
m
e
p
o
r
t
P
5
3
d
a
t
a
f
o
r
r
e
a
l
t
i
m
e
p
o
r
t
I
n
t
e
r
n
a
l
c
l
o
c
k
φ =
XC
I
N
/
2
Seitenansicht 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 81 82

Kommentare zu diesen Handbüchern

Keine Kommentare