
11. PPG (Programmable Pulse Generator)
MC97F6108A User’s manual
98
11.3
PPG period/duty write
When writing a value to the PPG period registers, write to the PPGPH first, then write to the PPGPL.
As shown in the figure below, when writing to the PPGPH, the value is saved to a buffer. When writing
to the PPGPL, the saved value and PPGPL is loaded to the compare registers. PPG duty registers
(PPGDH, PPGDL) have the same write function.
PPGH/L (16-bit Counter)
PERIOD low
Compare REGISTER
PERIOD high
Compare REGISTER
PPGPH_BUF
PPGPL write
PPGPL
PPGPH
PPGPH write
period matching
PPGH/L (16-bit Counter)
DUTY low
Compare REGISTER
DUTY high
Compare REGISTER
PPGDH_BUF
PPGDL write
PPGDH/L
PPGDH
PPGDH write
duty matching
PERIOD low
REGISTER
PERIOD high
REGISTER
DUTY low
REGISTER
DUTY high
REGISTER
PPG
Non-operating
~(DUTY state)
Figure 34. PPG Period/Duty Write
PPG period high/low register is entered to the period high/low compare register, when the PPG is not
operated. PPG duty high/low register is entered to the duty high/low compare register, when PPG is not
in the duty state.
PERIOD high/low register
PERIOD high/low compare register
B
PPGO
A
B
A
DUTY high/low register
DUTY high/low compare register
B
A
B
A
DUTY
DUTY
PERIOD
C
C
C
B
C
C
C
C
D
C
D
D
D
D
D
D
Figure 35. PPG Period/Duty Load to Compare Registers