typo in description of in[8]

This commit is contained in:
Michael Schröder 2023-02-03 15:39:21 +01:00
parent 971b323822
commit 6f6eb8436a

View File

@ -6,18 +6,18 @@ The special function register `SPI` memory mapped to address 4100 enables HACK
### Chip specification
| IN/OUT | wire | function |
| ------ | -------- | ------------------------------------------- |
| IN | in[7:0] | byte to be sent. |
| IN | in[8] | =1 send byte and set CSX low |
| IN | in[8] | =0 pull CSX high without sending byte |
| IN | load | =1 initiates the transmission, when in[8]=1 |
| OUT | out[15] | =0 chip is busy, =0 chip is ready |
| OUT | out[7:0] | received byte (when out[15]=0) |
| OUT | CSX | chip select not |
| OUT | SDO | serial data out |
| OUT | SCK | serial clock |
| IN | SDI | serial data in |
| IN/OUT | wire | function |
| ------ | -------- | --------------------------------------------------- |
| IN | in[7:0] | byte to be sent. |
| IN | in[8] | =0 (and load=1) send byte and set CSX low |
| IN | in[8] | =1 (and load =1) pull CSX high without sending byte |
| IN | load | =1 initiates the transmission, when in[8]=0 |
| OUT | out[15] | =0 chip is busy, =0 chip is ready |
| OUT | out[7:0] | received byte (when out[15]=0) |
| OUT | CSX | chip select not |
| OUT | SDO | serial data out |
| OUT | SCK | serial clock |
| IN | SDI | serial data in |
When load=1 and in[8]=0 transmission of byte in[7:0] is initiated. CSX is goes low (and stays low even when transmission is completed). The byte is send to SDO bitwise together with 8 clock signals on SCK. At the same time the SPI receives a byte at SDI. During transmission out[15] is 1. After 16 clock cycles the transmission of one byte is completed. out[15] goes low and SPI outputs the received byte to out[7:0].