STC ISP Programmer

Flash STC 8051 microcontrollers with a USB-to-serial converter and the bootloader that every chip has: the STC8H, STC8G, STC8A/8F, STC15 and STC10/11/12 series. Write HEX and BIN files and set the frequency of the internal oscillator, as stcgal does.

Firmware

    STC15 and STC8 only. Empty: as the chip was set last time. Chips that run from a crystal keep it.

    Choose Flash firmware and the converter's serial port, then switch the chip's power off and on: STC chips listen for the programmer only right after power-up. The chip is erased, written, its oscillator trimmed, and then it starts the program.

    Chip

    Shows the model, flash sizes, clock and bootloader version. The program on the chip is not changed.

    Erases the code flash (and the EEPROM area on STC15 and STC8).

    Wiring and power

    Converter   STC chip
       RXD  <-- P3.1 (TxD)
       TXD  --> P3.0 (RxD)
       VCC  --> VCC  (3.3 V or 5 V, as the chip)
       GND  --> GND
    • Power-up: the bootloader runs only for a moment after the chip gets power. Start an action first, then switch the power on (or off and on again). A switch or push button in the VCC line makes this easy.
    • Automatically: if DTR or RTS of the converter switches the chip's supply (for example through a P-channel MOSFET), choose that line under More options; the app then cycles the power by itself.
    • Leaking supply: while the power is off, the chip can be fed through the TXD line and not reset properly. A 1 kΩ resistor or a diode in that line (cathode to the converter) helps.

    The STC89/90, STC12C2052 and older STC15F10x/20x use other protocols, and the STC32 a 24-bit address space; they are not supported here. The STC8H8K64U, which can also load programs over USB, is flashed here through P3.0/P3.1 as shown.