Skip to content

Instantly share code, notes, and snippets.

@TG9541
Created October 28, 2018 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TG9541/4da18ddf0daa4ae3b5284e4ef9ea01b7 to your computer and use it in GitHub Desktop.
Save TG9541/4da18ddf0daa4ae3b5284e4ef9ea01b7 to your computer and use it in GitHub Desktop.
STM8SxxxKyT6C port assignment
Pin STM	Connected to
-------------------------------------
 1  NRST
 2  PA1        (Y1)
 3  PA2        (Y1)
 4  VSS        digital ground
 5  VCAP       (C)
 6  VDD        power supply
 7  AE3(VDDIO) AE3 (I/O power supply)
 8  PF4        PF4
 9  PB7(VDDA)  PB7 (analog power supply)
10  PB6(VSSA)  PB6 (analog ground)
11  PB5(AIN5)  SDA (AIN5) Arduino A4(SDA
12  PB4        SCL (AIN4) Arduino A5(SCL)
13  PB3        AIN3 Arduino A3
14  PB2        AIN2 Arduino A2
15  PB1        AIN1 Arduino A1
16  PB0        AIN0 Arduino A0
17  PE5        PE5
18  PC1        L
19  PC2        L
20  PC3        L
21  PC4        L
22  PC5        Arduino 13(SCK)
23  PC6        Arduino 11(**MOSI)
24  PC7        Arduino 12(MISO)
25  PD0        7
26  PD1        SWIM
27  PD2        7
28  PD3        7
29  PD4        7
30  PD5        UART2_RX
31  PD6        UART2_TX
32  PD7        7

STM8S103K4 STM8S105K4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment