Commit Graph
2 Commits
Author SHA1 Message Date
dsh 695d4537fe docs: what the 6850 is doing in this machine, and what to buy instead
ci / linux-arm64 (push) Successful in 4m45s
It is the UART.  The 6850 turns parallel bytes into asynchronous frames and back, and
in this machine it is exactly the physical end of two instructions: comma waits for
RDRF and reads the data register into the current cell, dot waits for TDRE and writes
the current cell out.  Without it there is nowhere for input and output to land, so the
calculator cannot talk to a terminal and hello prints nothing.

Wiring notes now recorded: two registers selected by RS, the usual read/write and chip
select lines, RxD and TxD through a MAX232 to the DE-9, and a separate 2.4576 MHz
crystal divided by sixteen to get the 153.6 kHz baud clock -- 1 MHz cannot be divided
into it.  At 9600 a byte takes 1.04 ms, so comma and dot block, and the panel lamps
pausing for a millisecond is normal.

Alternatives priced in effort: another makers 6850 or a 65C50 is a straight swap, an
i8251 needs different microcode, a 16550 is cheap but PC flavoured, plain TTL shift
registers are the most period correct and the most painful, and no serial at all leaves
a pure trainer that cannot run the calculator.

The stale panel section went too: the four digit displays, the ip and dp LED rows and
the three button set were still described there.
2026-11-24 19:33:54 +08:00
dsh 1b849f127a hardware: a board level wiring table for the 74LS machine
ci / linux-arm64 (push) Successful in 4m42s
hardware/ttl-schematic.md turns the verified RTL into a wiring plan: signal names,
the chip list with what each part does, clock/reset/single step, the one byte per
instruction fetch (ip counter straight into a 27C512, D2..D0 into a 74LS138), the
data path (6116 plus a 74LS299 for the rotate, a 74LS86 for the flip), dp from
either two 161s or the mechanical encoder behind a jumper, the loop stack, the
microcode ROM, the 6850 and the panel, plus a bring up order that installs one
block at a time.

Two decisions folded in while writing it:

* the loop stack lives in the unused part of the 6116 instead of a 74LS670 pair.
  The stack has to hold 16 bit ip values and a 670 is four bits wide, so the
  discrete version is four pairs and eight chips; the 6116 has 1984 free bytes
  after the 64 cell ring, so one extra pointer and two accesses per push or pop
  buys a 496 deep stack and keeps ip width and stack width independent.
* halt needs LEN: four 74LS688 comparing ip against a 16 bit DIP switch.  That
  brings the board to about 34 chips, which the note now says.

Mechanical dp plugs into the same board: a 74LS244 puts the encoder on the DP bus
behind a jumper, the step pulses come from DP_UP/DP_DN, and a BUSY contact gates
the clock so the sequencer waits for the mechanism to arrive -- slower, not
different, because nothing in the ISA can observe time.
2026-11-24 18:08:26 +08:00