The WonderSwan SoC is a single-chip solution powering the entirety of the system's hardware - containing the CPU, most peripheral logic, as well as the internal RAM. There exist three variants of the SoC: * ASWAN, used in the WonderSwan, * SPHINX, used in the WonderSwan Color, * SPHINX2, used in the SwanCrystal. A fourth variant, CAIRO, was planned[https://web.archive.org/web/20071023111112/http://www.koto.co.jp/products/mono_sp.html CAIRO グラフィックス機能内蔵ローコストSoC - Wayback Machine]. It was designed as an ASWAN with a doubled clock speed and a built-in ADPCM decoder, but is not known to have been licensed for any commercial product. == I/O ports == {{Anchor|System Control}} === System Control ($A0) ===
7  bit  0
---- ----
C??? swcl
|    ||||
|    |||+- Boot ROM lockout: 0 = off, 1 = on
|    ||+-- Color model: 0 = no, 1 = yes
|    |+--- Cartridge ROM width: 0 = 8-bit, 1 = 16-bit
|    +---- Cartridge ROM wait state: 0 = +0 cycles, 1 = +1
+--------- Cartridge bus test OK
{{Anchor|System Control 2}} === System Control 2 ($60, color) ===
7  bit  0
---- ----
c4C. i.sl
|||  | ||
|||  | |+- Cartridge clock signal speed: 0 = 384 KHz, 1 = 6 MHz?
|||  | +-- Cartridge SRAM wait state: 0 = +0 cycles, 1 = +1
|||  +---- Cartridge I/O wait state: 0 = +0 cycles, 1 = +1
||+------- 1 = 4bpp "chunky"; requires all previous
|+-------- 1 = 4bpp; requires all previous
+--------- 0 = mono, 1 = color; also controls access
           to WSC-specific features (extra RAM, DMA, etc.)
{{Anchor|System Control 3}} === System Control 3 ($62, color) ===
7  bit  0
---- ----
S... ...p
|       |
|       +- 1 = Request power off
+--------- 0 = WonderSwan Color (SPHINX)
           1 = SwanCrystal (SPHINX2)
After setting the "request power off" bit to 1, halting the CPU will cause the console to shut down. TODO: $AC bit 0 seems to also shut down the console. {{Anchor|System Test}} === System Test ($A3) === Note that this port is only writable as a byte - writing a word to $A2 does not write to this byte.
7  bit  0
---- ----
.... u?vh
     | |+- Enable HBlank Timer test
     | +-- Enable VBlank Timer test
     +---- Enable UART test
The timer tests split the 16-bit counter into two separately decremented 8-bit values; if the high reload byte equals the low reload byte, the 16-bit counter value is fixed at $0000. The exact behaviour is still unknown. The UART test disables the 9600/38400 baud clock divider, instead operating the EXT port's UART lines at 192000 baud. == Notes ==