uPSD3212A, uPSD3212C, uPSD3212CV
70/163
Programmable Period 8-bit PWMThe PWM 4 channel can be programmed to pro-vide a PWM output with variable pulse width andperiod. The PWM 4 has a 16-bit Prescaler, an 8-bit Counter, a Pulse Width Register, and a PeriodRegister. The Pulse Width Register defines thePWM pulse width time, while the Period Registerdefines the period of the PWM. The input clock tothe Prescaler is fOSC/2. The PWM 4 channel is as-signed to Port 4.7.Figure 37. Programmable PWM 4 Channel Block Diagram
AI07091
Port 4.7
16-bit Prescaler
Register
(B4h, B3h)
16-bit Prescaler
Counter
8-bit Counter
8-bit PWM4P
Register
(Period)
8-bit PWM4
Comparator
Register
8-bit PWM4
Comparator
PWM4
Control
Match
CPU RD/WR
Load
Load
Clock Reset
PWMCON
Bit 6 (PWMP)
DATA BUS
CPU RD/WR
fOSC / 2
PWMCON
Bit 5 (PWME)
8
16
8
8
8
8
8-bit PWM4W
Register
(Width)
8-bit PWM4
Comparator
Register
8-bit PWM4
Comparator
8
88
8
8