docs/ata-answer-tone-302.md recorded what ATA puts on the line but attributed neither burst to code, and called the 2250 Hz an identification against the standard only. Both are now located, statically and at runtime. 3.0.13 relocates 3.1.2's oscillator family but keeps its data cells, which is why the two images agree on the tones while sharing no addresses: arm routine 86dc (was 86d1), plain oscillator 875a (874f), pair 874e (8743), reversals 8744 (8739), ANSam 871d/8721/8723 (8712/8716/8718) - all writing increment 0x3f2, amplitude 0x3f3, phase 0x3c0 through the mixer's 0x39a callback slot. ANSam is armed at 0x9f62 with the same constants 3.1.2 uses at 9f40: #4aab, #0ca7, #06cf, and 8723's #0089 for the 15.05 Hz modulation. The 2250 Hz tone is armed at 0xd354, reached from 0x9ffc in the answer state machine: "lacc #5000; b 86dc". It is a *branch*, not a call, which is why enumerating callers of the arm routine finds five literal frequencies and misses this one; searching for every word equal to 86dc is what found it. 0x5000/65536*7200 is 2250.00 Hz exactly. One earlier guess is corrected. A cell at 0x3ef advancing by 0x5555 was read as a 2400 Hz carrier, suggesting V.22's carrier rotated 90 degrees per symbol. 0x3ee:0x3ef is a 32-bit accumulator advanced by 0x01555555; 0x5555 is only its low half's delta. The tone is a plain oscillator generated directly - so the signal is what V.22 unscrambled binary 1 looks like, while the implementation is not a modulator. Runtime confirms the static read: mid-burst 0x3f2 = 0x5000, 0x3f3 = 0x0898 (the arm routine's own literal) and 0x39a = 0x875a. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
6.2 KiB
The datapump's second voice: a 2100 Hz answer tone
DSP 3.1.2's dial path was already producing DTMF through the firmware's own oscillator, mixer and serial ISR (audio-312-path.md). It is not the only generator in the resident bank. The same callback slot drives a family of oscillators, and one of them is a modem tone rather than a dialling tone: 2100.0 Hz, with a 180 degree phase reversal every 3239 samples.
Both numbers come out of the firmware, not out of a specification consulted first, and the ROM's own caller supplies them.
How the generators are selected
The mixer at 80d3 calls whatever address sits in data 0x39a. Scanning the
resident bank for stores to that cell finds the family:
| callback | what it does |
|---|---|
874f |
one oscillator: increment 0x3f2, amplitude 0x3f3, phase 0x3c0 |
8743 |
a second oscillator on 0x3f4/0x3f5/0x3c1, falling through to 874f - the DTMF pair |
8739 |
decrements a counter, inverts the phase's top bit with XPL when it expires, reloads, falls through to 874f |
8712, 8716 |
874f or 8739, then 8718, a second oscillator that multiplies the tone |
The arming routine at 86d1 takes a phase increment in the accumulator, stores
it at 0x3f2, installs 874f, sets the amplitude to 0x0898 and clears the
phase. Its caller at 9f40 is what makes this a modem tone:
9f40 lacc #4aab
9f42 call 86d1
9f44 splk @28, #01d7
9f46 splk @75, #0ca7 ; the reversal counter's reload
9f4c splk @1a, #8739 ; the reversing callback
9f58 splk @73, #06cf ; a quieter amplitude than 86d1's
At the dial path's 7200 Hz, 0x4aab / 65536 * 7200 is 2100.04 Hz, and
0x0ca7 is 3239 samples, or 449.9 ms. Those are the V.25 answer tone and
its 450 ms phase-reversal period, to within the resolution the numbers have.
This is a second, independent corroboration of the 7200 Hz figure that
audio-312-path.md inferred from the DTMF increments: no other plausible rate
puts 0x4aab on a standard tone and 0x0ca7 on a standard interval at once.
8718 is the same story one level up. It advances a second phase at increment
0x0089 - 15.05 Hz at 7200 Hz - and multiplies the carrier by it. That is
V.8's ANSam amplitude modulation, and it explains why the selector offers four
callbacks rather than two: reversals or not, modulated or not.
Rendering it
courier_emu.answer_tone arms the tone with the firmware's own instruction
words, lifted verbatim from 9f40, 9f46, 9f4c and 9f58, and then runs the
same main-loop mixer and serial ISR body that audio312 runs for DTMF. It
synthesizes nothing.
.venv/bin/python -m courier_emu.answer_tone \
--rom artifacts/courier-board-21210-capture-403/courier-board.rom \
--output /tmp/answer-tone --variant ans-reversals --seconds 2
Saved runs are in artifacts/answer-tone-01/. Measured from the rendered PCM:
| variant | callback | measured | reversals |
|---|---|---|---|
ans |
874f |
2100.0 Hz | none |
ans-reversals |
8739 |
2100.0 Hz | every 3200-3264 samples |
The reversal spacing is reported to the detector's 64-sample block, which brackets the counter's 3239.
One correction to the harness, and it is load-bearing
audio312 enters the frame at 80d3, the callback call itself. That is fine
for 874f and 8743, and wrong for 8739, whose BANZ tests the register
the ARP currently points at rather than the AR1 the instruction before it
loaded. The mixer sets ARP to 1 at 80c9; entering below that leaves it
elsewhere, the counter is never stored back, XPL fires on every sample, and
the output is a constant-magnitude square instead of a tone. This harness
therefore enters at 80c7, the top of the mixer's sample body.
That failure is worth recording because it is silent: the path runs, the ISR transmits 1440 words, and the result is simply the wrong signal.
What this does not show
-
Not a boot. As with
audio312, frame scheduling, idle RAM and one buffer pair are fixtures. The ISR body is entered directly rather than by interrupt. -
Not the supervisor's decision to send it.
9f40is reached from a state machine this harness does not run; what it renders is the generator, armed the way that site arms it.Closed on the other image, 2026-09-08.
ATAonIDSDL302.ROM(DSP 3.0.13) emits ANSam in the full emulator, supervisor and all, from its own analogue of this site at0x9f62- and follows it with a 2250 Hz tone armed at0xd354. See ata-answer-tone-302.md, which also maps 3.0.13's oscillator family onto this one: the code addresses differ throughout, but the data cells - increment0x3f2, amplitude0x3f3, phase0x3c0- are the same in both builds. That does not locate 3.1.2's own path to9f40. -
ANSam renders too. Corrected. This section used to say the
8712and8716variants could not be rendered, and blamed missing delay-line state. The real cause was a bug in this repository's C5x core:MADDandMADSread their coefficients from data memory instead of program memory, so the shaping filter at8a88returned zero. With that fixed - see fsk-modulation.md - both variants produce the 15.05 Hz amplitude modulation, as a symmetric sideband pair at 2085 and 2115 Hz, each about 10% of the carrier. -
The
&Tself-test was not the way in. Driving the supervisor withAT&T1,AT&T8andATS18=2&T8undercourier_emu.mailbox_tapproducesOKand the same fourteen idle-cycle mailbox messages as a bareAT. The generator above was found by reading the callback slot's writers instead.Corrected. This originally added "the loopback path does not engage in the emulator", on the grounds that the runs showed no distinct execution. That was read off
hot_addresses, which lists only the most-executed addresses and is therefore dominated by the idle loop either way. Recording every address instead -CourierMachine(code_observer=...), added for this - showsAT&T8reaching 548 addresses a bareATnever reaches, in some thirty regions of the supervisor. The handler runs. What has not been shown is that it reaches the datapump within the window observed.