
MB90220 Series
56
11. PPG Timer (Programmable Pulse Generator)
This module can output a pulse synchronized with an external trigger or a software trigger. In addition, the cycle
and duty ratio of the output pulse can be changed as desired by overwriting the two 16-bit register values.
PWM function:
Synchronizes pulse with trigger, and permits programming of the pulse output by
overwriting the register values mentioned above.
This function permits use as a D/A converter with the addition of external circuits.
One-shot function: Detects the edge of trigger input, and permits single-pulse output. There is no
trigger input for PPG1.
This module consists of a 16-bit down-counter, a prescaler, a 16-bit synchronization setting register, a 16-bit
duty register, a 16-bit control register, one external trigger input pin, and one PPG output pin.
(1) Register Configuration
0004D
H
0004F
H
CNTE
STGR
MDSE
RTRG
CKS1
CKS0
PGMS
—
bit15
bit14
bit13
bit12
bit11
bit10
bit9
bit8
0004C
H
0004E
H
EGS1
EGS0
IREN
IRQF
IRS1
IRS0
POEN
OSEL
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
001F49
H
001F4D
H
001F48
H
001F4C
H
001F4B
H
001F4F
H
001F4A
H
001F4E
H
PCNT0
PCNT1
PCNT0
PCNT1
00000000
B
00000000
B
bit15
bit14
bit13
bit12
bit11
bit10
bit9
bit8
bit15
bit14
bit13
bit12
bit11
bit10
bit9
bit8
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
XXXXXXXX
B
XXXXXXXX
B
XXXXXXXX
B
XXXXXXXX
B
PCSP0
PCSP1
PDUT0
PDUT1
PDUT0
PDUT1
PCSP0
PCSP1
Register name Address
Register name Address
Register name Address
Register name Address
Register name Address
Register name Address
Initial value
Initial value
Initial value
Initial value
Initial value
Initial value
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
(W)
Overwrite during operation
→
Overwrite during operation
→
PPG Control Status Register (PCNT0, 1)
PPG0, 1 Cycle Setting Register (PCSP0, 1)
PPG0, 1 Duty Setting Register (PDUT0, 1)