Skip to content

FadilElbshari/8051-Programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

8051 Microcontroller Serial Programmer using Arduino

This project allows you to program an 8051 microcontroller using an Arduino as a programmer and a Python script to transmit .hex files over a serial connection.


πŸ“‹ Features

  • Program 8051 microcontrollers via serial interface.
  • Use Arduino as a bridge programmer.
  • Automatically erases and flashes the 8051 ROM.
  • Supports most 8051-compatible chips (e.g., AT89S52, AT89C51).

πŸ”§ Requirements

  • Python 3.x
  • Arduino board (Uno, Nano, Mega, etc.)
  • 8051 microcontroller with ISP support
  • HEX file compiled for 8051
  • USB connection between Arduino and PC
  • Serial connection between Arduino and 8051
  • Python pyserial library

πŸ“¦ Installation

1. Install Python

Download and install Python from https://www.python.org.

2. Install PySerial

Install the required serial library using pip:

pip install pyserial

Usage

  1. Upload "Programming-8051.ino" to the arduino.
  2. Send hex file serially by the following:
     python send_file.py (dir/hexfile.hex) (Serial Port i.e. COM3) (Baud Rate: 9600)
  3. An actuall command would look like this:
    python send_file.py hexfile.hex COM3 9600
  4. After receieving the hex file, the arduino will erase the 8051 chip and flash the newly sent code into the 8051 ROM.

References

About

πŸ”§ 8051 Microcontroller Serial Programmer using Arduino

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published