Commit Graph
10 Commits
Author SHA1 Message Date
Cryan209andClaude Opus 5 59236f1c39 Two 93C66s, RI and DSR named, and a DTR direction conflict
ASIC 11 to UART 61 and ASIC 12 to UART 62 name the last two of the 2806's
six driver-fed signals: RI and DSR. Both were already recorded as 75188
inputs, so neither needs correcting - all six now have signal names.

Retracts the shared-EEPROM inference from 53cd878. The 2805 carries TWO
93C66s, one for the PnP controller and one for the supervisor, so the
arbitration pin the datasheet provides buys nothing here and nvram.py
still describes a part the supervisor owns alone. Notes how to tell the
two parts apart before anyone dumps the wrong one.

ASIC 18 does not fit and the file says so rather than smoothing it. UART
pin 50 is DTR, an output, so ASIC 18 is an input on the 2805; on the 2806
it drives the TR lamp, an output. Three readings are possible and the one
that fits the ASIC 9/10 pattern - TR lamp hanging on the DTR net, ASIC 18
the DTR input on both boards - collides with ASIC 48, recorded as "most
likely DTR" from DS1489 4Y and never confirmed. Both cannot be the input.
Probe named: meter ASIC 48 on the 2805.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-18 17:26:09 +12:00
Cryan209andClaude Opus 5 53cd878c49 The PnP datasheet: every DTE net transfers, and ASIC 10 is CTS
Datasheet added as docs/TL16PNP550A-SLLS190B.pdf (SLLS190B, 1995/96), so
the 2805's UART pins are identified rather than positional. The JEDEC
68-PLCC decode was right on all four: 6 SIN, 49 RTS, 51 SOUT, 59 DCD,
60 CTS, with 50 DTR, 61 RI and 62 DSR still to meter.

Every net lands on the signal the 2806 says it should - RD to SIN, the CD
driver's source to DCD, the host's RTS to CTS0, SOUT to RXD0. The DTE
architecture transfers whole and EbSerial on channel 0 describes this
board as it stands.

Corrects yesterday's reading of ASIC 10. It is not a bottom-edge pin
repurposed on a board with no panel: UART 60 is CTS and CS is the Clear
to Send lamp, so it is one signal with two consumers. The correction runs
back into the 2806's table, where two entries named a destination where
they could name a signal - ASIC 9 is DCD, ASIC 10 is CTS. Same method
rule the file already carries for the 75188s, applied to a lamp.

Also flags that the 93C66 is probably shared: the 550 wants an ST93C56/66
for its resource data and carries an arbitration pin for a controller
sharing it, and the 2806's 93C66 is the CPU's NVRAM in the same x16
configuration. Unverified; the probe is named.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-18 17:08:45 +12:00
Cryan209andClaude Opus 5 c764fa3534 Record the 2805 ISA board's readings
A third unit, and the first internal one: same 1-016-905 ASIC (9726) and
same PA28F400, no ISA slot, so continuity only.

Memory side transfers pin for pin. All four upper address inputs (63, 62,
59, 58 to CPU 29-32) and all three flash address outputs (73, 74, 76) are
now measured on two boards independently, so four-in/three-out is not one
board's transcription. Pin 75 to flash 13 is the exception, and it is the
2806 that was wrong.

Panel side does not transfer, and that is the new information. There are
no 75188s and no DS1489; a TL16PNP550AFN faces the host instead, so the
DTE is the ISA bus and everything inboard of it looks unchanged. ASIC 46
and 9 keep their 2806 roles into the UART, but ASIC 10 - the CS lamp on
the external - drives a UART line here. The bottom edge is re-used rather
than idle, so the 2805 is the only source for what those 30 pins do on a
board without a panel.

UART pin numbers are recorded as positions under JEDEC 68-PLCC numbering
and explicitly not as identified signals: no TL16PNP550A pinout has been
obtained, and the nearest family parts are not the PnP variant.

Three oscillators: the ASIC's 40.320, the UART's 22.1184 (12 x 1.8432, so
it makes its own baud rate and is a real host-driven UART), and the CPU's,
which must be 50 MHz for the 25 MHz CLKOUT the 186EB halves it to. That is
arithmetic - X1 carries a house number, not a frequency.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-18 17:05:33 +12:00
Cryan209andClaude Opus 5 b8522d56bf There is no room for paging: the window is the device
UCS decodes 0x80000-0xfffff, 512 KiB, and the PA28F400 is 512 KiB. Paging
means reaching a large device through a smaller window - the retracted
text said so in those words - and the window is not smaller. The CPU
addresses the whole part directly, so there is nothing for a paging
register to do. Stronger than fb8574f's "the reason for believing in it
is gone".

