1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-28 00:48:06 +11:00
collapseos/recipes/arduinouno/at28
2020-07-22 17:26:06 -04:00
..
at28wr.asm Add arduinouno/at28 recipe 2020-07-22 17:26:06 -04:00
Makefile Add arduinouno/at28 recipe 2020-07-22 17:26:06 -04:00
README.md Add arduinouno/at28 recipe 2020-07-22 17:26:06 -04:00

Writing to a AT28 EEPROM from a modern environment

In this recipe, we'll build ourselves an ad-hoc EEPROM holder which is designed to be driven from an Arduino Uno.

Gathering parts

  • An Arduino Uno
  • A AT28C64B
  • 2 '164 shift registers
  • Sockets, header pins, proto board, etc.
  • avra (will soon rewrite to Collapse OS' ASM)
  • avrdude to send program to Arduino

Schema

(there will soon be an image here, but I have yet to scan my schema)

This is a rather simple circuit which uses 2 chained '164 shift register to drive the AT28 address pins and connects CE, WE, OE and the data pins directly to the Arduino. Pins have been chosen so that the protoboard can plug directly on the Arduino's right side (except for VCC, which needs to be wired).

PD0 and PD1 are not used because they're used for the UART.

Software

The software in at28wr.asm listens to the UART and writes every byte it receives to the AT28, starting at address 0. It expects tty-escaped content (see /tools/ttysafe).

After having written the byte, it re-reads it from the EEPROM and spits it back to the UART, tty-escaped.

Usage

After you've build and sent your binary to the Arduino with make send, you can send your (tty-safe!) content to your EEPROM using /tools/pingpong.