English
Language : 

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