@@ -6,25 +6,39 @@ boards are my main development platform.
66
77![ Image of the STM8S103 board] ( stm8blue.jpg )
88
9- They are very similar to the [ ESP14 Wifi-boards] ( esp14.md ) and
10- most programs will work fine on those chinese gems as well.
11-
12- The STM8S103 breakout boards are build around a CPU STM8S103F3P6 with 16MHz
13- internal oscillator, 8kB flash, 1kB RAM, and 640 byte EEPROM. The CPU
14- includes a UART, SPI, I2C, PWM, 10 bit ADC, 3 timer, and up to 14 I/O pins -
15- quite similar to an Atmel ATmega8.
9+ ## Features
10+
11+ The hardware features are quite similar to an ATmega8:
12+
13+ Boardname |stm8blue
14+ ----- |-------
15+ CPU |STM8S103F3P6
16+ Clock |16MHz, internal oscillator
17+ Flash |8kB
18+ RAM |1kB
19+ EEPROM |640 byte
20+ I/O voltage |3.3V
21+ GPIO |14
22+ serial connections |UART, SPI, I2C
23+ PWM |4 (up to 7 via alternate mapping)
24+ ADC |5 channel, 10 bit
25+ LED |PB5 (Arduino D3), active low, shared with I2C, red
26+ programming interface |SWIM, no serial bootloader
27+ USB connector |mini, power only (data lines not connected)
1628
1729One (red) LED is connected to GPIO PB5 (CPU pin 11). This LED is low active.
1830Please keep in mind that this is one of the I2C signals and ** using the LED
1931blocks the I2C bus** . The push button is for reset. The CPU runs on 3.3V, a
2032linear regulator is integrated on the board. The micro USB connector is only
2133for (5V) power supply, the data lines are not connected.
2234
35+ ![ Schematic of the STMS103 board] ( stm8blue-schematic.png )
36+
2337All CPU pins are easily accessible on (optional) pin headers (pitch 2.54mm,
2438perfect for breadboards).
2539
26- ![ Schematic of the STMS103 board ] ( stm8blue-schematic.png )
27-
40+ They are very similar to the [ ESP14 Wifi-boards ] ( esp14.md ) and
41+ most programs will work fine on those chinese gems as well.
2842
2943## Unlocking a write protected MCU
3044
@@ -65,6 +79,13 @@ SWIM |2 |5 | 5
6579GND |3 |7 | 3
6680NRST |4 |9 | 1
6781
82+ *** Crap alert:*** Some lots of the stm8blue boards seem to have no working
83+ connection to GND on the SWIM connector!
84+
85+ If the board does not respond to the flash tool when only powered from the
86+ SWIM connector, try powering it from the the USB connector or the power pin
87+ instead.
88+
6889
6990
7091## Pin number mappings
@@ -76,7 +97,7 @@ Ideally, all these numbers would be the same and all programs could be
7697compiled without changes.
7798
7899[ Here] ( ../developer/pin_mapping.md ) I discuss some possible pin mapping
79- schemes and check how close we could get the the ideal mapping.
100+ schemes and check how close we could get to the ideal mapping.
80101Unfortunatly, it turns out that a perfect mapping is not possible.
81102
82103In the end I chose a simple geometric numbering for the square UFQFPN20
@@ -88,7 +109,7 @@ this mapping:
88109
89110
90111sduino pin | STM8S103 CPU port pin
91- ---------- | ---------------------
112+ ---------: | ---------------------
92113 0-2 | PA1-PA3 (PA1 and PA2 only weak output drivers)
93114 3-4 | PB5-PB4 (reverse order)
94115 5-9 | PC3-PC7
0 commit comments