Files
courier-emu/native
Cryan209andClaude Opus 5 48fd048f69 Make XRDY follow the frame clock, and record why the boot table shares the port
XRDY says DXR can accept another word, which becomes true when a frame sync
moves the last one into the transmit shift register. It was reported set
whenever XRST was set, so the firmware's reset handshake at 0x8097 - write DXR,
spin on XRDY, write again - fell straight through instead of waiting a frame.
It now clears on a DXR write, sets on a frame sync, and is released by a 0 -> 1
edge on XRST.

Scoped to the AC01 path: the legacy TDM path models no framing on this port, so
nothing there would set XRDY again after a write and a spin would never end.
That is a limit of this model rather than hardware behaviour, and it is
commented as such.

Also records what the boot table sharing the port actually rests on. TI's
application guide puts the AC01 on the primary serial port and leaves the TDM
port pulled to COM, which the firmware agrees with; the ROM loader is on that
same port and is receive-only. The datasheet holds DOUT in high impedance until
the eighth primary frame sync, and the firmware issues exactly eight primary
frames first - two priming writes plus six register writes - so the ASIC can
drive DR with the boot table unopposed until the codec is fully programmed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-07 11:12:01 +12:00
..
2026-08-04 13:01:29 +12:00