ST7FLITE29 STMICROELECTRONICS [STMicroelectronics], ST7FLITE29 Datasheet - Page 56
![no-image](/images/no-image-200.jpg)
ST7FLITE29
Manufacturer Part Number
ST7FLITE29
Description
8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, TIMERS, SPI
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet
1.ST7FLITE29.pdf
(131 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
ST7FLITE29F286
Manufacturer:
ST
Quantity:
378
Part Number:
ST7FLITE29F2B6
Manufacturer:
ST
Quantity:
20 000
Company:
Part Number:
ST7FLITE29F2M6TR
Manufacturer:
ST
Quantity:
5 700
Part Number:
ST7FLITE29F2M6TR
Manufacturer:
ST
Quantity:
20 000
ST7LITE2
12-BIT AUTORELOAD TIMER (Cont’d)
11.2.3 Functional Description
PWM Mode
This mode allows up to four Pulse Width Modulat-
ed signals to be generated on the PWMx output
pins. The PWMx output signals can be enabled or
disabled using the OEx bits in the PWMCR regis-
ter.
PWM Frequency and Duty Cycle
The four PWM signals have the same frequency
(f
and the ATR register value.
Following the above formula,
– If f
– If f
Note: The maximum value of ATR is 4094 be-
cause it must be lower than the DCR value which
must be 4095 in this case.
At reset, the counter starts counting from 0.
When a upcounter overflow occurs (OVF event),
the preloaded Duty cycle values are transferred to
the Duty Cycle registers and the PWMx signals
are set to a high level. When the upcounter match-
es the DCRx value the PWMx signals are set to a
low level. To obtain a signal on a PWMx pin, the
Figure 36. PWM Function
56/131
1
PWM
f
minimum value is 8 KHz (ATR register value = 0)
is 2 MHz (ATR register value = 4094),the mini-
mum value is 1 KHz (ATR register value = 0).
PWM
COUNTER
COUNTER
) which is controlled by the counter period
AUTO-RELOAD
DUTY CYCLE
is 8 MHz (ATR register value = 4092), the
WITH OE=1
AND OPx=0
REGISTER
REGISTER
WITH OE=1
AND OPx=1
f
(DCRx)
PWM
(ATR)
is 4 Mhz
is 32 MHz, the maximum value of
= f
4095
000
COUNTER
,
the maximum value of f
/ (4096 - ATR)
PWM
contents of the corresponding DCRx register must
be greater than the contents of the ATR register.
The polarity bits can be used to invert any of the
four output signals. The inversion is synchronized
with the counter overflow if the TRAN bit in the
TRANCR register is set (reset value). See
35.
Figure 35. PWM Inversion Diagram
The maximum available resolution for the PWMx
duty cycle is:
Note: To get the maximum resolution (1/4096), the
ATR register must be 0. With this maximum reso-
lution, 0% and 100% can be obtained by changing
the polarity.
TRANCR Register
PWMxCSR Register
PWMx
TRAN
OPx
Resolution = 1 / (4096 - ATR)
overflow
counter
DFF
inverter
PWMx
PIN
t
Figure