# SIO2, pads and memory cards Sources: ps2tek "PS2 Serial Port (SIO2)", "SIO2 PS2 Memcards", "SIO2 PS2 Memcard Filesystem", "SIO2 Controller Commands" and israpps/ps2tek `PS2/IOP/SIO2/` (tier 3, facts only); "PAD low-level specs" by [RO]man (Florin Sasu, 2004, in the pinned PS2 programming documents; no licence; facts only). No Sony document, no hardware-captured test. ## SIO2 The PS2-mode serial interface for pads, memory cards, multitaps and other peripherals, at 1F808200h on the IOP: a 64-byte SEND3 command-descriptor buffer, SEND1/SEND2 port settings, byte FIFOs in and out, control and three RECV status registers; data moves by IOP DMA channels 11 and 12 (ps2tek "I/O Maps", iop.md). "A good portion of SIO2 is a mystery ... its behavior has to be inferred from how programs use it" (ps2tek, SIO2 Registers): every SIO2 register behaviour in the specification is tagged OBSERVED or HYPOTHESIS unless a document is found (**U40**). In PS1 mode the PS1's SIO0 is used (ps2tek), the same protocol psx-python models (`../psx-python/docs/pads-and-cards.md`). ## Pads The DualShock 2 protocol extends the PS1 pad's: a mode byte (digital 41h, analog 73h/79h with pressure, config F3h), commands 40h-4Fh in config mode (button mask, analog mode lock, actuator mapping, pressure enable), 42h to read (padspecs.txt; ps2tek "SIO2 Controller Commands"). Pads are devices behind a pin-shaped `Device` protocol, as in psx-python, so a later multitap or a different controller plugs in. ## Memory cards 8 MB of flash with erase-before-write semantics in blocks; a command set over SIO2 (11h probe with a terminator byte that defaults to 55h, erase/write/read commands, F0h/F3h/F7h authentication) and a FAT-like file system with ECC (ps2tek "SIO2 PS2 Memcards", "Memcard Filesystem"). Card **authentication is MagicGate**, computed with keys held in the MechaCon (cdvd-mechacon.md, decision P8): the specification's card answers the plain commands; the authentication exchange is the open question U36. Card images: the player's own card dumps; which image layouts to accept (raw pages with or without their ECC bytes) is settled at the card milestone (M7). Nothing is shipped. ## Unknowns U40 SIO2 register semantics; U41 card command timings (flash erase/write busy times); U42 the authentication exchange's key-free parts.