Fujitsu 8FX Hardware Manual page 338

8-bit microcontroller new 8fx family
Table of Contents

Advertisement

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 PPSn0 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 prescaler + 8-bit PPG mode.
Figure 18.6-4 Operation of 8-bit Prescaler + 8-bit PPG Mode
Count clock
(Cycle T)
PEN01
Cycle setting
(PPSn1)
m1=4
Duty setting
n1=2
(PDSn1)
PPG timer n1
counter value
Downcounter value
matches matches duty
setting value
Counter borrow
PPG output source
PPGn1
(Normal polarity)
(Inversion polarity)
PEN00
Cycle setting
m0=3
(PPSn0)
Duty setting
n0=2
(PDSn0)
PPG timer n0
counter value
Downcounter value
matches matches duty
setting value
Counter borrow
PPG output source
PPGn0
(Normal polarity)
(Reverse polarity)
316
4
3
2
1
4
3
Synchronizing with machine clock
3
2
(1) = n1
T
(2) = m1
T
(3) = (1)
n0
(4) = (1)
m0
FUJITSU SEMICONDUCTOR LIMITED
MB95630H Series
2
1
4
3
2
1
(1)
(2)
1
3
2
Synchronizing with machine clock
T:
Count clock cycle
:
The value changes depending on the count
m0: PPSn0 register value
clock selected and the PEN01 start timing.
n0: PDSn0 register value
:
The value changes depending on the
m1: PPSn1 register value
PPGn1 output (ch. n) waveform and the
n1: PDSn1 register value
PEN00 start timing.
4
3
2
1
4
1
3
2
(3)
(4)
MN702-00009-2v0-E

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95630h series

Table of Contents