ST7LITE20F2 STMicroelectronics, ST7LITE20F2 Datasheet - Page 57

no-image

ST7LITE20F2

Manufacturer Part Number
ST7LITE20F2
Description
8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, TIMERS, SPI
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST7LITE20F2

8 Kbytes Single Voltage Flash Program Memory With Read-out Protection, In-circuit Programming And In-application Programming (icp And Iap). 10k Write/erase Cycles Guaranteed, Data Retention
20 years at 55˚C.
Clock Sources
Internal 1% RC oscillator, crystal/ceramic resonator or external clock
Five Power Saving Modes
Halt, Active-Halt, Wait and Slow, Auto Wake Up From Halt
12-BIT AUTORELOAD TIMER (Cont’d)
Figure 37. PWM Signal from 0% to 100% Duty Cycle
Output Compare Mode
To use this function, load a 12-bit value in the
DCRxH and DCRxL registers.
When the 12-bit upcounter (CNTR) reaches the
value stored in the DCRxH and DCRxL registers,
the CMPF bit in the PWMxCSR register is set and
an interrupt request is generated if the CMPIE bit
is set.
Note: The output compare function is only availa-
ble for DCRx values other than 0 (reset value).
Break Function
The break function is used to perform an emergen-
cy shutdown of the power converter.
The break function is activated by the external
BREAK pin (active low). In order to use the
BREAK pin it must be previously enabled by soft-
ware setting the BPEN bit in the BREAKCR regis-
ter.
DCRx=FFDh
DCRx=FFEh
DCRx=000h
DCRx=000h
COUNTER
f
COUNTER
FFDh
FFEh
ATR= FFDh
FFFh
FFDh
When a low level is detected on the BREAK pin,
the BA bit is set and the break function is activat-
ed.
Software can set the BA bit to activate the break
function without using the BREAK pin.
When the break function is activated (BA bit =1):
– The break pattern (PWM[3:0] bits in the BREAK-
– The 12-bit PWM counter is set to its reset value.
– The ARR, DCRx and the corresponding shadow
– The PWMCR register is reset.
When the break function is deactivated after ap-
plying the break (BA bit goes from 1 to 0 by soft-
ware):
– The control of PWM outputs is transferred to the
CR) is forced directly on the PWMx output pins
(after the inverter).
registers are set to their reset values.
port registers.
FFEh
FFFh
FFDh
FFEh
ST7LITE2
57/133
t
1

Related parts for ST7LITE20F2