Sound options for the 65c816

For discussing the 65xx hardware itself or electronics projects.
Post Reply
Kuzailongmane
Posts: 20
Joined: 25 Nov 2022

Sound options for the 65c816

Post by Kuzailongmane »

Hi all,
I've been working on my homebrew 65c816 computer for a while now and I don't have a good solution for sound generation. I am "cheating" a little by using a propeller 2 for vga generation and thought maybe I could use that.
Thoughts?
( The ay-3-8910 is a option but I'm not sure about the bc1 and 2 signals)
Thanks!
It takes a truly intelligent person to know that there's always more to learn
Kuzai Longmane (They/Them)
User avatar
Proxy
Posts: 746
Joined: 03 Aug 2018
Location: Germany

Re: Sound options for the 65c816

Post by Proxy »

i mean the options are the same as for any other retro CPU like the Z80, 6502, etc.

you could for example go with the SN76489's (or 2 for stereo). each of those gives you 3 square wave and 1 noise channel. it's a very simple chip, so interfacing with it should be easy.
or, if you want something more fancy you could use a YM3812 (+YM3014B), there is a sound card for the BBC Micro based on the YM3812, so you could use that as a reference for your own design: https://github.com/JudgeBeeb/BeebOPL
User avatar
BigEd
Posts: 11463
Joined: 11 Dec 2008
Location: England
Contact:

Re: Sound options for the 65c816

Post by BigEd »

(Welcome, Kuzailongmane!)

Using a sound chip, or using a microcontroller, both are valid choices. Be sure to have fun! And if you can share your work, so much the better.
Kuzailongmane
Posts: 20
Joined: 25 Nov 2022

Re: Sound options for the 65c816

Post by Kuzailongmane »

BigEd wrote:
(Welcome, Kuzailongmane!)

Using a sound chip, or using a microcontroller, both are valid choices. Be sure to have fun! And if you can share your work, so much the better.
Thank you, and i am having fun! hopefully soon i'll just get the project in a (virtually ) working MPC system :|


would you like to the the schematics i have for it so far?
It takes a truly intelligent person to know that there's always more to learn
Kuzai Longmane (They/Them)
User avatar
BillO
Posts: 1038
Joined: 12 Dec 2008
Location: Canada

Re: Sound options for the 65c816

Post by BillO »

If you choose to go with the SN76489 be aware that i's rather slow and won't keep up with anything going faster than about 1MHz. However, you can buffer it with a latch to give it time to get it's act together. See the attached schematic.


SC.jpg
Bill
Kuzailongmane
Posts: 20
Joined: 25 Nov 2022

Re: Sound options for the 65c816

Post by Kuzailongmane »

BillO wrote:
If you choose to go with the SN76489 be aware that i's rather slow and won't keep up with anything going faster than about 1MHz. However, you can buffer it with a latch to give it time to get it's act together. See the attached schematic.


SC.jpg


Hm, this poses a problem as i am running my system at 10MHz. ;(
i think i'm going to end up moving to the AY-3-8910.
it that compatible at 10MHz?
It takes a truly intelligent person to know that there's always more to learn
Kuzai Longmane (They/Them)
User avatar
BillO
Posts: 1038
Joined: 12 Dec 2008
Location: Canada

Re: Sound options for the 65c816

Post by BillO »

Not sure - I don't think so, but the circuit I showed was tested to 14MHz. I did check out the GI chip's data and chose the TI instead. Can't quite remember why. I still have a couple of those around, but I'd have to dig into the data sheet to see why I rejected it. It's big - that may be one reason.

For the circuit I posted you place the data in the latch, then enable the SG and allow it to do it's thing (wait for it to compete the instruction load and execute it .. see the spec sheet) before giving it more data.

The latch and the SG are at two different locations (I put mine at consecutive locations).
Bill
Kuzailongmane
Posts: 20
Joined: 25 Nov 2022

Re: Sound options for the 65c816

Post by Kuzailongmane »

BillO wrote:
Not sure - I don't think so, but the circuit I showed was tested to 14MHz. I did check out the GI chip's data and chose the TI instead. Can't quite remember why. I still have a couple of those around, but I'd have to dig into the data sheet to see why I rejected it. It's big - that may be one reason.

For the circuit I posted you place the data in the latch, then enable the SG and allow it to do it's thing (wait for it to compete the instruction load and execute it .. see the spec sheet) before giving it more data.

The latch and the SG are at two different locations (I put mine at consecutive locations).
The latch and the SG are at two different locations (I put mine at consecutive locations).
^
|

is this just A0 connected to an inverted on one CS and connected direly on the other CS?
It takes a truly intelligent person to know that there's always more to learn
Kuzai Longmane (They/Them)
User avatar
BillO
Posts: 1038
Joined: 12 Dec 2008
Location: Canada

Re: Sound options for the 65c816

Post by BillO »

Kuzailongmane wrote:
is this just A0 connected to an inverted on one CS and connected direly on the other CS?
Yeah, something like this:
Selects.jpg


In my particular implementation the device select lines were already decoded.
Bill
Kuzailongmane
Posts: 20
Joined: 25 Nov 2022

Re: Sound options for the 65c816

Post by Kuzailongmane »

TinderboxINTC_SCH.PDF
(25.84 KiB) Downloaded 66 times
BillO wrote:
Kuzailongmane wrote:
is this just A0 connected to an inverted on one CS and connected direly on the other CS?
Yeah, something like this:
The attachment Selects.jpg is no longer available


In my particular implementation the device select lines were already decoded.


I'm doing the same thing with my systems dual IRQ controllers:

TinderboxINTC_SCH.PDF
(25.84 KiB) Downloaded 66 times
It takes a truly intelligent person to know that there's always more to learn
Kuzai Longmane (They/Them)
jmthompson
Posts: 127
Joined: 30 Dec 2017
Location: Detroit, Michigan, USA
Contact:

Re: Sound options for the 65c816

Post by jmthompson »

The Mockingboard for the Apple II used the AY-3-8910/3 and connected it through a 6522 so it's not exposed to the timings of the main bus. That's how I'm planning on adding YM2149s to my build at some point.
User avatar
cbmeeks
Posts: 1254
Joined: 17 Aug 2005
Location: Soddy-Daisy, TN USA
Contact:

Re: Sound options for the 65c816

Post by cbmeeks »

Kuzailongmane wrote:
Hi all,
I've been working on my homebrew 65c816 computer for a while now and I don't have a good solution for sound generation. I am "cheating" a little by using a propeller 2 for vga generation and thought maybe I could use that.
Thoughts?
( The ay-3-8910 is a option but I'm not sure about the bc1 and 2 signals)
Thanks!
If you're using the P2 then I would love to learn how you have interfaced that. I have a P2 dev board and considered using it as well but the idea of soldering the P2 is difficult for hobbyists.
Cat; the other white meat.
Post Reply