Niklas Ekström f7493de0b0 Revert pin assignment of BUSY and POUT signals
The assignment of the BUSY and POUT pins to the microcontroller had
changed from the previous version to the new version. User amigos500 on
the a1k forum noted that if the assignment of those two pins had not
changed, then it would be easier to patch an old PCB to work with
the updated design.

After testing, it seems that the old pin assignment of BUSY and POUT
works equally well with the updated design, and I therefore reverted
the assignment back.
2021-07-22 21:48:59 +02:00
..
2020-05-03 17:32:56 +02:00
2020-05-03 17:32:56 +02:00
2020-05-03 17:32:56 +02:00
2020-05-03 17:32:56 +02:00

AVR microcontroller code

The AVR code is carefully timed. For each byte that is read or written, the AVR has 45 clock cycles (at 16 MHz) to:

  • start an SPI tranfer
  • wait until the SPI transfer is complete
  • wait until the Amiga signals that it is ready to receive or send a byte
  • read/write the byte to send/receive

Building and flashing

On Linux: running make will build the hex file and flash it to the AVR using the Arduino boot loader method. You can use make build and make flash to perform the steps individually.

On Windows: build.bat builds the hex file, and flash.bat flashes it. These batch files assumes that you have installed the Arduino IDE in the usual location. Note that you have to update which COM port the Arduino is connected to in flash.bat.