Compact Flash adapters on the GBA cartridge interface all generally work by exposing IDE registers using the top eight address bits coupled with the sixteen-bit data bus, wiring them directly to the relevant IDE connector pins.
In programmer-facing documentation, the two address ranges mentioned (matching PC I/O) are 1F0h-1F7h and 3F0-3F7h. In hardware, the choice is controled by Chip Select (CS) pins, while the specific register is chosen using DA0-DA2.
TODO:
Address bits | Map to |
---|---|
23 | “1” |
22 | Chip Select 0/1 |
18-16 | DA2-DA0 |
Identification:
Timings:
Memory map:
TODO: