Jump to content
IGNORED

colecovision 24k mod need detect ay-3-8910


chart45

Recommended Posts

my coleco now have 24k ram thank to you guys now i will receive my thexder cart soon and i want to play

 

do i really need to hook the ay-3-8910 sound chip

 

what the cart look to start

 

i look the technical spec of the sgm i dont understand everything since im not familliar whit ic and programation

 

 

but if im right it look to port 50h 51h 52 and 53h

 

it's a0 and a1

 

can i use a sn74ls138 and use the a0 and a1 to output a cs to a8 and a9 of the ay chip????

 

im probably wrong that's why i.m here to learn and i dont mind if i have to order ic and programer and if the sound its not 100% i dont care my goal is to be able to play .. i dont want to creat another sgm since that thing is perfect but i want to play until eduardo get back on track. im sure im not the only one so other people will probably do the same if it's working

 

goal be able to play

D3C74C10-6AF4-43DD-9FA8-CBFCDD9B90AB-162

 

 

Link to comment
Share on other sites

I thought everything Eduardo coded needed both the memory and the sound chip so unfortunately you are probably going to have to get the sound chip otherwise the code that checks for it will see it is not there and I think won't play the game. Some games are getting created that don't need the sound chip but I think this is not one of them.

Link to comment
Share on other sites

Looks like a good start. I've got a couple of those chips already, too. ;)

You just have to figure out the decoding... not sure if the addresses match the SGM yet or not... and figure out the clock. I think it's normally 1/2 the Z80 clock frequency, so use a flip-flop to divide it... that's just a guess.

Link to comment
Share on other sites

Looks like a good start. I've got a couple of those chips already, too. ;)

You just have to figure out the decoding... not sure if the addresses match the SGM yet or not... and figure out the clock. I think it's normally 1/2 the Z80 clock frequency, so use a flip-flop to divide it... that's just a guess.

i found this circuit on google its just a starting point.... i read that the sgm look for 50h to 53h for me that mean nothing but for you probably

 

ill try to find info in the z80 programation

 

nano did the software to detect the sgm

so i think he could help us with that part.

Link to comment
Share on other sites

I've been trying to wrap my head around easily accessing all the SGM I/O ports, but I think it's getting too late in the night for this. I'm getting closer, and maybe another day I'll be able to figure it out completely.

 

You'll probably also need the bottom 8K to be able to be switched between BIOS and RAM, otherwise the initial test will fail and you probably won't be able to play the SGM games (besides the ADAM conversions).

Link to comment
Share on other sites

Your connections for 74LS138 look so overly complicated, you should decode port $50 from A4-A7 / IORQ in 74LS138 inputs.

 

The clock input of AY-3-8910 should go to expansion port clock that outputs 3.579545 mhz.

 

I don't want to mess with the sound chip datasheet for A0/A1/RD/WR but you should be able to solve it, otherwise you wouldn't get any fun ;)

 

If you get the sound connected right, my software will detect it without problems :)

Link to comment
Share on other sites

ok now I try to understand address decoding so don't laugh at me "si chu dans le champs"

 

ok so port 50h a0=0 and a1=0

51h a0=0 and a1=1

52h a0=1 and a1=0

53h a0=1 and a1=1

 

the ay-3-8910 to be read need bdir=0 bc2=1 bc1=1

write bdir=1 bc2=1 bc1=0

 

the decoding is made by the 74ls138 chip

 

7B611812-4C8B-4C76-B8A3-07DA52E16552-509

 

ok on the z80 when its time to read iorq=1 and rd=1 than iorq=0 rd=0

write iorq=1 and wr=1 than iorq=0 wr=0

 

but I don't understand how to decode a0 and a1 or why a4 - a7 /iorq since iorq is always 0 if rd or wr is not selected

 

is that a4 a7 are duplicate ???

 

the way to hook the chip will be very appreciate but i'm here to learn and understand so please give me the explanation

 

is where im at

 

94137D49-AAC0-4D90-815D-9DA71272E37A-510

Link to comment
Share on other sites

I/O ports 80 to FF are used by existing items, so if you make sure A7 is set to zero (connect to G2Bbar), then you'll make sure you don't get any contention between the new I/Os and the original I/Os.

 

