Skip to content

Commit 78affcf

Browse files
committed
improve unlock description
1 parent 412a804 commit 78affcf

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

docs/hardware/stm8blue.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ perfect for breadboards).
2525

2626
![Schematic of the STMS103 board](stm8blue-schematic.png)
2727

28+
29+
## Unlocking a write protected MCU
30+
2831
My breakout boards came preprogrammed with a blink program and with active
2932
write protection bits. For unlocking before first use:
3033

@@ -111,8 +114,8 @@ paratheses):
111114
|1 |PD4 |UART_CLK/T2-1/beep |13 |PWM
112115
|2 |PD5 |TX/Ain5 |14 |Analog A3
113116
|3 |PD6 |RX/Ain6 |15 |Analog A4
114-
|5 |PA1 |(OscIn, kein HS) |0 |
115-
|6 |PA2 |(OscIn, kein HS) |1 |
117+
|5 |PA1 |(OscIn, no HS) |0 |
118+
|6 |PA2 |(OscIn, no HS) |1 |
116119
|10 |PA3 |SS/T2-3 |2 |PWM
117120
|11 |PB5 |SDA LED |3 |
118121
|12 |PB4 |SCL |4 |
@@ -130,9 +133,9 @@ paratheses):
130133

131134
The pins D3/D4 (SDA/SCL, PB5/PB4) are different from the others as they are
132135
true open drain pins. That means, they only can drive the output low or
133-
open. To drive it high, they require an external pull-up resistor.
134-
This is the reason why the LED on this breakout board is connected between +3.3V
135-
and the pins and not between the pin GND as usual. This way it is possible
136+
open. To drive it high, they require an external pull-up resistor. This is
137+
the reason why the LED on this breakout board is connected between +3.3V and
138+
the pins and not between the pin and GND as usual. This way it is possible
136139
to drive the LED by writing a zero to the output register.
137140

138141

0 commit comments

Comments
 (0)