302
CHAPTER 16 8-/16-BIT PPG TIMER
●
Operation in 8-bit PPG output 2-channel independent operation mode
• The 8-bit PPG timer with two channels performs an independent PPG operation.
• When the pin output is enabled (PPGCn: PEC=1, PPGCm: PED=1), if the PPG output pin selection is
set to standard (PPGnm:REV=0), the PPGn pulse wave is outputted from the PPGn pin and the PPGm
pulse wave is outputted from the PPGm pin. When the PPG output pin is switched (PPGnm: REV=1),
the PPGm pulse wave is outputted from the PPGn pin and the PPGn pulse wave is outputted from the
PPGm pin.
• When the reload value is set in the PPG reload registers (PRLLn/PRLHn, PRLLm/PRLHm) to enable
the operation of the PPG timer (PPGCn: PENC=1, PPGCm: PEND=1), the PPG down counter of the
enabled channel starts counting.
• To stop the count operation of the PPG down counter, disable the operation of the PPG timer of the
channel to be stopped (PPGCn: PENC=0, PPGCm: PEND=0). The count operation of the PPG down
counter is stopped and the output of the PPG output pin is held at a Low level.
• When the PPG down counter of each channel underflows, the reload values set in the PPG reload
registers (PRLLn/PRLHn, PRLLm/PRLHm) are reloaded to the PPG down counter that underflows.
• When an underflow occurs, the underflow generation flag bit in the channel that causes an underflow is
set (PPGCn: PUFC=1, PPGCm: PUFD=1). If an interrupt request is enabled at the channel that causes
an underflow (PPGCn: PIEC=1, PPGCm: PIED=1), the interrupt request is generated.