For the A, B, and C inputs, you then need to differentiate between ports 50/51/52, 53, and 7F, so that if one is being accessed, it won't be mistaken for one of the others. This is a bit trickier, because 53 is very similar to 50/51/52. A2 can be used to differentiate between 7F and the others. A1<AND>A0 can be used to differentiate between 53 and 50/51/52.

Link to comment
Share on other sites

ok now im at that point i put bc2 to 5v since is always high to read or write. i draw the address decoder like you said 5-11 but i cant figure it out. i think i have to use the y0 y4 and y7 with a 74ls00 to output the bdir and bc1 but since i cant understand the decoding i cant draw the bc1 and bdir. do you know a site or a pdf that could help me to understand the decoding part...

 

57059899-71E0-45A9-B68A-85D9B477B8D3-585

Link to comment
Share on other sites

Your connections for 74LS138 look so overly complicated, you should decode port $50 from A4-A7 / IORQ in 74LS138 inputs.

 

The clock input of AY-3-8910 should go to expansion port clock that outputs 3.579545 mhz.

 

I don't want to mess with the sound chip datasheet for A0/A1/RD/WR but you should be able to solve it, otherwise you wouldn't get any fun ;)

 

If you get the sound connected right, my software will detect it without problems :)

 

clk of the ay chip direct to the clk of the expension port nothing in between resistor ????

 

have you seen a good copy of that circuit from opcode for the audio out it look like the 3 chanel goes to audio out(pin 56) of the expension port with resistor and I think a capacitor

 

post-1432-126600587119.png

Link to comment
Share on other sites

The PM I sent you has pretty much everything I know about decoding the required port addresses.

For the AY chip, it looks like you'll need to look at the datasheet for the BC1, BC2 and BDIR specifications. Page 2. Sorry, I haven't looked more than 2 minutes at this data sheet, but it looks "relatively" simple. Figure out what status (0 or 1) you need for each pin for each case. Write it down and see if it makes some sense, then try to figure out the logic to get there.

Link to comment
Share on other sites

Check the datasheet at http://map.grauw.nl/resources/sound/generalinstrument_ay-3-8910.pdf

 

BDIR=0 BC2=1 BC1=0 must be generated by default (inactive chip, that is not accessed)

BDIR=0 BC2=1 BC1=1 must be generated by port 52H

BDIR=1 BC2=1 BC1=0 must be generated by port 51H

BDIR=1 BC2=1 BC1=1 must be generated by port 50H

 

So go ahead and make decoding logic that generates these signals ;)

 

Note that in datasheet you can see there are three possible BDIR/BC2/BC1 combinations for inactive chip, choose the best one to reduce logic use.

 

For decoding you'll need only IORQ, A7-A4 and A1-A0.

Edited by nanochess
Link to comment
Share on other sites

that's my problem i cant figure the output since i dont understand what go in i know when z80 output rd or wr iorq go low . i read a lot of stuff on the z80 and 74ls138 but nowhere i found info on what the address output i know i have a big lack of knowledge about that level of electronic but i try very hard cause i really want to play those sgm game ... could you tell me if i have to use the 74ls00 with the output of the 74 ls138 like the circuit i found on google and i will try every possibility thanks for your time 5-11

Link to comment
Share on other sites

  • 3 weeks later...

ok now i receive everything i need i think

 

74ls74 to divide clock

74ls 138 to decode address for sound,24k and lower 8 k

 

64k chip

32k chip

ay-3-8910

 

now with my new baby girl i dont have a lot of time to learn all this decodind technic but i will try my best to be able to play all those sgm game

 

4F4B4A89-7E1E-4BC4-9829-EB62F8501032-370

Edited by chart45
Link to comment
Share on other sites

ok now i receive everything i need i think

74ls74 to divide clock

74ls 138 to decode address for sound,24k and lower 8 k

64k chip

32k chip

ay-3-8910

now with my new baby girl i dont have a lot of time to learn all this decodind technic but i will try my best to be able to play all those sgm game4F4B4A89-7E1E-4BC4-9829-EB62F8501032-370

Wow that's a lot of chips...gonna be tough to put that together on a DIY PCB

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...