MB95630H Series
316
FUJITSU SEMICONDUCTOR LIMITED
MN702-00009-1v0-E
CHAPTER 18 8/16-BIT PPG
18.6 Operations and Setting Procedure Example
reversed and the signal is output to the PPGn1 pin.
•
When the PPG timer n0 (ch. n) downcounter operation enable bit (PEN00) is set to "1", the
8-bit PPG (PPG timer n0) loads the value in the 8/16-bit PPG timer n0 cycle setup buffer
register (PPSn0) and starts down-count operation (count clock = rising and falling edge
detection pulses of PPGn1 output after PPG timer n1 operation is enabled). When the count
value reaches "1", the value in the 8/16-bit PPG timer n0 cycle setup buffer register is
reloaded to repeat the counting. When the value of the downcounter matches the value in
the 8/16-bit PPG timer n0 duty setup buffer register (PDSn0), the PPGn0 output is set to
"H" synchronizing with the count clock. After "H" which is the value of duty setting is
output, the PPGn0 output is reset to "L". If the output level reverse bit (REV00) is "0", the
polarity remains the same. If it is "1", the polarity is reversed and the signal is output to the
PPGn0 pin.
•
Set that the duty of the 8-bit prescaler (PPG timer n1) output to 50%.
•
When PPG timer n0 is started with the 8-bit prescaler (PPG timer n1) being stopped, PPG
timer n0 does not count.
•
When the duty of the 8-bit prescaler (PPG timer n1) is set to 0% or 100%, PPG timer n0
does not perform counting as the 8-bit prescaler (PPG timer n1) output does not toggle.
Figure 18.6-4 shows the operation of 8-bit pre 8-bit PPG mode.
Figure 18.6-4 Operation of 8-bit Pre 8-bit PPG Mode
m1=4
n1=2
4
3
2
1
4
3
2
1
4
3
2
1
4
3
2
(1) = n1
×
T
(2) = m1
×
T
S
ynchronizing with m
a
chine clock
S
ynchronizing with m
a
chine clock
(1)
(2)
α
Co
u
nt clock
(Cycle T)
PEN01
PPG timer n1
co
u
nter v
a
l
u
e
Downco
u
nter v
a
l
u
e
m
a
tche
s
m
a
tche
s
d
u
ty
s
etting v
a
l
u
e
D
u
ty
s
etting
(PD
S
n1)
Cycle
s
etting
(PP
S
n1)
(Norm
a
l pol
a
rity)
PPGn1
PEN00
3
PPG timer n0
co
u
nter v
a
l
u
e
m0=
3
n0=2
D
u
ty
s
etting
(PD
S
n0)
Cycle
s
etting
(PP
S
n0)
2
1
3
2
1
(Norm
a
l pol
a
rity)
PPGn0
(Inver
s
ion pol
a
rity)
(Inver
s
ion pol
a
rity)
3
1
4
2
(
3
)
β
(4)
(
3
) = (1)
×
n0
(4) = (1)
×
m0
Downco
u
nter v
a
l
u
e
m
a
tche
s
m
a
tche
s
d
u
ty
s
etting v
a
l
u
e
Co
u
nter
b
orrow
PPG o
u
tp
u
t
s
o
u
rce
Co
u
nter
b
orrow
PPG o
u
tp
u
t
s
o
u
rce
T: Co
u
nt clock cycle
m0: PP
S
n0 regi
s
ter v
a
l
u
e
n0: PD
S
n0 regi
s
ter v
a
l
u
e
m1: PP
S
n1 regi
s
ter v
a
l
u
e
n1: PD
S
n1 regi
s
ter v
a
l
u
e
α
: The
v
a
l
u
e ch
a
nge
s
depending on the co
u
nt
clock
s
elected
a
nd the PEN01
s
t
a
rt timing.
β
: The
v
a
l
u
e ch
a
nge
s
depending on the
PPGn1
o
u
tp
u
t (ch. n) w
a
veform
a
nd the
PEN00
s
t
a
rt timing.