SPI Registers: Difference between revisions
→Registers: Use same naming scheme as NDMA |
|||
Line 20: | Line 20: | ||
|- | |- | ||
| style="background: green" | Yes | | style="background: green" | Yes | ||
| [[# | | [[#NSPI_CNT|NSPI_CNT]]0 | ||
| 0x10142800 | | 0x10142800 | ||
| 4 | | 4 | ||
Line 26: | Line 26: | ||
|- | |- | ||
| style="background: green" | Yes | | style="background: green" | Yes | ||
| [[# | | [[#NSPI_DONE|NSPI_DONE]]0 | ||
| 0x10142804 | | 0x10142804 | ||
| 4 | | 4 | ||
Line 32: | Line 32: | ||
|- | |- | ||
| style="background: green" | Yes | | style="background: green" | Yes | ||
| [[# | | [[#NSPI_BLKLEN|NSPI_BLKLEN]]0 | ||
| 0x10142808 | | 0x10142808 | ||
| 4 | | 4 | ||
Line 38: | Line 38: | ||
|- | |- | ||
| style="background: green" | Yes | | style="background: green" | Yes | ||
| [[# | | [[#NSPI_FIFO|NSPI_FIFO]]0 | ||
| 0x1014280C | | 0x1014280C | ||
| 4 | | 4 | ||
Line 44: | Line 44: | ||
|- | |- | ||
| style="background: green" | Yes | | style="background: green" | Yes | ||
| [[# | | [[#NSPI_STATUS|NSPI_STATUS]]0 | ||
| 0x10142810 | | 0x10142810 | ||
| 4 | | 4 | ||
Line 80: | Line 80: | ||
|- | |- | ||
| style="background: green" | Yes | | style="background: green" | Yes | ||
| [[# | | [[#NSPI_CNT|NSPI_CNT]]1 | ||
| 0x10143800 | | 0x10143800 | ||
| 4 | | 4 | ||
Line 86: | Line 86: | ||
|- | |- | ||
| style="background: green" | Yes | | style="background: green" | Yes | ||
| [[# | | [[#NSPI_DONE|NSPI_DONE]]1 | ||
| 0x10143804 | | 0x10143804 | ||
| 4 | | 4 | ||
Line 92: | Line 92: | ||
|- | |- | ||
| style="background: green" | Yes | | style="background: green" | Yes | ||
| [[# | | [[#NSPI_BLKLEN|NSPI_BLKLEN]]1 | ||
| 0x10143808 | | 0x10143808 | ||
| 4 | | 4 | ||
Line 98: | Line 98: | ||
|- | |- | ||
| style="background: green" | Yes | | style="background: green" | Yes | ||
| [[# | | [[#NSPI_FIFO|NSPI_FIFO]]1 | ||
| 0x1014380C | | 0x1014380C | ||
| 4 | | 4 | ||
Line 104: | Line 104: | ||
|- | |- | ||
| style="background: green" | Yes | | style="background: green" | Yes | ||
| [[# | | [[#NSPI_STATUS|NSPI_STATUS]]1 | ||
| 0x10143810 | | 0x10143810 | ||
| 4 | | 4 | ||
Line 140: | Line 140: | ||
|- | |- | ||
| style="background: green" | Yes | | style="background: green" | Yes | ||
| [[# | | [[#NSPI_CNT|NSPI_CNT]]2 | ||
| 0x10160800 | | 0x10160800 | ||
| 4 | | 4 | ||
Line 146: | Line 146: | ||
|- | |- | ||
| style="background: green" | Yes | | style="background: green" | Yes | ||
| [[# | | [[#NSPI_DONE|NSPI_DONE]]2 | ||
| 0x10160804 | | 0x10160804 | ||
| 4 | | 4 | ||
Line 152: | Line 152: | ||
|- | |- | ||
| style="background: green" | Yes | | style="background: green" | Yes | ||
| [[# | | [[#NSPI_BLKLEN|NSPI_BLKLEN]]2 | ||
| 0x10160808 | | 0x10160808 | ||
| 4 | | 4 | ||
Line 158: | Line 158: | ||
|- | |- | ||
| style="background: green" | Yes | | style="background: green" | Yes | ||
| [[# | | [[#NSPI_FIFO|NSPI_FIFO]]2 | ||
| 0x1016080C | | 0x1016080C | ||
| 4 | | 4 | ||
Line 164: | Line 164: | ||
|- | |- | ||
| style="background: green" | Yes | | style="background: green" | Yes | ||
| [[# | | [[#NSPI_STATUS|NSPI_STATUS]]2 | ||
| 0x10160810 | | 0x10160810 | ||
| 4 | | 4 | ||
Line 227: | Line 227: | ||
|} | |} | ||
== | == NSPI_CNT == | ||
This is an alternative faster interface introduced with the 3DS. | This is an alternative faster interface introduced with the 3DS. | ||
Line 275: | Line 275: | ||
|} | |} | ||
== | == NSPI_DONE == | ||
This register reads as 1 after starting a transfer. When the transfer is finished, a 0 has to be written to this register. This is | This register reads as 1 after starting a transfer. When the transfer is finished, a 0 has to be written to this register. This is probably the Chip Select line. | ||
== | ==NSPI_BLKLEN== | ||
The number of bytes to be sent/read is written to this register. | The number of bytes to be sent/read is written to this register. | ||
== | ==NSPI_FIFO== | ||
32-bit FIFO for reading/writing the SPI payload. | 32-bit FIFO for reading/writing the SPI payload. | ||
== | ==NSPI_STATUS== | ||
Bit0: FIFO busy. At transfer start and every 32 bytes the FIFO becomes busy. | Bit0: FIFO busy. At transfer start and every 32 bytes the FIFO becomes busy. |