TFMSX Sound Circuit

Home for the Terriblefire MSX clone

Moderators: terriblefire, Terriblefire Moderator

terriblefire
Moderator Team
Moderator Team
Posts: 5527
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK

TFMSX Sound Circuit

Post by terriblefire »

Last remaining thing to sort out (that i know of) on the TFMSX is the sound circuit.

I'll freely admit this is not my area of expertise. For the first 2 versions of the TFMSX i simply stole the H4 audio mixing circuit as shown below.

WhatsApp Image 2022-12-23 at 10.06.10.jpg
WhatsApp Image 2022-12-23 at 10.06.10.jpg (49.7 KiB) Viewed 1708 times

The trouble is that the FPGA implementation of the SCC isnt that happy with this (Thanks to BGOllie for lending me a MegaFlashROM+SCC). I think this is, in part, because its a Delta-Sigma DAC built on a Spartan 3 class FGPA chip and any downstream circuit that isnt suitable will interfere with the DACs behaviour. For those unfamiliar with Delta-Sigma its an algorithm, a digital pin then a cap and resistor in series.

scc_megarom.JPG
scc_megarom.JPG (45.53 KiB) Viewed 1708 times

I measured the resistor at 1.2K. I found this in some Sony MSX schematic that i cant remember which one now.

WhatsApp Image 2022-12-23 at 10.20.22.jpeg
WhatsApp Image 2022-12-23 at 10.20.22.jpeg (179.21 KiB) Viewed 1708 times

Which looks like it buffers the SOUND_IN inputs. My uni electronics theory has me thinking a FET input op-amp is the solution but i'm sure there is a more practical way to do this. I'm planning to break out the bread board and try some options but suggestions are appreciated.
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
User avatar
exxos
Site Admin
Site Admin
Posts: 24461
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: TFMSX Sound Circuit

Post by exxos »

terriblefire wrote: Mon Jan 02, 2023 4:23 pm The trouble is that the FPGA implementation of the SCC isnt that happy with this
Not happy how exactly ?

Have you built the circuit you posted above (not the H4 one ?) If it's just a buffer then all should be fine really.

EDIT:

Oh delta-sigma is modulated :roll:

https://e2e.ti.com/blogs_/archives/b/pr ... -modulator

Couldn't you just output analog instead of digital ? Even "stepped" waveforms would probably be fine.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
terriblefire
Moderator Team
Moderator Team
Posts: 5527
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK

Re: TFMSX Sound Circuit

Post by terriblefire »

i've not built that circuit yet. Will do later.

It's unhappy in that there is no sound from the the SOUND_IN source
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
User avatar
exxos
Site Admin
Site Admin
Posts: 24461
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: TFMSX Sound Circuit

Post by exxos »

terriblefire wrote: Mon Jan 02, 2023 4:52 pm i've not built that circuit yet. Will do later.

It's unhappy in that there is no sound from the the SOUND_IN source
SOUND_IN Does not really make sense because it is going to the base junction of the transistor which means it would have to be a output. Looks more like a left and right channel sort of thing been mixed into a single channel and buffered which then goes to the SOUND pin. I assume SOUND_IN is generated in the FPGA ? If you have nothing there than it would be a emulation problem.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
terriblefire
Moderator Team
Moderator Team
Posts: 5527
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK

Re: TFMSX Sound Circuit

Post by terriblefire »

SOUND_IN is on each cartridge (one on each) slot and is there so a cart can add sound themselves. I freely admit i know nothing here
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
User avatar
exxos
Site Admin
Site Admin
Posts: 24461
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: TFMSX Sound Circuit

Post by exxos »

Only thing I can suggest is just get the scope on it all and see what is going on.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
terriblefire
Moderator Team
Moderator Team
Posts: 5527
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK

Re: TFMSX Sound Circuit

Post by terriblefire »

I think this is one of those situations where SPICE is the answer
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
User avatar
exxos
Site Admin
Site Admin
Posts: 24461
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: TFMSX Sound Circuit

Post by exxos »

terriblefire wrote: Mon Jan 02, 2023 8:51 pm I think this is one of those situations where SPICE is the answer
If you're referring to the amplifier circuit then it is nothing special. Just a basic mixer and a inverter buffer amplifier. You could probably just wire SOUND_IN to SOUND via a cap and it would be basically the same. Just not buffered.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
terriblefire
Moderator Team
Moderator Team
Posts: 5527
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK

Re: TFMSX Sound Circuit

Post by terriblefire »

exxos wrote: Mon Jan 02, 2023 9:32 pm
terriblefire wrote: Mon Jan 02, 2023 8:51 pm I think this is one of those situations where SPICE is the answer
If you're referring to the amplifier circuit then it is nothing special. Just a basic mixer and a inverter buffer amplifier. You could probably just wire SOUND_IN to SOUND via a cap and it would be basically the same. Just not buffered.
Yeah thats what i tried. It works for original SCC carts but not the FPGA repros (Which work with the original MSX Machines).

i've actually managed to reproduce the issue in iCircuit. I get only a few picovolts of output
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
User avatar
exxos
Site Admin
Site Admin
Posts: 24461
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: TFMSX Sound Circuit

Post by exxos »

terriblefire wrote: Mon Jan 02, 2023 10:19 pm Yeah thats what i tried. It works for original SCC carts but not the FPGA repros (Which work with the original MSX Machines).

i've actually managed to reproduce the issue in iCircuit. I get only a few picovolts of output
I don't know anything about the MSX unfortunately. Is there not any schematics for such a FPGA system ? maybe just needs a stupid pull-up on the pin or something ? I have no idea what the FPGA is trying to output. I know pretty much diddly squat about FPGA stuff as well.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
Post Reply

Return to “TFMSX”