![](http://datasheet.mmic.net.cn/330000/MB90F562_datasheet_16437954/MB90F562_337.png)
MB90560 series
CHAPTER 12 MULTI-FUNCTION TIMER
313
Table 12.3.4.2-1 PPG1/3/5 Control Register (PPGC1/3/5) Bit
Bit
Function
Bit 15
PEN1:
Operation
enable bit
for PPG1/3/5
This bit is used to enable the operation of PPG1/3/5.
When SST1=”0”, writing “1” will start the PPG1/3/5 operation
and writing “0” will stop the operation.
When SST1=”1”, setting this bit cause no effect.
Bit 14
SST1:
Start select bit
for PPG1/3/5
This bit is used to select the start condition of PPG1/3/5.
After writing “0” to this bit, the PPG1/3/5 will be operated
depending on the PEN1 bit.
Writing “1” to PEN1 bit while this bit is “1”, PPG1/3/5 will be
operated while the GATE signal is “H”.
Bit 13
POE1:
Output
enable bit
This bit is used to select either the pulse output of PPG1/3/5 or
general-purpose port.
Bit 12
PIE1:
Interrupt request
enable bit
for PPG1/3/5
This bit is used to enable an interrupt request for PPG1/3/5.
While ”1” is written to this bit, PPG1/3/5 is generated an
interrupt when the interrupt flag (PUF1) is set.
Bit 11
PUF1:
Interrupt request
flag bit
for PPG1/3/5
This bit is used as an interrupt request flag for PPG1/3/5
underflow.
In 8-bit PPG 2ch independent mode or 8+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 10
Bit 9
MD01, MD00:
PPG1/3/5 timer
operation
mode bit
This bit is used to select operation mode of PPG1/3/5.
Note:
Do not set “10” in this bit.
Note:
When these bits are set to “01”, do not set the
PPGC0/2/4:PEN0 and PPGC1/3/5:PEN1 bits to “01”.
It is recommended that the PEN0 and PEN1 bits be
set to “11” or “00”. When MOD1 and MOD0 are set to
“11”, rewrite PPGC0/2/4 and PPGC1/3/5 by word
transfer to set the PEN0 and PEN1 bits to “11” or “00”
.
Note:
When these bits are set to “01”, be sure to set the
PPGC0/2/4:PEN0 bit to “1” before setting the PPGC1/
3/5:SST1 bit to “1”. When the PEN0 bit is set to “0”, be
sure to set the SST1 bit to “0” in advance. When
MOD1 and MOD0 are set to “11”, rewrite PPGC0/2/4
and PPGC1/3/5 by word transfer to set the SST0 and
SST1 bits to “11” or “00”.
Bit 8
Reserved bit
Always setting this bit to “1” when setting PPGC1/3/5