notes:flashcart:scgba
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| notes:flashcart:scgba [2023/10/14 14:04] – asie | notes:flashcart:scgba [2025/07/26 10:40] (current) – asie | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== SuperCard (GBA) programming ====== | ====== SuperCard (GBA) programming ====== | ||
| + | |||
| + | ===== All models ===== | ||
| + | |||
| + | ==== SC_MODE (0x9FFFFFE) ==== | ||
| + | |||
| + | To unlock this register, one must write **0xA55A** to it first. | ||
| + | |||
| + | < | ||
| + | 15 | ||
| + | ---- ---- ---- ---- | ||
| + | ???? ???? ???? ?wsm | ||
| + | ||| | ||
| + | ||+- Memory mapped: 0 = internal flash, 1 = PSRAM | ||
| + | |+-- CF/SD card interface mapped: 0 = No, 1 = Yes | ||
| + | +--- PSRAM write enabled: 0 = no, 1 = yes | ||
| + | SRAM bank: 0 = first 64 KiB, 1 = second 64 KiB | ||
| + | </ | ||
| ===== CompactFlash models ===== | ===== CompactFlash models ===== | ||
| Line 5: | Line 22: | ||
| For CompactFlash card access, the SuperCard CF mimics [[notes: | For CompactFlash card access, the SuperCard CF mimics [[notes: | ||
| - | ===== Memory-mapped I/O ===== | + | ===== SD models |
| - | ==== SCCF_MODE | + | ==== SCSD_DATA_WR |
| - | To unlock this register, one must write **0xA55A** to it first. | + | SD card 4-bit data bus writes. |
| < | < | ||
| 15 | 15 | ||
| - | ???? ???? ???? ?mm? | + | ---- ---- ---- ---- |
| - | | + | oooo .... .... .... |
| - | | + | |||| |
| - | | + | ++++---------------- Written value. |
| - | | + | |
| - | | + | |
| - | | + | |
| </ | </ | ||
| + | |||
| + | ==== SCSD_DATA_RD (0x910000x) ==== | ||
| + | |||
| + | SD card 4-bit data bus reads. | ||
| + | |||
| + | TODO: Most likely operates as a 16-bit shift register. This means that, to read sixteen bits in order, the address must be accessed four times. | ||
| + | |||
| + | < | ||
| + | 15 | ||
| + | ---- ---- ---- ---- | ||
| + | oooo .... .... .... | ||
| + | |||| | ||
| + | | ||
| + | </ | ||
| + | |||
| + | ==== SCSD_CMD (0x9800000) ==== | ||
| + | |||
| + | SD card 1-bit command bus. | ||
| + | |||
| + | < | ||
| + | 15 | ||
| + | ---- ---- ---- ---- | ||
| + | .... ..?? o... ...i | ||
| + | || | | | ||
| + | || | +- Input (from card) | ||
| + | || | | ||
| + | || +--------- Output (to card) | ||
| + | || | ||
| + | ++----------- Related to card insertion? | ||
| + | </ | ||
| + | |||
| + | ===== SuperCard Lite ===== | ||
| + | |||
| + | ==== SCLT_ENABLE (0x9440000) ==== | ||
| + | |||
| + | ===== See also ===== | ||
| + | |||
| + | * [[https:// | ||
| + | * [[https:// | ||
notes/flashcart/scgba.1697292256.txt.gz · Last modified: by asie