Leaves one loose end, now stated as one: A19 reaches the ASIC on both
boards and, with UCS holding CE#, is not needed to gate anything.
Tri-stating the ASIC's address outputs outside the flash region is the
ordinary answer and needs no register, but that is a guess.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-18 16:40:03 +12:00
Cryan209andClaude Opus 5 fb8574fc6d Retract: the ASIC does not select the flash, UCS does
ASIC pin 75 goes to flash pin 13, GND - not to flash pin 12, CE#. The
flash's chip select is on CPU pin 61, UCS.

Three lines agree:

* A 2805 ISA board, same 1-016-905 ASIC and same PA28F400, meters 75 to
  flash 13, flash 13 to ground, and flash 12 to CPU 61. The rest of that
  edge transfers exactly - 70 to flash 11 and RAM 10, 73 to flash 3, 74
  to flash 34, 76 to flash 35. Four agreeing and one not is a slip.
* The reset stub programs UCS_START (0xffa4) to 0x8000, a window of
  0x80000-0xffc00: 512 KiB, the flash exactly. Both images do it. That is
  pointless unless UCS selects the flash.
* asic-pinout.md contradicted itself, recording both LCS and UCS on the
  SRAM pair's common CE# net. UCS on the flash closes that open probe and
  leaves LCS on the SRAM, where its 0x0-0x20000 window says it belongs.

Second off-by-one in this region; the "74 is pin 3 or pin 34" conflict
was the first.

The paging inference goes with it. Four address lines in and three out is
what a flat map needs: UCS decodes A19, so inside the window A19 is
constant and the flash never needs it, while the ASIC emits system
A16-A18 as the part's A15-A17. That is a pass-through with A19 consumed
by the decode, not a fold. Paging is not disproven - the reason for
believing in it is gone, and the harness's flat 512 KiB image already
matched both boards.

What survives: the ASIC is the board's address latch, low byte for both
memories and the flash's top three lines. The select is not its.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-18 16:37:56 +12:00
Cryan209andClaude Opus 5 02bd4da27a Take the DSP program origins from the supervisor, not from constants
The XMF layout in xmf.py placed main211's first segment at program 0x0000,
and the mask-ROM reasoning in three documents was built on that. The origin
was never measured. The supervisor names its own destination at the download
call site, and it says 8000; its overlay table puts the other 2.1/2.2 rows at
9d00, af50 and dc00. Every branch target in the payload has bit 15 set, which
needs no explaining at that origin and needed masking off at 0x0000.

Recover all four segments the way rom.py does, matching the call site and the
table and identifying the resident as the fall-through row that reproduces
what the call site independently said. That also separates the two families:
2.1.1 and 2.2.05 occupy 8000..ffff, the board's 32K of external RAM, leaving
0000..1fff to the C51's mask ROM; 2.3.x occupies 0000..7fff instead, with its
resident at 1000 and one overlay at program 0000, which no part running mask
ROM there can host.

Three consumers carried the layout too: bridge.py's bootstrap length and its
TDM vector, and c5x_runner.cpp, which held the whole map as C++ defaults and
entered at PC 0. All three now derive it, the runner taking --segment
OFFSET:BYTES:ORIGIN. Both loaders published every segment into the core at
construction, which with correct origins would lay the overlays over resident
code; they load the resident alone, as the board has it at reset.

bootstrap_match stays true at 60344 bytes, and all seven XMFs now boot from
their own origin to the same relative idle.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 08:18:49 +12:00
Cryan209andClaude Opus 5 08cf5400a9 The 20 MHz board's full 8K, and the 0x0F80 block is not mask content
Both boards now read in full. The 20.16 MHz unit's memory test is word-for-word
identical to the 25 MHz one - PMST 00b0, MP/MC 0, 0x0800 and 0x1800 ignoring a
write and 0x2400 following it - so both parts are 'C51.

The programmed ROM is byte-identical on the two parts. The entire difference
between the two 8K images is 96 words at 0x0F9D-0x0FFC: the 25 MHz part answers
from 0x0F80 with a copy of the block at 0x1F80, and this part returns pure array
pattern there.

