Giter Club home page Giter Club logo

rc6502-pia-communicator's Introduction

Improved PIA Communicator for RC6502

This is an improved version of the RC6502 PIA communicator firmware for an Arduino Nano. It is based on the original Arduino Sketch provided with the RC6502. I have replaced the Arduino serial library with buffered interrupt-based serial communications routines and removed all the unnecessary communication delays.

This firmware is usually able to accept 40-column hex input at full speed, but it still drops characters with wider hex dumps because the Arduino doesn't have hardware flow control. However, using TeraTerm with a 20 ms delay between lines, it can reliably load hex data up to 97 columns wide. With the 20ms per-line delay, the entire 20KB of hex data for Fig Forth, which is in 97-column hex format, loads reliably in under 10 seconds.

This code is compiled with the provided Makefile using avr-libc and avr-gcc and flashed using avrdude. The Arduino IDE is not used.

Uploading hex file with avrdude

Replace COM9 with your serial port number:

avrdude -pm328p -carduino -PCOM9 -Uflash:w:"pia.hex":i

Credits

forked from J.B. Langston's jblang/pia_communicator

pia.c is based on the original RC6502 pia_communicator.ino sketch by tebl, and released under the GPLv3 license.

uart.h and uart.c come from the FatFs AVR example project. Copyright (C) 2016 ChaN.

The iox.h, iox.c, spi.h, and spi.c come from jblang/z80ctrl

rc6502-pia-communicator's People

Contributors

sjlevy avatar jblang avatar

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.