The Wayback Machine - https://web.archive.org/web/20201022232736/https://github.com/kohanyirobert/8051
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
doc
 
 
etc
 
 
fzz
 
 
 
 
 
 
 
 
 
 

README.adoc

About

Instructions to download programs to (some) Intel MCS-51 compatible MCUs.

Parts

AT89S51

Note
Same applies to AT89S52.
A89S51

STC89C51RC

Note
Same applies to STC89C52RC and STC12C5A6S2.
STC89C51RC

Dependencies

Hardware

AT89S51, AT89S52

  • Arduino board (e.g. Nano, Micro, etc.) — 1 piece

  • Microcontroller — 1 piece

  • Breadboard — 2 pieces

  • Jumper wires — ~20 pieces

  • LEDs — 1 red, 1 green, 1 yellow, 1 white

  • 1-10kΩ resistors — 2 pieces

  • 8-33MHz quartz crystal — 1 piece

  • 22pF capacitors — 2 pieces

  • 10-pin ribbon cable — 1 piece

  • 10-pin to 6-pin adapter — 2 pieces

  • Push-button (NO) — 1 piece

STC89C51RC, STC89C52RC, STC12C5A60S2

  • USB to Serial/TTL adapter (e.g. CH340G, PL2303, etc.) — 1 piece

  • Microcontroller — 1 piece

  • Breadboard — 1 piece

  • Jumper wires — ~10 pieces

  • LEDs — 1 white

  • 1-10kΩ resistors — 1 pieces

  • 8-33MHz quartz crystal — 1 piece

  • 22pF capacitors — 2 pieces

  • Push-button (NO) — 1 piece

Software

AT89S51, AT89S52

Important
Upload the ArduinoISP sketch onto the Arduino board.

STC89C51RC, STC89C52RC, STC12C5A60S2

Programming

Compile binary

Windows and Unix
mcu8051ide --no-bin --no-sim --assemble blink.asm

The output is blink.hex.

Downloading

AT89S51, AT89S52

Windows
avrdude -C %AVRDUDE_HOME%/etc/avrdude.conf -C +./etc/avrdude.conf -c avrisp -p AT89S51 -P COM7 -b 19200 -U flash:w:blink.hex:i

STC89C51RC, STC89C52RC, STC12C5A60S2

Windows
stcgal -p COM7 blink.hex // (1)
  1. Executing this displays Waiting for MCU, please cycle power. Simply disconnect then reconnect VCC.

About

Instructions to download programs to (some) Intel MCS-51 compatible MCUs

Topics

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.