6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Sep 28, 2024 5:19 pm

All times are UTC




Post new topic Reply to topic  [ 78 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Re: Advice needed on SBC
PostPosted: Tue Oct 16, 2018 5:26 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8403
Location: Midwestern USA
Floopy wrote:
BigDumbDinosaur wrote:
Floopy wrote:
I went and did a little more research. I finally have a (partial) schematic...

Can you please post your schematic in monochrome?

Sure? I updated a few things.

I'm not sure what to do with IRQ(not) and CS1 on the 6522?

Connect /IRQ on the 65C22 to /IRQ on the MPU. CS1 on the 65C22 can be connected to VCC. Be sure to pull up /SO on the 65C02 to VCC.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: Advice needed on SBC
PostPosted: Tue Oct 16, 2018 3:06 pm 
Offline
User avatar

Joined: Thu Jul 26, 2018 4:08 am
Posts: 40
BigDumbDinosaur wrote:
Connect /IRQ on the 65C22 to /IRQ on the MPU. CS1 on the 65C22 can be connected to VCC. Be sure to pull up /SO on the 65C02 to VCC.


Got it one there. I believe I have finished wiring up everything, I got the foot prints assigned. All I need to do is layout the PCB.

I tied all the unused logic pins to VCC.

This is the final document.


Attachments:
6502 Rev 4.pdf [108.85 KiB]
Downloaded 142 times

_________________
-Floopy
Top
 Profile  
Reply with quote  
 Post subject: Re: Advice needed on SBC
PostPosted: Tue Oct 16, 2018 6:32 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8403
Location: Midwestern USA
Floopy wrote:
BigDumbDinosaur wrote:
Connect /IRQ on the 65C22 to /IRQ on the MPU. CS1 on the 65C22 can be connected to VCC. Be sure to pull up /SO on the 65C02 to VCC.


Got it one there. I believe I have finished wiring up everything, I got the foot prints assigned. All I need to do is layout the PCB.

I tied all the unused logic pins to VCC.

This is the final document.

R9 might be too high a value. For most LEDs, 20mA forward current is maximum. I run LEDs at about half that current, which would mean R9 would be 470 ohms.

While poking around the power supply, I suggest you place a low ESR electrolytic of 100 µF in parallel with C2. If you do this, also place a 1N4001 diode across pins 1 and 3 of the 7805, with the diode's anode connected to pin 3.

Which 65C22 are you going to use? Depending on that, you may need to pull /IRQ up to Vcc through a suitable resistor (3.3k).

Is U7 an inverter or a Schmitt trigger?

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: Advice needed on SBC
PostPosted: Tue Oct 16, 2018 7:20 pm 
Offline
User avatar

Joined: Thu Jul 26, 2018 4:08 am
Posts: 40
They are schmitt inverters (7414). I'm using a W65C22N. Since it is open drain I do need a 3.3K resistor. I'll put a message on the board that says to opt it out in case I use a W65C22S.
http://www.westerndesigncenter.com/wdc/ ... df#page=31
Why do I need to put a capacitor in parallel with C2?

Updated schematic:


Attachments:
6502 Rev 4.pdf [118.95 KiB]
Downloaded 154 times

_________________
-Floopy
Top
 Profile  
Reply with quote  
 Post subject: Re: Advice needed on SBC
PostPosted: Wed Oct 17, 2018 4:30 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8403
Location: Midwestern USA
Floopy wrote:
They are schmitt inverters (7414). I'm using a W65C22N. Since it is open drain I do need a 3.3K resistor. I'll put a message on the board that says to opt it out in case I use a W65C22S.

There's no problem with leaving the resistor connected with a W65C22S. If you attach other devices to /IRQ while using the 'C22S you will likely have to revamp the circuit.

Quote:
Why do I need to put a capacitor in parallel with C2?

You'll get better regulation. Current draw in digital circuits tends to be "spiky" in nature and momentary changes in loading can occur more rapidly than the regulator can respond. The capacitor helps to mask this characteristic.

Incidentally, the D3 protects the regulator if power is cut to the input side. When that happens, the output side of the regulator will be at a higher voltage than the input side until C10 discharges. That reverse potential could damage the regulator. As CMOS devices draw little current when quiescent, capacitor discharge could be slow, exposing the regulator to reverse potential for some time. The diode will produce an alternate discharge path for the capacitor and the reverse potential difference across the regulator will be limited to the forward drop of the diode.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: Advice needed on SBC
PostPosted: Wed Oct 17, 2018 1:50 pm 
Offline
User avatar

Joined: Thu Jul 26, 2018 4:08 am
Posts: 40
Okay, I took the comment out of the schematic. I'll start laying it all out. Still wondering how I'm going to get all off these connected to each other.

_________________
-Floopy


Top
 Profile  
Reply with quote  
 Post subject: Re: Advice needed on SBC
PostPosted: Thu Oct 18, 2018 9:16 pm 
Offline
User avatar

Joined: Thu Jul 26, 2018 4:08 am
Posts: 40
I got everything routed. It was all grand and great until I had to get all the interrupts wired up. I hope it won't affect performance too bad. I'm only running it at 1Mhz.
It would cost around 28$ for 10 of them.(JLCPCB)


Attachments:
6502 Rev 4.zip [237.31 KiB]
Downloaded 109 times

_________________
-Floopy
Top
 Profile  
Reply with quote  
 Post subject: Re: Advice needed on SBC
PostPosted: Thu Oct 18, 2018 10:12 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1228
Location: Soddy-Daisy, TN USA
Speaking of JLCPCB, I'd like to mention that I recently used them for my Potpourri6502 computer. In their documentation (https://support.jlcpcb.com/article/28-h ... on-the-pcb), they claim if you want to move the customer ID to a custom location, you can just create a label with the text "JLCJLCJLCJLC" and they will print the customer ID there.

So I made sure the font size was large enough and put "JLCJLCJLCJLC" on the back of my board. When I got my boards in, they literally printed "JLCJLCJLCJLC" on the back and went ahead and printed the customer ID on the front of the board.

I contacted them about this but have not heard back.

Maybe they don't support that feature on the back of the board. But I didn't see it mentioned in the docs. Maybe they literally require the quotation marks...I don't know. But I'm a little irritated they haven't responded yet.

I can't complain too much since my board is a pretty good size (about the size of an NES cartridge) and I added the extra $9 color charge for red. Total cost including shipping was in the low $40's for 10 boards.

Anyway, FYI.

_________________
Cat; the other white meat.


Top
 Profile  
Reply with quote  
 Post subject: Re: Advice needed on SBC
PostPosted: Thu Oct 18, 2018 10:14 pm 
Offline
User avatar

Joined: Thu Jul 26, 2018 4:08 am
Posts: 40
cbmeeks wrote:
Speaking of JLCPCB, I'd like to mention that I recently used them for my Potpourri6502 computer. In their documentation (https://support.jlcpcb.com/article/28-h ... on-the-pcb), they claim if you want to move the customer ID to a custom location, you can just create a label with the text "JLCJLCJLCJLC" and they will print the customer ID there.

So I made sure the font size was large enough and put "JLCJLCJLCJLC" on the back of my board. When I got my boards in, they literally printed "JLCJLCJLCJLC" on the back and went ahead and printed the customer ID on the front of the board.

I contacted them about this but have not heard back.

Maybe they don't support that feature on the back of the board. But I didn't see it mentioned in the docs. Maybe they literally require the quotation marks...I don't know. But I'm a little irritated they haven't responded yet.

I can't complain too much since my board is a pretty good size (about the size of an NES cartridge) and I added the extra $9 color charge for red. Total cost including shipping was in the low $40's for 10 boards.

Anyway, FYI.

I'll remove it, I just put it there because I could.

I'll send it to the fab.

_________________
-Floopy


Top
 Profile  
Reply with quote  
 Post subject: Re: Advice needed on SBC
PostPosted: Thu Oct 18, 2018 11:21 pm 
Offline
User avatar

Joined: Fri Dec 12, 2008 10:40 pm
Posts: 1005
Location: Canada
On the subject of PCB makers, I find PCBWAY has better shipping options (their ePacket is pretty good and fast for the price - usually $10CDN) and JLCPCB is much better price for 4-layer boards.

_________________
Bill


Top
 Profile  
Reply with quote  
 Post subject: Re: Advice needed on SBC
PostPosted: Fri Oct 19, 2018 1:36 am 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1228
Location: Soddy-Daisy, TN USA
Floopy wrote:
I'll send it to the fab.


I'm not saying it won't work for you...just that it didn't work for me. Your mileage may vary, as they say. :-)

To be fair, the customer ID isn't the end of the world.

When I do my first expansion card for the Potpourri6502, I plan on doing a panel design where they can leave it off completely by putting it on the outer cutting area.

_________________
Cat; the other white meat.


Top
 Profile  
Reply with quote  
 Post subject: Re: Advice needed on SBC
PostPosted: Tue Oct 30, 2018 1:55 pm 
Offline
User avatar

Joined: Thu Jul 26, 2018 4:08 am
Posts: 40
The boards came in and I'm very pleased with the quality. Thankfully they put the customer ID under the crystal oscillator can. I didn't have time to make a proper program, but I wanted to verify that it was reading the EPROM properly. In the picture it's just running a loop that sends it back to $8000 every time it reaches $8003.

What I would do different:
-Install a ZIF socket for the ROM. I wanted to do this originally but I forgot about it later on.
-Use fewer IC's. Next time I'll use only on 74XX device instead of two.

Thank you everybody who contributed!


Attachments:
100_0517.JPG
100_0517.JPG [ 1.25 MiB | Viewed 2502 times ]
100_0515.JPG
100_0515.JPG [ 1.49 MiB | Viewed 2502 times ]

_________________
-Floopy
Top
 Profile  
Reply with quote  
 Post subject: Re: Advice needed on SBC
PostPosted: Tue Oct 30, 2018 2:46 pm 
Offline
User avatar

Joined: Fri Dec 12, 2008 10:40 pm
Posts: 1005
Location: Canada
Congratulations.

Fun and satisfying, isn't it?

_________________
Bill


Top
 Profile  
Reply with quote  
 Post subject: Re: Advice needed on SBC
PostPosted: Tue Oct 30, 2018 4:39 pm 
Offline
User avatar

Joined: Thu Jul 26, 2018 4:08 am
Posts: 40
BillO wrote:
Congratulations.

Fun and satisfying, isn't it?

Yes it is, I've been accumulating parts and gear for over a year for this!

_________________
-Floopy


Top
 Profile  
Reply with quote  
 Post subject: Re: Advice needed on SBC
PostPosted: Sat Nov 03, 2018 5:48 am 
Offline
User avatar

Joined: Thu Jul 26, 2018 4:08 am
Posts: 40
So far so good (except the buttons and the jumper that selects the CPU being wired wrong)

Although I'm struggling to get the 6522 to work. I don't know what I'm doing and it's obvious....

I'm trying to write to port B. I writing to the internal register 0000 and probing the outputs, but everything is high. I don't get a single line that is low.
What am I doing wrong? The program just loads $#01 into the accumulator and then stores it at address $6000.

_________________
-Floopy


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 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: