2020-06-30 08:48:00 +10:00
|
|
|
SPI relay driver
|
|
|
|
|
|
|
|
This driver is designed for a ad-hoc adapter card that acts as a
|
2020-08-17 04:30:33 +10:00
|
|
|
SPI relay between the z80 bus and the SPI device. Sending any-
|
2020-06-30 08:48:00 +10:00
|
|
|
thing on SPI_CSLOW and SPI_CSHIGH is expected to select/deselect
|
2020-08-17 04:30:33 +10:00
|
|
|
the device, and writing to SPI_DATA is expected to initiate a
|
2020-06-30 08:48:00 +10:00
|
|
|
byte exchange. The result of the exchange is excpected to be re-
|
|
|
|
trieved by reading SPI_DATA.
|
|
|
|
|
2020-08-23 21:55:17 +10: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-30 08:48:00 +10:00
|
|
|
|
2020-08-23 21:55:17 +10:00
|
|
|
: SPI_DELAY NOP, NOP, ;
|
|
|
|
|
|
|
|
Provides the SPI relay protocol. Load driver with "596 LOAD".
|