Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drujensen/eater-one
Modifications to the Ben Eater's C6502 Breadboard Project to add a Keyboard and Monitor.
https://github.com/drujensen/eater-one
Last synced: 10 days ago
JSON representation
Modifications to the Ben Eater's C6502 Breadboard Project to add a Keyboard and Monitor.
- Host: GitHub
- URL: https://github.com/drujensen/eater-one
- Owner: drujensen
- Created: 2022-02-25T18:41:54.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-01T02:23:22.000Z (over 2 years ago)
- Last Synced: 2024-10-25T01:35:52.839Z (about 2 months ago)
- Language: Assembly
- Homepage:
- Size: 3.21 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Eater One
Modifications to the Ben Eaters C6502 Breadboard to add a Keyboard and Monitor. Also the ability to upload programs via a serial io port.
ROM includes Wozmon by Steve Wozniak, TinyBasic by Tom Pittman and MS Basic by Richard Weiland.
RAM has been expanded to support 31K.
The Keyboard is using an Arduino ATMega328p chip and PS2Advanced library to connect a PS2 compatible keyboard. The keyboard software can be changed to support other keyboards instead of US.
The Display is using an Arduino ATMega328p chip and TVOut library to composite video to a monitor. It supports 21 x 12 characters.
The Serial Interface is an Arduino Nano to provide access to the keyboard so you can upload programs into memory.
![Eater One](/images/eater-one.jpeg)
## WozMon
This is the original 256 byte Woz Monitor application used on the Apple 1 and written by Steve Wozniak. This (in my opinion) is a historical master piece. If code was art, I would put this up there with the Mona Lisa. Truly an amazing piece of software. It has been slightly modified (a bit larger than 256b) to use the Keyboard and Display hardware but same code and functionality. This is loaded on reset from address 8000.
Here is a guide on how to use it: [WozMon Guide](https://www.sbprojects.net/projects/apple1/wozmon.php)
![WozMon](/images/wozmon.jpeg)
## TinyBasic
To run Tiny Basic written by Tom Pittman, type `9000 R`
You can find the user manual for TinyBasic here: [TinyBasic User Manual](http://www.ittybittycomputers.com/IttyBitty/TinyBasic/TBuserMan.htm)
![TinyBasic](/images/tiny-basic.jpeg)
## MS Basic
To run Microsoft Basic written by Richard Weiland, type `A000 R`
This will run the OSI 6502 BASIC Version 1.0 REV 3.2 from 1977
This doesn't support any graphics. It's similar to the Apple 1. Sample games are included in the `examples` folder that were grabbed from Jeff Tanter's repository.
![MS Basic](/images/basic.jpeg)
## Upload Utility
A python script can be used to upload programs into memory using the Arduino Nano. You can upload both Assembly Code to WozMon or Basic code to TinyBasic. Example applications are provided.
## Hardware Modifications
The following hardware modifications were made to Ben Eaters Breadboard.
Remove the IRQ interrupt wire from the C6522 to C6502. We will poll the interrupt flag and reset it manually in the code, instead of leverage the Interrupt Vectors for both the Keyboard and Display.
Add a new 74LS08 Quad AND gate chip to expand the memory from 16k to 31k. The Address for the C6522 was moved from $6000 to $7C00. AND the address pins 10 and 11. AND the address pins 12 and 13. Then AND the outputs of these together and connect this to CS1 of the C6522 chip.
This will detect when the address is $7CXX range and enable the controller.
0111 | 11xx | xxxx | xxxx
7 | C | X | XRemove the RAM Output Enable (OEb) connection to Address Pin 14 and connect it to Ground. This removes the original restriction on memory to 16k at address MAX of $4000. Because of the original design with enabling the RAM chip only on clock enabled, this seems to prevent any conflicts with the C6522 chip.
![AND-Gate](/images/and-gate.jpeg)
Add 2 ATMega328p chips and connect the 8 input lines to one and 8 output lines to the other. All communication is using ASCII. Also, another pin is used to trigger an interrupt on the C6522 to inform when a key was pressed or the display is ready.
![keyboard](/images/keyboard.jpeg)
![monitor](/images/monitor.jpeg)
Add an Arduino Nano and connect the pins D2 and D3 to the Keyboard Arduino pins D11 and D12. This leverages SoftSerial library to deliver ascii from a laptop/desktop computer through the Nano, and to the keyboard. It acts as if it was typing on the keyboard.
![IO](/images/io.jpeg)
You will find the 3 arduino projects for display, keyboard and io in the `arduino` folder. You will need to burn these to the 2 chips for the keyboard and display. The io sketch should be uploaded to the Arduino Nano.