Code Monkey home page Code Monkey logo

8051's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.