6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 24, 2024 3:37 pm

All times are UTC




Post new topic Reply to topic  [ 31 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: SID chip on Replica 1?
PostPosted: Wed Jan 06, 2021 1:06 am 
Offline

Joined: Sun Jan 03, 2021 10:15 am
Posts: 17
Hello, I'm looking to see if anyone has a schematic or tips for how to connect a sid chip to a replica 1 by Briel Computers. I've seen some projects that have attempted this on the replica 1 but there have been no posted schematics. If anyone has a suggestion it would be very appreciated!

Thank you!


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 07, 2021 12:39 am 
Offline

Joined: Sun Jan 03, 2021 10:15 am
Posts: 17
I think my issue has to do with how I'm doing chip select. I have been tying the chip select pin of the directly to the $B000 pin on the Replica 1 in order to have it selected in that block of memory. This may be the incorrect way to do this but looking at the data sheet for the sid, it seemed like the chip select could be tied to the addressing directly without having to AND it with the clock signal or anything. Idk if anyone else has a suggestion for how to enable chip select for this.


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 07, 2021 1:39 am 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
Welcome, Rogers64! :)

Rogers64 wrote:
looking at the data sheet for the sid, it seemed like [...]
How about sharing that datasheet with us? And a schematic for the Replica 1, too (without the SID I mean).

There are lots of competent people here who may feel inclined to help. But you'll get a better response if you make our job as easy as possible. Try to lay everything out for us so we don't have to go hunting for info before we even begin answering the question!

Cheers,
Jeff

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 07, 2021 5:55 am 
Offline

Joined: Sun Jan 03, 2021 10:15 am
Posts: 17
Hey, thank you for the reply! I actually just managed to get it working! I looked closer at the SID data sheet and I do have to NAND $B000 with the PHI2 signal. The chip select can only trigger if the chip select is low, PHI2 is high, and RW is low. In this case I just tied RW low as we will always be writing to the SID when playing music. Sorry for the crude illustration, but this is how I connected it. Maybe this can help someone else whose interested in doing this with the Replica 1.


Attachments:
SID Interface.png
SID Interface.png [ 9.26 KiB | Viewed 1268 times ]
Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 07, 2021 6:08 am 
Offline

Joined: Sun Jan 03, 2021 10:15 am
Posts: 17
I have been thinking of adding support for 2 SID chips. I'll post a schematic for that if I get it working.


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 07, 2021 6:22 am 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
Hmm, I'm inclined to think you were correct when you said earlier, "it seemed like the chip select could be tied to the addressing directly without having to AND it with the clock signal or anything."

But why did the extra gates make a difference? It may be simply because you added some delay to the chip-select signal.

What happens when you do this?
Attachment:
SID Interface (Mod).png
SID Interface (Mod).png [ 6.54 KiB | Viewed 1265 times ]

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 07, 2021 6:35 am 
Offline

Joined: Sun Jan 03, 2021 10:15 am
Posts: 17
I could try it! It might be delay. But the data sheet did say that the clock cycle has to be high when the CS is low so that's why I did it this way.


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 07, 2021 6:41 am 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
Dr Jefyll wrote:
How about sharing that datasheet with us? [...] you'll get a better response if you make our job as easy as possible.

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 07, 2021 6:45 am 
Offline

Joined: Sun Jan 03, 2021 10:15 am
Posts: 17
http://archive.6502.org/datasheets/mos_6581_sid.pdf
here' the link


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 07, 2021 7:48 am 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
Thanks! And if you try that experiment pls report back.

-- Jeff

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 07, 2021 8:24 am 
Offline

Joined: Sun Jan 03, 2021 10:15 am
Posts: 17
So I tried running it through two inverters, but it didn't seem to react. I configured it back to how I had it and it worked again.


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 07, 2021 2:20 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
Well, I'm glad you're having some success at the moment, but I have an uncomfortable feeling it won't be long until you're back with some other issue.

I need to frankly (and gently, I hope) mention that the stuff you're reporting sounds very fluke-y -- and I say that as a person who's created his own share of fluke-y situations in the years and decades past! All part of the learning curve, eh? But my spider sense warns me that you don't presently have a good grasp of how 65xx peripherals and their control inputs are supposed to work. (I myself have never used a SID but all peripherals intended for the 65xx environment have a great deal in common -- and I'm aware of none that requires chip-select to be gated with Phi2. Furthermore the "Typical Application" schematic in Appendix C of the datasheet you linked shows no such gating. You would do well to follow that diagram closely.)

I haven't seen photos of your setup, nor have I done a web search to look into the Replica 1. What CPU is in that thing? Is there a schematic you can share? If you require further assistance then please supply us with what we need in order to notice aspects and details you may have missed.

Have fun and keep in touch,
Jeff

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 07, 2021 2:37 pm 
Offline

Joined: Sun Jan 03, 2021 10:15 am
Posts: 17
Here's a CAD Schematic for the Replica 1.


Attachments:
replica1TEschematic.pdf [637.71 KiB]
Downloaded 89 times
Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 07, 2021 2:44 pm 
Offline

Joined: Sun Jan 03, 2021 10:15 am
Posts: 17
I went back online and found someone who connected a SID to a real apple 1. I say real but i think it's actually a 1 to 1 clone of the apple 1 unlike the Replica 1. And by looking at it they did the same thing I did by gating PHI2 with the address lines.


Attachments:
Apple-1_SID_schematic_1-1024x768.jpg
Apple-1_SID_schematic_1-1024x768.jpg [ 165.77 KiB | Viewed 1234 times ]
Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 07, 2021 3:01 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
I'm not saying what s/he did can't possibly work. Nevertheless, my advice is to stick closely to the "Typical Application" schematic in Appendix C unless there's a concrete reason to deviate. I'm not convinced there is, but hey -- who knows.

-- Jeff

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 31 posts ]  Go to page 1, 2, 3  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: