Line 11:
Line 11:
! Pin
! Pin
! Name
! Name
−
! Description
+
!colspan="2"| Description
|-
|-
| 1
| 1
| GND
| GND
−
| Ground
+
|colspan="2"| Ground
|-
|-
| 2
| 2
| CLK
| CLK
−
| Clock. Frequencies 6.7MHz and 4.2MHz for DS/DSi gamecards, up to 16.6MHz for 3DS gamecards (for both SPI and ROM transfers).
+
|colspan="2"| Clock. Frequencies 6.7MHz and 4.2MHz for DS/DSi gamecards, up to 16.6MHz for 3DS gamecards (for both SPI and ROM transfers).
|-
|-
| 3
| 3
| NC
| NC
−
| Not connected. Possibly used to program cards.
+
|colspan="2"| Not connected. Possibly used to program cards.
|-
|-
| 4
| 4
| RCS
| RCS
−
| ROM select, active low. Pulled low to start a ROM transfer.
+
|colspan="2"| ROM select, active low. Pulled low to start a ROM transfer.
|-
|-
| 5
| 5
| RST
| RST
−
| Reset, active low.
+
|colspan="2"| Reset, active low.
|-
|-
| 6
| 6
| ECS
| ECS
−
| Savegame chip select, active low. Pulled low to start a savegame SPI transfer.
+
|colspan="2"| Savegame chip select, active low. Pulled low to start a savegame SPI transfer.
|-
|-
| 7
| 7
| IRQ
| IRQ
−
| Removal detection.
+
|colspan="2"| Removal detection.
|-
|-
| 8
| 8
| VCC
| VCC
−
| Powersupply 3.3V.
+
|colspan="2"| Powersupply 3.3V.
+
|-
+
!
+
!
+
! ROM bus (selected by RCS)
+
! Savegame bus (selected by ECS)
|-
|-
| 9
| 9
| DAT0
| DAT0
−
| Bidirectional data bus.
+
|rowspan="8"| Bidirectional data bus.
+
|rowspan="4"| NC
|-
|-
| 10
| 10
| DAT1
| DAT1
−
| Bidirectional data bus.
|-
|-
| 11
| 11
| DAT2
| DAT2
−
| Bidirectional data bus.
|-
|-
| 12
| 12
| DAT3
| DAT3
−
| Bidirectional data bus.
|-
|-
| 13
| 13
| DAT4
| DAT4
−
| Bidirectional data bus / pin NC/SIO3 on savegame chip.
+
| NC/SIO3
|-
|-
| 14
| 14
| DAT5
| DAT5
−
| Bidirectional data bus / pin WP#/SIO2 on savegame chip.
+
| WP#/SIO2
|-
|-
| 15
| 15
| DAT6
| DAT6
−
| Bidirectional data bus / pin SO/SIO1 on savegame chip.
+
| SO/SIO1
|-
|-
| 16
| 16
| DAT7
| DAT7
−
| Bidirectional data bus / pin SI/SIO0 on savegame chip.
+
| SI/SIO0
|-
|-
| 17
| 17
| GND
| GND
−
| Ground
+
|colspan="2"| Ground
|}
|}
Line 85:
Line 88:
===SPI flash===
===SPI flash===
−
Savegame SPI flash transfers use CPOL=1 and CPHA=1. So far, only one savegame FLASH chip has been identified. The chip identifies as a 0xC22211. The JEDEC manufacturer ID is Macronix, and despite the chip label saying 25L1001, the JEDEC ID matches the MX25L1021E. Datasheet at:<br>
+
Savegame SPI flash transfers use CPOL=1 and CPHA=1. So far, only one savegame FLASH chip has been identified. The chip identifies as <tt>0xC22211</tt>. The JEDEC manufacturer ID is Macronix, and despite the chip label saying 25L1001, the JEDEC ID matches the MX25L1021E. Datasheet at:<br>
[https://www.macronix.com/Lists/Datasheet/Attachments/8796/MX25L1021E,%203V,%201Mb,%20v1.3.pdf Macronix (Rev. 1.3, nov. 11, 2013)] <br>
[https://www.macronix.com/Lists/Datasheet/Attachments/8796/MX25L1021E,%203V,%201Mb,%20v1.3.pdf Macronix (Rev. 1.3, nov. 11, 2013)] <br>
[https://web.archive.org/web/20160307235354/http://www.beilenet.com/download/MX25L1021E,%203V,%201Mb,%20v0.01.pdf Old version mirror (Rev. 0.01, apr. 07, 2010)] <br>
[https://web.archive.org/web/20160307235354/http://www.beilenet.com/download/MX25L1021E,%203V,%201Mb,%20v0.01.pdf Old version mirror (Rev. 0.01, apr. 07, 2010)] <br>