Machines › Computers › STMicroelectronics › STM8S-Discovery
STM8S-Discovery
2009
The STM8S-Discovery (2009) is STMicroelectronics' low-cost evaluation board for its STM8 8-bit CISC microcontroller family, carrying an STM8S105. This is a from-scratch, in-browser model of the whole chip: the 8-bit accumulator, two 16-bit index registers, and the variable-length big-endian CISC instruction set with its prefix bytes. It runs real hand-assembled STM8 firmware and shows the board's on-board surface: the green LED LD1 on PD0, the user key on PB7 and the UART2 serial console. It has no on-board speaker, so it is silent.
STM8S-Discovery Online Emulator
Play STM8S-Discovery using JavaScript directly in your browser.
Controls
Runs real hand-assembled STM8 firmware on a from-scratch 8-bit STM8 core (an STM8S105 on the STM8S-Discovery board). Pick a program with the ROM selector. The on-board green LED LD1 is on PD0; the user/touch key is on PB7; UART output goes to the serial console at the bottom. "Blink LED" blinks LD1; "Button toggles LED" toggles LD1 on each press of the KEY button — hold or click it in the Controls window; "Timer blink" paces LD1 off the TIM4 update flag; "UART hello + counter" prints a greeting and an incrementing counter over UART2. Open the debugger, or add ?debug, to single-step the STM8, read A/X/Y/SP/PC/CC and the V/I1/H/I0/N/Z/C flags, disassemble the flash at 0x8000 with the new STM8 decoder (with its 0x72/0x90 prefix bytes) and set breakpoints and write watchpoints. The board has no on-board speaker, so it is honestly silent.
Runs real hand-assembled STM8 firmware on a from-scratch 8-bit STM8 core (an STM8S105 on the STM8S-Discovery board). Pick a program with the ROM selector. The on-board green LED LD1 is on PD0; the user/touch key is on PB7; UART output goes to the serial console at the bottom. "Blink LED" blinks LD1; "Button toggles LED" toggles LD1 on each press of the KEY button — hold or click it in the Controls window; "Timer blink" paces LD1 off the TIM4 update flag; "UART hello + counter" prints a greeting and an incrementing counter over UART2. Open the debugger, or add ?debug, to single-step the STM8, read A/X/Y/SP/PC/CC and the V/I1/H/I0/N/Z/C flags, disassemble the flash at 0x8000 with the new STM8 decoder (with its 0x72/0x90 prefix bytes) and set breakpoints and write watchpoints. The board has no on-board speaker, so it is honestly silent.
Runs real hand-assembled STM8 firmware on a from-scratch 8-bit STM8 core (an STM8S105 on the STM8S-Discovery board). Pick a program with the ROM selector. The on-board green LED LD1 is on PD0; the user/touch key is on PB7; UART output goes to the serial console at the bottom. "Blink LED" blinks LD1; "Button toggles LED" toggles LD1 on each press of the KEY button — hold or click it in the Controls window; "Timer blink" paces LD1 off the TIM4 update flag; "UART hello + counter" prints a greeting and an incrementing counter over UART2. Open the debugger, or add ?debug, to single-step the STM8, read A/X/Y/SP/PC/CC and the V/I1/H/I0/N/Z/C flags, disassemble the flash at 0x8000 with the new STM8 decoder (with its 0x72/0x90 prefix bytes) and set breakpoints and write watchpoints. The board has no on-board speaker, so it is honestly silent.
Runs real hand-assembled STM8 firmware on a from-scratch 8-bit STM8 core (an STM8S105 on the STM8S-Discovery board). Pick a program with the ROM selector. The on-board green LED LD1 is on PD0; the user/touch key is on PB7; UART output goes to the serial console at the bottom. "Blink LED" blinks LD1; "Button toggles LED" toggles LD1 on each press of the KEY button — hold or click it in the Controls window; "Timer blink" paces LD1 off the TIM4 update flag; "UART hello + counter" prints a greeting and an incrementing counter over UART2. Open the debugger, or add ?debug, to single-step the STM8, read A/X/Y/SP/PC/CC and the V/I1/H/I0/N/Z/C flags, disassemble the flash at 0x8000 with the new STM8 decoder (with its 0x72/0x90 prefix bytes) and set breakpoints and write watchpoints. The board has no on-board speaker, so it is honestly silent.
Configurations
| Configuration | Emulator | Machine | OS | Legal | |
|---|---|---|---|---|---|
| STM8S — Blink LED | STM8S-Discovery | STM8S-Discovery | open | Open ⛶ | |
| STM8S — Button toggles LED | STM8S-Discovery | STM8S-Discovery | open | Open ⛶ | |
| STM8S — Timer blink | STM8S-Discovery | STM8S-Discovery | open | Open ⛶ | |
| STM8S — UART hello + counter | STM8S-Discovery | STM8S-Discovery | open | Open ⛶ |
Downloads — ROMs & software
No downloads listed yet.
Chips
Emulators
| Emulator | Type | License | Site |
|---|---|---|---|
| STM8S-Discovery | online | MIT | Website ↗ |