stm8af6166tdy STMicroelectronics, stm8af6166tdy Datasheet - Page 15

no-image

stm8af6166tdy

Manufacturer Part Number
stm8af6166tdy
Description
Automotive 8-bit Mcu, With Up To 32 Kbytes Flash, Data Eeprom, 10-bit Adc, Timers, Lin, Spi, I2c, 3 To 5.5 V
Manufacturer
STMicroelectronics
Datasheet
STM8AF61xx, STM8AF62xx
5.5
5.5.1
5.5.2
byte area. This keyword must be entered via the SWIM interface to temporarily unlock the
device.
If desired, the temporary unlock mechanism can be permanently disabled by the user
through OPT6/NOPT6 option bytes.
Clock controller
The clock controller distributes the system clock coming from different oscillators to the core
and the peripherals. It also manages clock gating for low-power modes and ensures clock
robustness.
Features
16 MHz high-speed internal RC oscillator (HSI)
User trimming
The register CLK_HSITRIMR with three trimming bits plus one additional bit for the sign
permits frequency tuning by the application program. The adjustment range covers all
possible frequency variations versus supply voltage and temperature. This trimming does
not change the initial production setting.
For reason of compatibility with other devices from the STM8A family, a special mode
with only two trimming bits plus sign can be selected. This selection is controlled
with the HSITRIM0 bit in the option byte registers OPT3 and NOPT3.
Clock sources:
Reset: After reset the microcontroller restarts by default with an internal 2-MHz clock
(16 MHz/8). The clock source and speed can be changed by the application program
as soon as the code execution starts.
Safe clock switching: Clock sources can be changed safely on the fly in Run mode
through a configuration register. The clock signal is not switched until the new clock
source is ready. The design guarantees glitch-free switching.
Clock management: To reduce power consumption, the clock controller can stop the
clock to the core or individual peripherals.
Wakeup: In case the device wakes up from low-power modes, the internal RC
oscillator (16 MHz/8) is used for quick startup. After a stabilization time, the device
switches to the clock source that was selected before Halt mode was entered.
Clock security system (CSS): The CSS permits monitoring of external clock sources
and automatic switching to the internal RC (16 MHz/8) in case of a clock failure.
Configurable main clock output (CCO): This feature permits to outputs a clock signal
for use by the application.
Default clock after reset 2 MHz (16 MHz/8)
Fast wakeup time
16 MHz high-speed internal RC oscillator (HSI)
128 kHz low-speed internal RC (LSI)
1-16 MHz high-speed external crystal (HSE)
Up to 16 MHz high-speed user-external clock (HSE user-ext)
Doc ID 14952 Rev 5
Product overview
15/91

Related parts for stm8af6166tdy