Re: [hatari-devel] Questions on Falcon DMA sound |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Questions on Falcon DMA sound
- From: Christian Zietz <czietz@xxxxxxx>
- Date: Mon, 26 Oct 2020 19:39:50 +0100
- Autocrypt: addr=czietz@xxxxxxx; prefer-encrypt=mutual; keydata= mQGiBDdn2AURBADksdHVyN55nv0lx4qGx+GQMrbo7zs7lSkAfhkgmgqp84xUeUiWI/kj1on/ wxkmJ96Yzt0ktDbZYM0C9Z66M3rLfXE1vXALHhegeMuOy/tVWybcohRrhfB7tmANTESJOZke 0lZZ59DcIfFoqLYErb6qX8nLPYnOv6sFubxnhuF9QQCg/3GaIR1sVK9Xq+b4B9BtVxd7cHMD /i2hAEOX3WY3K7PNZJziYF54uBbGiVS88W41l1RARcaeogIZcAKpFH3on+Tf60fAC85MCp17 QIeP44hj4Cf46B+UTVhf3EFG4IOsLRxUonpt7dKO8txsKFN/OFsjlPOuDyg7XMpEWkTWZetm HC9/0pcApIXSDnggde4T8AX6nn/+A/4hBOhPxuvkV7Uw/ebLYwXrLo2vt9OvvC1VfeywNseq PIkFX/+n/+niBS+Cb2ess2SVQNKJ9vP5+vBxg5AMfQXqk1ONldGQ/ARHmL6+Iuo47mO51e7R i691hq13wHUvyKh1AN7fpKI2m3YW55XEQ+3iTMIZcqfjr6xYgG8GJTppdbQgQ2hyaXN0aWFu IFppZXR6IDxjemlldHpAZ214Lm5ldD6IYwQQEQIAIwIZAQIeAQIXgAUCVGD5IgcLCQgHAwIB BhUIAgkKCwQWAgMBAAoJEFLLl/ZtoCXKubQAoIHNaurSMQB8MHDoTk3B7WHk2ApoAJ0egA8q aNoVj0kU4+OjeGzFiSHMOrQnVGhhd3RlIEZyZWVtYWlsIE1lbWJlciA8Y3ppZXR6QGdteC5u ZXQ+iEYEMBECAAYFAj0kaTcACgkQUsuX9m2gJcpF2ACgqnOdNapnRmIl9MJ+TTajrRyTdGYA n3plJTH6XTX6wsQMwD7TCO1bT/8UuQINBDdn2AUQCAD2Qle3CH8IF3KiutapQvMF6PlTETlP tvFuuUs4INoBp1ajFOmPQFXz0AfGy0OplK33TGSGSfgMg71l6RfUodNQ+PVZX9x2Uk89PY3b zpnhV5JZzf24rnRPxfx2vIPFRzBhznzJZv8V+bv9kV7HAarTW56NoKVyOtQa8L9GAFgr5fSI /VhOSdvNILSd5JEHNmszbDgNRR0PfIizHHxbLY7288kjwEPwpVsYjY67VYy4XTjTNP18F1dD ox0YbN4zISy1Kv884bEpQBgRjXyEpwpy1obEAxnIByl6ypUM2Zafq9AKUJsCRtMIPWakXUGf nHy9iUsiGSa6q6Jew1XpMgs7AAICB/4mG5zJkPM5YaG317RTvWQLZvEg6viLP4AN3ezFLrai SuhwdekH3NgOGYnvgEV8LvEx31vBY2PthHTKJR07Njbs5xdwSRWaFUFboCrG5EAp+Zgy++fJ HnPk4/q+DZhLOA6aihzm96q5rlgiMuYWS5GWCUuISB1b2A8EW2Ks2rE60CpLERxGtuVKfwkE RTnUiLpJVW6jWdc4/XWDytU7hi8QQPz2kdPiOAtm7i2HU36YO6Y1mWrJQjFni1DLDdfY5a8R spYafaOHRnLBqiZROlUD7CLDGd1rA/jSijAVhPws14u19nKrrE+lCZPYNo2E/iB3LeqQN+eZ eRzbMUxi6RejiD8DBRg3Z9gFUsuX9m2gJcoRAoDdAJ9Mmy1jNe6tu31mehNTdIVBCYbT/ACg 1f3WdYyexLsk56k8DM5SiR7gAiI=
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1603737591; bh=3J58WopuOd1ZX4e0WWE7cuWtJu2KgOqIBIIeEArRQWc=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=C81lolJnrxDwRVGfyxHRKnXw837e5Khb610hGM+1vvUO8LISwIb75v1g1HJBT8X9y H8RurX4NGLSVSn76N7LVU5AA6rtp1wyyxh22BiJovIFC7S47wZa0fPqEJwXEFdC2tF 1s6yz0l2sNvgSxqS8HpkFR12UcSvLf08yyTlz59s=
Roger Burrows schrieb:
> Quite possibly the documentation is just wrong. However, in TOS4, there are
> manipulations of 'mystery bits' that are not documented in the development
> notes or the Compendium. Specifically:
> . bit 3 of $ff8937 is toggled
> . bit 2 of $ff8938 is toggled
> . bit 3 of $ff8938 is cleared (only)
> [...]
> But meanwhile I would be interested to hear comments from the smart hardware
> people about those mystery bits.
There is this collection of technical documents that among other things
covers the Falcon. Unfortunately, just the document that would contain
these registers is damaged, so that only the text version (without
formatting) survives, which is a bit hard to interpret.
There, I can see:
> xxFF8936 DAC and Record Control (RW)
>
> D15D8
> D7D0
>
> 000000
> rr
> 0000
> r
> p
> e
> a
>
> rr - Record Channel Select
> 00 - Record tracks 1 and 2
> 01 - Record tracks 1 thru 4
> 10 - Record tracks 1 thru 6
> 11 - Record tracks 1 thru 8 ( ie. all )
>
> r - Global Sound Reset
> 1 - Reset Sound Subsection
> ( Not self clearing )
>
> p - Input Select1
> 0 - CODEC ADC
> 1 - PSG
>
> e - Matrix output to CODEC enable2
> 1 - Enable matrix data output to the CODEC
>
> a - Alternate data output to CODEC enable1,2
> 1 - Enable PSG data output to CODEC
Hence bit 3 of $FF8937 should be "Global Sound Reset". And...
> xxFF8938 AUX A Control Field (RW)
>
> D15D8
> D7D0
>
> L16-L19
> expn
> mute
> mux
> left gain
> right gain
>
> L16-L19 - Left sample 4 least significant bits
>
> expn - Expand
>
> mute - Mute
> 1 - Mute output
>
> mux - Input Mux1
> 00 - Channel 1 (microphone)
> 11 - Channel 2 (PSG input)
>
> left gain , right gain
>
> 0000 - 0 dB gain for ADC
> .
> . ( 1.5dB increments )
> .
> 1111 - 22.5 dB gain for ADC
Thus, bit 3 of $FF8938 would be "Expand" (whatever that is) and bit 2
would be "mute". No idea why one would toggle "mute", though. Also, I
don't know if everything is actually implemented in hardware or some
bits were only planned for future revisions of the Falcon that never
came to be.
Regards
Christian
--
Christian Zietz - CHZ-Soft - czietz@xxxxxxx
WWW: https://www.chzsoft.de/
PGP/GnuPG-Key-ID: 0x52CB97F66DA025CA / 0x6DA025CA