mirror of
https://github.com/D-Modem/courier-emu.git
synced 2026-11-28 20:38:07 -08:00
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>
774 B
774 B
Analogue loopback: the firmware demodulating its own transmitter
Each run replays the ROM's own bring-up for one of the four 300 bps bands -
transmit setup, receive setup, then d94e, d895, d879 - installs nothing
by hand, and feeds every transmitted word back as the next received word. The
bits come out of the firmware's own receiver at d8aa.
| mode | sampling offset | bit errors over 511 |
|---|---|---|
v21-originate |
41 | 0 |
v21-answer |
43 | 0 |
bell103-originate |
44 | 0 |
bell103-answer |
42 | 0 |
The offset is the receiver's group delay, stable per mode. The symbol period of
48 samples is measured, not derived, and does not yet reconcile with the
transmit shift register's one bit per invocation; see docs/fsk-modulation.md.