Files
ROT-8-viz/include/rot8
dsh 754f885a64 7E1 framing in serial mode: bit 7 parity, bit 8 stop
--7e1 is --serial --parity even --stop.  One cell carries a whole frame:
bits 0..6 the character, bit 7 the even parity bit, bit 8 the stop bit, which
leaves two bits of an 11 bit cell to the tape.

  * --parity none|even|odd: INP fills bit 7 from the character it read, OUT
    checks it.  --stop does the same for bit 8 being 1.  Both imply --serial,
    and a stop bit needs cell_size >= 9 (7+1+1).
  * OUT still sends the character when a frame is bad, like a UART flagging and
    carrying on, but says 'parity error' / 'framing error' on stderr, prints a
    summary at the end and exits 4, so a script can test the frame with \True.
  * The 7E1 round trip is checked: --7e1 --input A leaves 0x141 = 321 in the
    cell (0x41 data, parity 0 because 'A' has two bits set, stop 1) and OUT
    accepts it; flipping one data bit gives a parity error, and outputting a
    cell with bit 8 clear gives a framing error.
  * README: the frame layout, the switches, why the stop bit is one cell bit
    (no bit clock: one INP/OUT is a whole frame) and what parity costs in
    hardware -- one latching toggle driven by the read head, and the very same
    circuit checks a frame if you feed it all 8 bits and expect 0.
2026-11-07 16:14:30 +08:00
..
2026-04-07 17:57:54 +08:00
2026-11-07 12:29:04 +08:00