MB95630H Series
342
FUJITSU SEMICONDUCTOR LIMITED
MN702-00009-1v0-E
CHAPTER 19 16-BIT PPG TIMER
19.6 Operations and Setting Procedure Example
■
One-shot Mode (MDSE Bit in PCNTHn Register = 1)
One-shot operation mode can be used to output a single pulse with a specified width when a
valid trigger input occurs. When retriggering is enabled and a valid trigger is detected during
the counter operation, the downcounter value is reloaded.
The initial state of the PPGn output is "L". When the 16-bit downcounter value matches the
value set in the duty setting registers, the output changes to "H". The output changes back to
"L" when the counter reaches "1". (The output levels will be reversed if OSEL is set to "1".)
●
Invalidating the retrigger (RTRG bit in PCNTHn register = 0)
Figure 19.6-3 When Retrigger Is Invalid in One-shot Mode
●
Validating the retrigger (RTRG bit in PCNTHn register = 1)
Figure 19.6-4 When Retrigger Is Valid in One-shot Mode
m
n
0
Trigger ignored
(1)=n
×
T n
s
(2)=m
×
T n
s
PPG
PPG
(1)
(2)
(Norm
a
l pol
a
rity)
(Inverted pol
a
rity)
Time
Co
u
nter v
a
l
u
e
S
oftw
a
re trigger
Ri
s
ing edge detected
n : V
a
l
u
e of PDUTH & PDUTL regi
s
ter
s
m: V
a
l
u
e of PC
S
RH & PC
S
RL regi
s
ter
s
T : Co
u
nt clock cycle
m
n
0
(1)=n
×
T n
s
(2)=m
×
T n
s
PPG
PPG
(1)
(2)
(Norm
a
l pol
a
rity)
(Inverted pol
a
rity)
Time
Co
u
nter v
a
l
u
e
S
oftw
a
re trigger
Trigger re
s
t
a
rted
Ri
s
ing edge detected
n : V
a
l
u
e of PDUTH & PDUTL regi
s
ter
s
m: V
a
l
u
e of PC
S
RH & PC
S
RL regi
s
ter
s
T : Co
u
nt clock cycle