STM8S003K3 STM8S003F3
Pinout and pin description
1. (HS) high sink capability.
2. (T) True open drain (P-buffer and protection diode to VDD not implemented).
3. [ ] alternate function remapping option (if the same alternate function is shown twice, it
indicates an exclusive choice not a duplication of the function).
Pin Pin
no. name
Table 5: LQFP32 pin description
Input
Output
Main
Default
Type
function
alternate
floating wpu
Ext.
interrupt
High
sink(1)
Speed
OD
PP
(after reset) function
Alternate
function
after remap
[option bit]
1 NRST
I/O
2 PA1/ OSCI (2) I/O X
X
XX
Reset
O1 X X Port A1
Resonator/
crystal in
3 PA2/ OSCOUT I/O X
XX
O1 X X Port A2
Resonator/
crystal out
4 VSS
S
5 VCAP
S
Digital ground
1.8 V regulator capacitor
6 VDD
7 PA3/
TIM2_CH3
[SPI_NSS]
S
I/O X
XX
Digital power supply
HS O3 X X Port A3
Timer 2
channel 3
SPI master/
slave select
[AFR1]
8 PF4
I/O X
X
O1 X X Port F4
9 PB7
I/O X
XX
O1 X X Port B7
10 PB6
I/O X
11 PB5/ I2C_SDA I/O X
12 PB4/ I2C_SCL I/O X
XX
X
X
O1 X X Port B6
O1 T(3)
Port B5
O1 T(3)
Port B4
I2C data
I2C clock
13 PB3/AIN3/
TIM1_ETR
I/O X
XX
HS O3 X X Port B3
Analog input 3/
Timer 1
external trigger
14 PB2/AIN2/
TIM1_CH3N
I/O X
XX
HS O3 X X Port B2
Analog input 2/
Timer 1 -
inverted
channel 3
DocID018576 Rev 3
19/100