STM8L151G6U6

STM8L151G6U6

Category: IC Chips

Specifications
SKU
7430254
Details

BUY STM8L151G6U6 https://www.utsource.net/itm/p/7430254.html
STM8 STM8L EnergyLite Microcontroller IC 8-Bit 16MHz 32KB (32K x 8) FLASH 28-UFQFPN

Below is the parameter table and instructions for the STM8L151G6U6 microcontroller:

Parameter Table

Parameter Symbol Min Typ Max Unit
Supply Voltage VDD 1.8 - 3.6 V
Operating Temperature Range TOP -40 - 85 °C
Flash Memory Size - 64 - KB
RAM Size - 8 - KB
Clock Frequency fCLK - 16 - MHz
Low Power Modes - 5 - Modes
I/O Pins - 48 - Pins
ADC Channels - 12 - Channels
UART Interfaces - 2 - Interfaces
SPI Interfaces - 2 - Interfaces
I2C Interfaces - 1 - Interface
Timers - 7 - Timers
Watchdog Timer - 1 - Timer
External Interrupts - 19 - Lines
Power Consumption (Active) - 160 - μA/MHz
Power Consumption (Stop Mode) - 0.6 - μA

Instructions

  1. Power Supply:

    • Connect VDD to a stable power supply between 1.8V and 3.6V.
    • Ensure a low-impedance path to ground for proper operation.
  2. Clock Configuration:

    • The internal high-speed oscillator (HSI) runs at 16 MHz by default.
    • For external clock sources, configure the clock control register (CLK_CKDIVR) and clock switch register (CLK_SWCR).
  3. Low Power Modes:

    • Use the power control registers (PWR_CR and PWR_CSR) to enter low power modes such as Stop, Standby, and Sleep.
    • Ensure that wake-up sources are configured before entering low power modes.
  4. GPIO Configuration:

    • Configure GPIO pins using the GPIO configuration registers (GPIOx_CR1, GPIOx_CR2, GPIOx_ODR, etc.).
    • Set the mode (input/output), speed, and pull-up/pull-down resistors as needed.
  5. ADC Usage:

    • Initialize the ADC using the ADC control registers (ADC_CR1, ADC_CR2, ADC_CSR, etc.).
    • Select the channel and start a conversion using the appropriate commands.
  6. UART/SPI/I2C Communication:

    • Configure the communication peripherals using their respective control registers (e.g., USART_CR1, USART_BRR, SPI_CR1, I2C_CR1).
    • Set baud rates, data formats, and other parameters as required.
  7. Timer Configuration:

    • Initialize timers using the timer control registers (TIMx_CR1, TIMx_PSC, TIMx_ARR, etc.).
    • Configure prescalers, auto-reload values, and interrupt sources.
  8. Interrupt Handling:

    • Enable and configure interrupts using the NVIC (Nested Vectored Interrupt Controller) and the appropriate interrupt enable registers.
    • Write interrupt service routines (ISRs) to handle specific events.
  9. Flash Programming:

    • Use the Flash control registers (FLASH_CR1, FLASH_NCR1, etc.) to program and erase flash memory.
    • Ensure that write operations are properly sequenced and that the flash memory is not corrupted.
  10. Reset and Initialization:

    • After reset, the microcontroller starts execution from the reset vector.
    • Initialize all necessary peripherals and system configurations in the main function or startup code.

For detailed information and specific register addresses, refer to the STM8L151G6U6 datasheet and reference manual.

(For reference only)

View more about STM8L151G6U6 on main site