MB95630H Series
MN702-00009-1v0-E
FUJITSU SEMICONDUCTOR LIMITED
361
CHAPTER 20 16-BIT RELOAD TIMER
20.6 Operations and Setting Procedure Example
20.6
Operations and Setting Procedure Example
This section describes the operating status of the 16-bit reload timer counter.
■
Operating Status of Counter
The counter status is determined by the value of the count enable bit (CNTE) in the 16-bit
reload timer control status register (lower) (TMCSRLn) and the internal signal start trigger
wait signal (WAIT). The STOP state (halted), WAIT state (waiting for a start trigger) and RUN
state (operating state) can be set.
Figure 20.6-1 shows the status transition of these counters.
Figure 20.6-1 Diagram of Counter State Transition
Re
s
et
S
TOP
s
t
a
te
CNTE = 0, WAIT = 1
TIn pin: Inp
u
t di
sab
led
TOn pin: Gener
a
l-p
u
rpo
s
e I/O port
16-
b
it relo
a
d timer timer regi
s
ter:
Hold
s
the v
a
l
u
e
a
t
s
top
V
a
l
u
e immedi
a
tely
a
fter re
s
et = 0x0000
WAIT
s
t
a
te
CNTE = 1, WAIT = 1
TIn pin: Only trigger inp
u
t i
s
v
a
lid
TOn pin: 16-
b
it relo
a
d timer relo
a
d regi
s
ter o
u
tp
u
t
16-
b
it relo
a
d timer timer regi
s
ter:
Hold
s
the v
a
l
u
e
a
t
s
top
Until lo
a
ded immedi
a
tely
a
fter re
s
et = 0x0000
RUN
s
t
a
te
CNTE = 1, WAIT = 0
TIn pin: 16-
b
it relo
a
d timer inp
u
t
TOn pin: 16-
b
it relo
a
d timer relo
a
d regi
s
ter o
u
tp
u
t
16-
b
it relo
a
d timer timer regi
s
ter:
Co
u
nt oper
a
tion
LOAD
CNTE = 1, WAIT = 0
16-
b
it relo
a
d timer relo
a
d regi
s
ter v
a
l
u
e
lo
a
ded to16-
b
it relo
a
d timer timer regi
s
ter
:
S
t
a
te tr
a
n
s
ition
b
y h
a
rdw
a
re
:
S
t
a
te tr
a
n
s
ition
b
y regi
s
ter
a
cce
ss
: WAIT
s
ign
a
l (intern
a
l
s
ign
a
l)
:
S
oftw
a
re trigger
b
it (TMC
S
RLn)
: Timer oper
a
tion en
ab
le
b
it (TMC
S
RLn)
: Underflow gener
a
tion fl
a
g
b
it (TMC
S
RLn)
: Relo
a
d
s
election
b
it (TMC
S
RLn)
WAIT
TRG
CNTE
UF
RELD
CNTE = 0
CNTE = 1
TRG = 0
CNTE = 1
TRG = 1
CNTE = 0
Extern
a
l trigger from TOn pin
TRG = 1
(
S
oftw
a
re trigger)
Lo
a
d completed
TRG = 1
(
S
oftw
a
re trigger)
UF = 1 &
RELD = 0
(One-
s
hot mode)
UF = 1 &
RELD = 1
(Relo
a
d mode)
Extern
a
l trigger from TIn pin
CNTE = 0