MB90670/675 Series
46
4.
8/16-bit PPG Timer
The 8/16-bit PPG timer is 2-channel reload timer module for outputting pulse having given frequencies/duty ratios.
The two modules performs the following operation by combining functions.
8-bit PPG output 2-channel independent operation mode
This is a mode for operating independent 2-channel 8-bit PPG timer, in which PPG0 and PPG1 pins correspond
to outputs from PPG0 and PPG1 respectively.
16-bit PPG output operation mode
In this mode, PPG0 and PPG1 are combined to be operated as a 1-channel 8/16-bit PPG timer operating as
a 16-bit timer. Because PPG0 and PPG1 outputs are reversed by an underflow from PPG1 outputting the
same output pulses from PPG0 and PPG1 pins.
8 + 8-bit PPG output operation mode
In this mode, PPG0 is operated as an 8-bit prescaler, in which an underflow output of PPG0 is used as a clock
source for PPG1. A toggle output of PPG0 and PPG output of PPG1 are output from PPG0 and PPG1
respectively.
The module can also be used as a D/A converter with an external add-on circuit.
(1) Register Configuration
PPG0 operating mode control register (PPGC0)
PPG1 operating mode control register (PPGC 1)
PPG reload register (PRLL0,PRLH0,PRLL1,PRLH1)
Address
000030H
bit 15
bit 8
PEN0
—
POE0
PIE0
PUF0
PCM1
PCM0
RESV
(PPGC1)
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
R/W
—
R/W
............
Address
000031H
bit 7
bit 0
PEN1
PCS1
POE1
PIE1
PUF1
MD1
MD0
RESV
bit 15
bit 14
bit 13
bit 12
bit 11
bit 10
bit 9
bit 8
............
(PPGC0)
Address
PRLH0:000035H
PRLH1:000037H
bit 15
bit 8
(PRLH0,PRLH1)
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
R/W
............
R/W
bit 7
bit 0
bit 15
bit 14
bit 13
bit 12
bit 11
bit 10
bit 9
bit 8
............
(PRLL0,PRLL1)
R/W
Address
PRLL0:000034H
PRLL1:000036H
R/W : Readable and writable
— : Unused
X : Indeterminate
Initial value
XXXXXXXX B
Initial value
XXXXXXXX B
Initial value
00000001 B
Initial value
0 - 000001 B