STM8S005K6 STM8S005C6
Pinout and pin description
Figure 4: LQFP 32-pin pinout
NRST
OSCIN/PA1
OSCOUT/PA2
V SS
VCAP
V DD
V DDIO
AIN12/PF4
32 31 30 29 28 27 26 25
1
24
2
23
3
22
4
21
5
20
6
19
7
18
8
17
9 10 11 12 13 14 15 16
PC7 (HS)/SPI_MISO
PC6 (HS)/SPI_MOSI
PC5 (HS)/SPI_SCK
PC4 (HS)/TIM1_CH4
PC3 (HS)/TIM1_CH3
PC2 (HS)/TIM1_CH2
PC1 (HS)/TIM1_CH1/UART2_CK
PE5/SPI_NSS
1. (HS) high sink capability.
2. [ ] alternate function remapping option (If the same alternate function is shown twice, it
indicates an exclusive choice not a duplication of the function).
Table 5: Pin description for STM8S005 microcontrollers
Pin number
LQFP48 LQFP32
Pin name Type Input
Output
Main function
(after reset)
floating wpu Ext.
High Speed OD PP
interrupt sink
Default alternate
function
Alternate
function after
remap [option
bit]
1
1
NRST
I/O
X
Reset
2
2
PA1/ OSC I/O
X
X
IN
O1
X
X
Port A1
Resonator/
crystal in
3
3
PA2/ OSC I/O
X
OUT
XX
O1
X
X
Port A2
Resonator/
crystal out
4
-
VSSIO_1 S
I/O ground
5
4
VSS
S
Digital ground
DocID022186 Rev 3
21/103