That corrects the previous commit, which read the two copies on the 25 MHz board
as the mask placing one at the end of each 4K page. It does not - the mask
carries the block once, at 0x1F80. Neither reading is a fluke: each board was
read through a kernel at external 0x8000 and through a gadget staged into on-chip
SARAM, and on each board the two paths agree. A decode difference on the top row
of the array is the likely shape and is not established; nothing depends on it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 22:32:22 +12:00
Cryan209andClaude Opus 5 fb24e98939 The DSP is a 'C51: 8K of on-chip ROM, measured
The stability test this repository recommended for 'C50 vs 'C51 cannot work. It
expected two reads of 0x0800 to differ on a 'C50 because that is the firmware's
live SARAM scratch, but the probe resets the DSP and takes it over, so nothing is
running underneath to move. It scores every part as 'C51.

What separates them without needing the firmware alive is whether the region
accepts a write: SARAM seen from both spaces is one physical memory, so a write
through data space must read back through program space, and ROM cannot. New
kernel build_memory_test_probe, wired as probe_transport --memory-test, two
patterns per address so a constant cannot pass by coincidence. Run twice on the
25 MHz board, identical both times:

  0x0800  write lands in data space, program space unaffected
  0x1800  same
  0x2400  program space follows the write exactly

With MP/MC=0 and PMST.RAM=1 a 'C50 maps 9K of SARAM into program space over
0x0800-0x2BFF and all three would follow. That split is the 'C51 map instead - 8K
of ROM at 0x0000-0x1FFF winning over SARAM in program space, writable memory
above. The same kernel run against the emulator fixture, which maps a 4K ROM at
0x0000-0x0fff, reports the opposite split, so a null result would have shown.

MP/MC has now been read directly, discharging the caveat on every ROM reading
here: PMST is 00b0, so MP/MC=0, microcomputer mode - the opposite of the MP/MC=1
that board.md and board-parts.md assumed. PMST also has RAM and OVLY already set
on entry, so the opl @07,#0030 in every kernel has never changed anything.

The remaining three quarters of the ROM are now read. The full 8K is mostly
unprogrammed: 1920 words of boot code at 0x0000-0x077F, a 128-word mailbox block
the mask carries twice at 0x0F80 and 0x1F80, and 6016 words of a 32-word
FFFF/0000 array pattern. 0x0780-0x07FF is that same pattern, so the old 2K
capture ran off the end of the programmed part rather than stopping at a
boundary.

The memory-map rows in board.md are left flagged rather than reworked: they were
written against MP/MC=1 and a 2K ROM and both are now known wrong.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 21:51:46 +12:00
Cryan209andClaude Opus 5 09fad8cda2 The ROM dump may be a quarter of the ROM, not all of it
Scott's point: the on-chip ROM size differs by part, and the capture is 2048
words of program 0x0000-0x07FF. Read off SPRU056D Table 1-1 in docs/ rather
than the transcription - 'C50 has 2K ROM and 9K SARAM, 'C51 has 8K ROM and 1K
SARAM. So the dump is either complete or a quarter, with nothing in between,
and nobody had checked. The file's own stated plan was 4096 words on the 'C52
assumption and it took 2048, which was never reconciled either.

The package suffix independently excludes the 'C52: D17140PQ is the 132-pin
BQFP part, and the 'C52 is PJ. The pin work already used Table A-4's PQ pinout
to place VDDD and IS.

Records the discriminating test - a stability test at 0x0800, since both parts
return something code-like there and only SARAM changes between two reads -
and the two things that have to move first: ROM_DUMP_BUFFER off 0x1000, and
MP/MC still never read directly.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 20:51:53 +12:00
Cryan209andClaude Opus 5 c41bf2cdbd Add board.md, the hardware reference
Merges asic-pinout, asic-port-map, board-parts, what-the-asic-does and the
measured half of board-verified-403 into one place: parts, the ASIC's four
jobs, the CPU I/O port map, the 120 pin tables, the memory-controller and
paging finding, the reset tree, panel and DTE, the DIP switches, the EEPROM,
the output latches, and the measured board readings.

Corrects the DSP identification per Scott: the part is a 'C50, possibly a
'C51 on builds that never reach 0x23f0, and definitely not the 'C52 the core
models. Three independent arguments - the prologue maps SARAM a 'C52 has
none of, 0x23f0 fits only the 9K window at 0x0800-0x2BFF, and the firmware
sets up a TDM port a 'C52 does not have. The core's memory map is what needs
changing, not just a constant.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 20:46:39 +12:00