Files
courier-emu/artifacts/fsk-01
Cryan209andClaude Opus 5 309db09b9b Close the loopback: the firmware demodulates its own transmitter
All four 300 bps bands recover a 511-bit maximal-length sequence with zero
errors, through the ROM's own modulator at d95f and its own receiver at d8aa,
with every transmitted word fed back as the next received word.

The bring-up is the ROM's own, in the order d829 performs it - transmit setup,
receive setup, then d94e, d895, d879 - so nothing is installed by hand.

The previous commit reported this as not working and blamed the receiver. The
receiver was fine; three harness faults were not. The loop has to be fed
through the codec receive queue, because DRR is served from there and the line
queue never reaches it. The buffer pointer and PC have to be restored each
frame, as audio312 already does, or the ISR walks off the two-word window and
DXR reads zero from the second sample. And the receiver raises INTR 17 every
sample, which needs a vector at program 0022 that the resident bank does not
carry.

Two properties of the receiver are measured rather than assumed. The sampling
offset is its group delay: stable per mode at 41 to 44, and the tests assert
that band rather than taking whatever scores best. And the decision polarity
belongs to the modulation, since @6a's sign says whether the tone is above or
below the band centre: V.21 puts mark below it and Bell 103 above, so the two
decode with opposite sign. Getting that wrong made V.21 look like a lock
failure while Bell 103 passed on an identical run.

Still open, and stated as such: 48 samples a bit is the scanned error minimum,
not a derivation, and it does not reconcile with the transmit shift register's
one bit per invocation. Neither the baud rate nor the callback rate is settled.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 03:14:13 +12:00
..

The modulator alone

v21-* and bell103-* are the firmware's own modulator keyed from outside at 24 samples a bit, demodulated by this repository's own two-tone detector. harness_keying_rate in each manifest is this harness's choice, not the firmware's bit clock - see docs/fsk-modulation.md.

For the firmware demodulating its own transmitter, see ../fsk-loopback-01/.