Specifications
SKU: 11244445
Parameter | Value |
---|---|
Device | STM8S103K3T6C |
Family | STM8S |
Package | TSSOP20 (Thin Shrink Small Outline Package) |
Operating Voltage | 2.95 V to 5.5 V |
Operating Temperature | -40°C to +85°C |
Flash Memory | 8 KB |
RAM | 1 KB |
Clock Frequency | Up to 16 MHz |
I/O Pins | 17 (including VSS and VDD) |
Analog-to-Digital Converter (ADC) | 10-bit, 1 channel |
Timers | 2 x 16-bit timers |
Watchdog Timer | Yes |
Brownout Detection | Yes |
Low Power Modes | Sleep, Stop, Standby |
Programming Interface | In-Circuit Serial Programming (ICSP) |
Reset Sources | Pin reset, power-on reset, watchdog reset |
Supply Current | 1.8 mA (active mode), 2 μA (standby mode) |
Instructions for Use
Power Supply:
- Connect the VDD pin to the positive supply voltage (2.95 V to 5.5 V).
- Connect the VSS pin to the ground.
Clock Configuration:
- The internal high-speed clock (HSI) is enabled by default at 16 MHz.
- For external clock sources, configure the appropriate clock control registers.
Programming:
- Use an ST-LINK or similar programmer to program the device via the ICSP interface.
- Ensure the programming voltage (VPP) is applied correctly if using an external programmer.
Reset:
- The NRST pin can be used to reset the microcontroller.
- A pull-up resistor is recommended on the NRST pin.
Low Power Modes:
- Enter low power modes using the appropriate control registers.
- Use the WFI (Wait For Interrupt) or WFE (Wait For Event) instructions to manage power consumption.
Analog-to-Digital Conversion:
- Configure the ADC peripheral using the ADC control registers.
- Use the ADC conversion complete interrupt to handle data.
Timers:
- Configure the timers using the TIMx control registers.
- Set up timer interrupts for periodic events or PWM generation.
Watchdog Timer:
- Enable the watchdog timer to ensure the microcontroller resets in case of a software fault.
- Feed the watchdog timer periodically to prevent an unintended reset.
Brownout Detection:
- Enable brownout detection to reset the microcontroller if the supply voltage drops below a threshold.
GPIO Configuration:
- Configure the GPIO pins as input, output, or alternate functions using the GPIO control registers.
- Use internal pull-up or pull-down resistors as needed.
For detailed register configurations and advanced features, refer to the STM8S103K3T6C datasheet and reference manual.
(For reference only)Inquiry - STM8S103K3T6C