2020-06-29 18:48:00 -04:00
|
|
|
SPI relay driver
|
|
|
|
|
|
|
|
This driver is designed for a ad-hoc adapter card that acts as a
|
2020-08-16 14:30:33 -04:00
|
|
|
SPI relay between the z80 bus and the SPI device. Sending any-
|
2020-06-29 18:48:00 -04:00
|
|
|
thing on SPI_CSLOW and SPI_CSHIGH is expected to select/deselect
|
2020-08-16 14:30:33 -04:00
|
|
|
the device, and writing to SPI_DATA is expected to initiate a
|
2020-06-29 18:48:00 -04:00
|
|
|
byte exchange. The result of the exchange is excpected to be re-
|
|
|
|
trieved by reading SPI_DATA.
|
|
|
|
|
2020-08-23 07:55:17 -04:00
|
|
|
You also need to define the exchange delay with SPI_DELAY. If
|
|
|
|
SPI clock is the same as system clock, 2 NOPs are enough:
|
2020-06-29 18:48:00 -04:00
|
|
|
|
2020-08-23 07:55:17 -04:00
|
|
|
: SPI_DELAY NOP, NOP, ;
|
|
|
|
|
|
|
|
Provides the SPI relay protocol. Load driver with "596 LOAD".
|