(Topic ID: 288981)

55516 vs 55564 and WMS Sound + Speech ROMs

By barakandl

3 years ago


Topic Heartbeat

Topic Stats

  • 29 posts
  • 5 Pinsiders participating
  • Latest reply 3 years ago by Quench
  • Topic is favorited by 3 Pinsiders

You

Linked Games

Topic Gallery

View topic image gallery

Untitled (resized).png
20210310_160941 (resized).jpg
20210310_160900 (resized).jpg
Sys7_Speech.png
Untitled (resized).png
20210302_015756 (resized).jpg

You're currently viewing posts by Pinsider quench.
Click here to go back to viewing the entire thread.

#11 3 years ago
Quoted from G-P-E:

You said it works with some ROMs but not others. I'll bet the software delay between change of data and rise of clock has changed

I had a quick look at the software yesterday comparing Black Knight to Jungle Lord.
Jungle Lord raises the speech clock line (6821 CB2) high, then clears it two instructions later.
Black Knight uses features of the 6821 to synchronise the CB2 speech clock pulse against the "E" clock from the CPU and a port B write. This method looks like the clock signal is opposite phase compared to Jungle Lord.
A cursory look at the generation of the speech data signal was also different.
Suffice to say they are rather different from a software perspective.

#22 3 years ago
Quoted from G-P-E:

Quench - did you notice how the CRB was setup within the 6821?

Yes. And before you ask, I replicated the Jungle Lord clock code into Black Knight but it didn't work off the bat under emulation (voice went missing). Other code around it is not the same.

Just a reminder, barakandl said the problem also occurs on original boards with a 55564. It's not specific to his new board.

Sys7_Speech.pngSys7_Speech.png

#27 3 years ago
Quoted from G-P-E:

I don't see how you can definitively call what appears to be a spike for a clock to be a software error.

The first two Black Knight instruction descriptions I posted above explain how the 6821 CB2 signal is pulsed for the CVSD clock signal (taken from the 6821 datasheet). The pulse ultimately takes a period of one CPU E clock. A 3.58MHz crystal is hooked up to the 6802 CPU which internally divides it by 4 resulting in the E clock signal having a period of about 1.1us. That's the time length of the CB2 low going pulse to clock the CVSD in the Black Knight waveform shown above.
This is an unforeseen implementation issue for the 55536/55564 but like you said, poor Harris datasheets probably didn't help.

barakandl now has working software fixes based on manually changing the PIA CB2 state like Jungle Lord. Interestingly, Gorgar which was the first Williams game with speech is what Jungle Lord CVSD code was based on. So they did it correctly to start with.
Black Knight and Alien Poker were likely done by a different programmer to the other speech games as these two also implemented the ability to change voice pitch, both of which have the issue with 55536/55564.

The challenges are that Black Knight has no free ROM space, and the instruction cycle count needed to be maintained in order to keep the voice pitch the same since the software loop for spitting out the data stream to the CVSD is CPU execution timed. But it was managed.

Another minor software error they made was at the very start of any spoken word, the clock signal is pulsed *before* the first valid speech bit is applied to the CVSD data input.

#29 3 years ago
Quoted from G-P-E:

Curious - do you actually see them hit the clock before the first bit?

Yes. Both implementations update the clock and if all data bits are processed then exit, otherwise apply a data bit and loop back to the clock update. This is slightly simplified but there is one extra CVSD clock pulse at the very beginning of every word stream. All speech is broken up into single words so they could create multiple phrases by grouping different words.

See below - the extra first CVSD clock will have a different effect because of the different clock phase between say Black Knight and Jungle Lord. Of course the error is not perceivable being only a single output bit step.

Quoted from G-P-E:

I do know these devices used both clock edges but don't remember how

The 55564 data sheet says the data bit is strobed in on the rising edge of the clock. On the falling edge of the clock, the 55564 output is updated.

Quoted from G-P-E:

Based on the 20uS scope time base - it appears to be clocking about every 85mS or so (eyeballed from above photos). That comes out to nearly 12KHz for clock rate... that's not exactly 'high fidelity'. But, hey, back in 1980 - "it talks!".

Heh, only two years before there were still games with mechanical chimes/3 simple electronic tones being manufactured. Things were changing fast.

Quoted from G-P-E:

If we could only get the original Black Knight sound tracks resampled at 32Kbps... store triple the amount of data and rewrite the software to play back at that rate. Easy, peasy - right?

We wish!

Promoted items from Pinside Marketplace and Pinside Shops!
From: $ 30.00
From: $ 26.95
Playfield - Other
Hookedonpinball.com
 
$ 15.00
Playfield - Decals
Metal-Mods
 
$ 18.95
Eproms
Pinballrom
 
Wanted
Machine - Wanted
Westjordan, UT
$ 11.00
Electronics
Yorktown Arcade Supply
 
2,500 (OBO)
Machine - For Sale
Vista, CA
From: $ 90.00
Tools
Pincoder Store
 
$ 42.95
Eproms
Pinballrom
 
Wanted
Machine - Wanted
Newcastle, OK
$ 17.00
Playfield - Decals
Metal-Mods
 
$ 69.00
Gameroom - Decorations
Pinball Pimp
 
$ 959.00
Flipper Parts
Mircoplayfields
 
$ 160.00
Cabinet - Toppers
Sparky Pinball
 
$ 1,059.00
$ 69.00
Gameroom - Decorations
Pinball Pimp
 
$ 53.95
Eproms
Pinballrom
 
3,700 (Firm)
Machine - For Sale
Evansville, IN
$ 27.95
Eproms
Pinballrom
 
From: $ 5.75
Playfield - Other
Rocket City Pinball
 
Hey modders!
Your shop name here

You're currently viewing posts by Pinsider quench.
Click here to go back to viewing the entire thread.

Reply

Wanna join the discussion? Please sign in to reply to this topic.

Hey there! Welcome to Pinside!

Donate to Pinside

Great to see you're enjoying Pinside! Did you know Pinside is able to run without any 3rd-party banners or ads, thanks to the support from our visitors? Please consider a donation to Pinside and get anext to your username to show for it! Or better yet, subscribe to Pinside+!


This page was printed from https://pinside.com/pinball/forum/topic/alien-poker-and-black-knight-sound-speech-roms?tu=quench and we tried optimising it for printing. Some page elements may have been deliberately hidden.

Scan the QR code on the left to jump to the URL this document was printed from.