289
12.3 Multifunctional Timer Registers
Table 12.3-8 Functions of Bits for PPG Control Register (Lower) (PPGC0, PPGC2, and PPGC4) [The
PPG control registers (lower) correspond to ch0, ch2, and ch4]
Bit name
Function
bit7
PEN0:
Operation enable bit
This bit enables an operation when software activation is set.
When this bit is set to "1" while the activation condition setting bit (SST0) is
"0", the PPG timer starts to count.
If the activation condition setting bit (SST0) is set to "1", operation is not
affected.
bit6
SST0:
Activation condition
setting bit
This bit is used to set the activation conditions for the PPG timer.
When the operation enable bit (PEN0) is set to "1" while this bit is "0", the
PPG timer starts to count.
If "1" is set, the operation enable bit (PEN0) setting does not affect operation.
PPG operates during the "H" period of the GATE signal input from the
waveform generation block.
bit5
POE0:
Pin output enable bit
This bit enables pulse output of the PPG timer to the PPG pin.
If this bit is "0", the pin corresponding to each channel operates as an I/O
port.
If this bit is "1", the pin corresponding to each channel operates as an output
pin of PPG.
bit4
PIE0:
PPG timer interrupt
request enable bit
This bit enables an interrupt request.
When the PPG timer interrupt request flag bit (PUF0) is set to "1" while this
bit is "1", an interrupt request is output.
bit3
PUF0:
PPG timer interrupt
request flag bit
This bit is a flag that requests an interrupt.
If an underflow of the counter value of the PPG timer occurs, this bit is set to
"1".
When this bit is set to "1" while the PPG timer interrupt enable bit (PIE0) is
"1", an interrupt request is output.
If this bit is "0", an interrupt request is cleared.
If this bit is "1", operation is not affected.
A read-modify-write instruction always reads "1" from this bit.
Note:
For 8-bit PPG mode and 8-bit prescaler + 8-bit PPG mode, "1" is set when
an underflow ("00H" --> "FFH") of the counter value occurs.
For 16-bit PPG mode, "1" is set when an underflow ("0000H" --> "FFFFH")
of the counter value occurs.
bit2
POS1:
(corresponding to
ch1, ch3, and ch5)
Pulse output polarity
setting bit
This bit is used to set the pulse output polarity of the PPG timer to an
external pin.
bit1
POS0:
(corresponding to
ch0, ch2, and ch4)
Pulse output polarity
setting bit
This bit is used to set the pulse output polarity of the PPG timer to an
external pin.
bit0
RESV:
Reservation bit
Always specify "1".