at89s8252-arduino
所属分类:处理器开发
开发工具:Python
文件大小:24KB
下载次数:0
上传日期:2020-08-13 22:31:24
上 传 者:
sh-1993
说明: 带Arduino的AT89S8252编程器
(AT89S8252 programmer with Arduino)
文件列表:
LICENSE (35149, 2020-08-14)
__pycache__ (0, 2020-08-14)
__pycache__\config.cpython-36.pyc (323, 2020-08-14)
blink (0, 2020-08-14)
blink\blink.hex (208, 2020-08-14)
blink\lorem.hex (5642, 2020-08-14)
config.py (259, 2020-08-14)
eraser.py (1169, 2020-08-14)
programmer (0, 2020-08-14)
programmer\programmer.ino (3894, 2020-08-14)
readdata.py (1717, 2020-08-14)
readprogram.py (1718, 2020-08-14)
verifydata.py (1996, 2020-08-14)
verifyprogram.py (2003, 2020-08-14)
writedata.py (2109, 2020-08-14)
writelock.py (1434, 2020-08-14)
writeprogram.py (2117, 2020-08-14)
# at89s8252-arduino
This is a programmer for the Atmel AT89S8252 microcontroller through Arduino's SPI port from an intel hex file.
# Installation
## Hardware
Upload `progammer.ino` to your Arduino board.
Connect the target microcontroller to VCC and GND, and add a crystal between XTAL1 and XTAL2. Make the following connections between the Arduino and the AT89S8252.
| AT89S8252 | Arduino |
|---------------|---------|
| RESET (Pin 9) | Pin 9 |
| MOSI (Pin 6) | Pin 11 |
| MISO (Pin 7) | Pin 12 |
| SCK (Pin 8) | Pin 13 |
## Software
Install PySerial and IntelHex modules for Python.
```
python3 -m pip install pyserial intelhex
```
# Usage
Edit `config.py` to change the serial port and target/dump hex files.
In the blink directory there is `blinky.hex` that can be used as a sample program.
Program the microcontroller by running the script `writeprogram.py`.
* If you want erase the chip run `eraser.py` it erase both program and data space.
* If you want dump the program on chip run `readprogram.py`
* If you want check the chip program from a file run `verifyprogram.py`
You can also write, read, and verify data space with:
* writedata.py
* readdata.py
* verifydata.py
近期下载者:
相关文件:
收藏者: