Skip to content

Commit 0182b48

Browse files
authored
misc/cvs.cpp: Add documentation in comments about the effects of the sound registers observed by poking values on a real CVS PCB. (#13099)
1 parent 510ebf5 commit 0182b48

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/mame/misc/cvs.cpp

+19
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,25 @@ void cvs_state::sh_trigger_w(offs_t offset, u8 data)
682682
// offset 2 is used in darkwar, spacefrt, 8ball, dazzler, superbik, raiders
683683
// offset 3 is used in cosmos, darkwar, superbik, raiders
684684

685+
/**********
686+
Additional notes from poking the CVS sound hardware with an
687+
In Circuit Emulator from PrSwan (Paul Swan).
688+
I have recordings available.
689+
690+
- 0x1884 - Enables an XP8038 frequency generator IC
691+
Reflected on pin 10 of a 4016.
692+
The frequency is set by 0x1840, the 8 bit DAC register.
693+
Not all 0x1840 values were tested, but:
694+
0x00 - off, 0x1884 enable has no sound.
695+
0x55,0xAA,0xFF - increasing value has higher frequency
696+
- 0x1885 - A scope showed this halving the XP8038 amplitude with a little decay.
697+
Causes 4016 pin 11 to rise (on) and decay-fall (off)
698+
- 0x1886 - Mikes comment above about a high pitched whistle didn't match my PCBs. His was faulty?
699+
Outputs a complete Galaxia-style ship fire sound, with attack-to-on and decay-to-off.
700+
- 0x1887 - Reflected on an LM380.
701+
Causes an envelope-like operation on the XP8038 tone with attack (on) and decay (off).
702+
***********/
703+
685704
data &= 1;
686705

687706
if (data != m_sh_trigger[offset])

0 commit comments

Comments
 (0)