808
Chapter 39 Programmable Pulse Generator
5.Operation
5. Operation
The MB91460 series features a maximum of 16 programmable pulse generators (PPGs), which provide
programmable pulse output independently or jointly.
The individual modes of operation are described below.
5.1 PWM Operation
In PWM operation, variable-duty pulses are generated from the PPG pin.
(1) Write a cycle value.
(2) Write a duty value and transfer the cycle value to buffers.
(3) Enable PPG operation.
(4) Generate an activation trigger.
(5) Load the cycle and duty values.
(6) Rewrite the duty value and transfer the cycle value to buffers.
(6) Counter down count
(7) The down counter equals the duty value.
(8) Inverses the PPG pin output level.
(9) Counter down count
(10) Counter borrow
(11) Clear the PPG pin output level (return to normal).
(12) Reload the cycle value.
(13) Reload the duty value.
(14) Steps from (6) to (13) are iterated.
(See “8. Caution (Page No.821)”.)
PPG pin output
Interrupt
cause
Effective edge
Duty match
Counter borrow
Activation trigger
CNTE
Load
Load
Reload
Enable count
Down count
value
(PTMR)
8000
8000
Match
Borrow
Borrow
Match
0007 0005
Duty match
Counter borrow
0007 0005
PCSR
PDUT
0007
0005
Match
Invert Invert Invert
Clear
Clear
(1)
(2) Write
(3)
(4)
Cycle
Duty
(7) Down count
(6) Rewrite
(8)
Down count
(9)
(10)
(11)
(12)
(13)
Normal
polarity
Inverted
polarity
Load
(5)
Load
8000 8000
Buffer
(Duty value)
Buffer
(Cycle value)
(5)
(13)
Reload