![](http://datasheet.mmic.net.cn/330000/MB90F562_datasheet_16437954/MB90F562_339.png)
MB90560 series
CHAPTER 12 MULTI-FUNCTION TIMER
315
Table 12.3.4.2-2 PPG0/2/4 Control Register (PPG0/2/4)
Bit
Function
Bit 7
PEN0:
Operation
enable bit
for PPG0/2/4
This bit is used to enable the operation of PPG0/2/4.
When SST1=”0”, writing “1” will start the PPG0/2/4 operation
and writing “0” will stop the operation.
When SST1=”1”, setting this bit cause no effect.
Bit 6
SST0:
Start select bit
for PPG0/2/4
This bit is used to select he start condition of PPG0/2/4.
After writing “0” to this bit, the PPG0/2/4 will be operated
depending on the PEN1 bit.
Writing “1” Writing “1” to PEN0 bit while this bit is “1”, PPG0/2/4
will be operated while the GATE signal is “H”.
Bit 5
POE0:
Output
enable bit
This bit is used to select either the pulse output of PPG0/2/4 or
general-purpose port.
Bit 4
PIE0:
Interrupt request
enable bit
for PPG0/2/4
This bit is used to enable an interrupt request for PPG0/2/4.
While '1' is written to this bit, PPG0/2/4 is generated an interrupt
when the interrupt flag (PUF0) is set.
Bit 3
PUF0:
Interrupt request
flag bit
for PPG0/2/4
This bit is used as an interrupt request flag for PPG0/2/4
underflow.
In 8-bit PPG 2ch independent mode or 8-bit prescaler + 8-bit
PPG mode, '1' is written to this bit when an underflow occurs as
a result of the ch0/2/4 counter value becoming between 00H
and FFH.
In 16-bit PPG 1ch mode, '1' is written to this bit when an
underflow occurs as a result of the ch1/ch0, ch2/ch3 and ch4/
ch5 counter value becoming between 0000H and FFFFH.
Writing “0” will clear this bit. Writing “1” has no effect.
In Read-Modify-Write operation, “1” is always read.
Bit 2
POS1:
Pulse polarity
selection bit
ThIs bit is used to select the pulse polarity to the external pin for
PPG1/3/5
Bit 1
POS1:
Pulse polarity
selection bit
ThIs bit is used to select the pulse polarity to the external pin for
PPG0/2/4.
Bit 0
Reserved bit
Always setting this bit to “1” when setting PPGC0/2/4