Datasheet

Pin description STM8L052R8
22/55 Doc ID 023133 Rev 2
Table 3. Legend/abbreviation for Tabl e 4
Type I= input, O = output, S = power supply
Level
FT Five-volt tolerant
TT 3.6 V tolerant
Output HS = high sink/source (20 mA)
Port and control
configuration
Input float = floating, wpu = weak pull-up
Output T = true open drain, OD = open drain, PP = push pull
Reset state
Bold X (pin state after reset release).
Unless otherwise specified, the pin state is the same during the reset phase (i.e.
“under reset”) and after internal reset release (i.e. at reset state).
Table 4. High density value line STM8L05xxx pin description
Pin
number
Pin name
Type
I/O level
Input Output
Main function
(after reset)
Default alternate function
LQFP64
floating
wpu
Ext. interrupt
High sink/source
OD
PP
2 NRST/PA1
(1)
I/O X HS X X Reset PA 1
3
PA2/OSC_IN/
[USART1_TX]
(8)
/
[SPI1_MISO]
(8)
I/O X X X HS X X Port A2
HSE oscillator input /
[USART1 transmit] / [SPI1
master in- slave out]
4
PA3/OSC_OUT/[USART1_
RX]
(8)
/[SPI1_MOSI]
(8)
I/O X X X HS X X Port A3
HSE oscillator output /
[USART1 receive]/ [SPI1
master out/slave in]/
5
PA4/TIM2_BKIN/
[TIM2_ETR]
(8)
/
LCD_COM0/ADC1_IN2
I/O FT
(2)
XXXHSXXPort A4
Timer 2 - break input
/[Timer 2 - trigger]/
LCD COM 0 / ADC1 input 2
6
PA5/TIM3_BKIN/
[TIM3_ETR]
(8)
/
LCD_COM1/ADC1_IN1
I/O FT
(2)
XXXHSXXPort A5
Timer 3 - break input
/[Timer 3 - trigger]/
LCD_COM 1 / ADC1 input
1
7
PA 6/ [ADC1_TRIG]/
LCD_COM2/ADC1_IN0
I/O FT
(2)
XXXHSXXPort A6
[ADC1 - trigger] /
LCD_COM2 /
ADC1 input 0
8
PA7/LCD_SEG0
(2)
/TIM5_CH1
I/O FT
(2)
XXXHSXXPort A7
LCD segment 0/ TIM5
channel 1
31
PB0
(3)
/TIM2_CH1/
LCD_SEG10/ADC1_IN18
I/O FT
(2)
XXXHSXXPort B0
Timer 2 - channel 1 / LCD
segment 10 / ADC1_IN18
32
PB1/TIM3_CH1/
LCD_SEG11/
ADC1_IN17
I/O FT
(2)
XXXHSXXPort B1
Timer 3 - channel 1 / LCD
segment 11 / ADC1_IN17