6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Sep 20, 2024 2:24 pm

All times are UTC




Post new topic Reply to topic  [ 58 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: W65C265S-Based Computer
PostPosted: Mon Mar 18, 2019 9:57 pm 
Offline
User avatar

Joined: Sun Mar 03, 2019 5:09 am
Posts: 22
Location: Texas
Before I get started, I do have someone who's worked with the 6502 processors professionally before helping me with some things.
He even told me that I should look into getting a logic analyzer before I do too much more.
Most of my reasoning for posting here is because he's also busy helping someone else with their project and in general just has things that are going to take priority over me.
I think we've agreed that KiCad would be a good software to work from.

I've already got some of the main chips picked out to go with the W65C265S, and I fully understood that it had quirks and limitations that I would have to work around.
The graphics chip is the Bridgetek BT816 and audio is going to be split between a Wavetable chip I found, the output of the BT816 and the ton generators of the microcontroller.

The BT816 doesn't use any external ram, it already has a built-in 1 Megabyte ram used for all video and audio data it outputs. The main issues I'm going to have with it are getting the most out of the Quad-SPI command input and how to get it to operate between multiple QSPI data inputs. It acts as a QSPI slave when getting commands from the microcontroller. For all texture and audio data it uses a different set of pins for single SPI sources, but I'd like it to go between at least two.

I went ahead and decided to go with a single parallel 1 Megabyte SRAM so I could keep chip complexity down and the room for code up.

I'm thinking of putting the whole PCB in a Mini-ITX form factor with PC power supply inputs so I can throw it into a spare computer case I have lying around.
With that in mind, I was wondering what would be some good chips I could use to operate a possible cartridge port or backplane with? I was thinking of some sort of ISA type bus or something like it. I want to be able to upgrade this machine without later on if I decide to without having to make a whole new PCB to do so. I saw from a recent post elsewhere that just leaving the cpu data and address buses open to a card edge connector wouldn't be a good idea.

Tell me what you think.

If you want to estimate my knowledge of this stuff I'll tell you what I tell other people when I get into new hobbies; I know just enough to get me into trouble and not enough to get me out.


Top
 Profile  
Reply with quote  
PostPosted: Mon Mar 18, 2019 11:31 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8510
Location: Southern California
Welcome! We look forward to your success.

Do go through the 6502 primer, indexed at http://wilsonminesco.com/6502primer/ . Even though it's about the '02, much of the material applies just the same. It's organized logically into 22 sections.

A logic analyzer is nice but by no means necessary.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Mon Mar 18, 2019 11:38 pm 
Offline
User avatar

Joined: Sun Mar 03, 2019 5:09 am
Posts: 22
Location: Texas
Thanks! I figured an analyzer wasn't required, but I might as well get one anyways in case I need to troubleshoot things. I was already directed to the primer and had bookmarked it previously. :D


Top
 Profile  
Reply with quote  
PostPosted: Mon Mar 18, 2019 11:42 pm 
Offline

Joined: Sat Jun 04, 2016 10:22 pm
Posts: 483
Location: Australia
Welcome to our 6502 world!
There is an Introduce Yourself thread. Please, do feel free to post there!

For implementing ISA, I think you'd probably need some sort of CPLD. I haven't looked, but I suspect they don't make interface devices for those older standards anymore.
If you're willing to roll your own interface, or look around for a few, you'll probably find more success. 65SIB might be worth looking at, as might SPI-10 and I2C-6. Those last two aren't meant as an expansion bus as much as 65SIB is, though.
What chip you use would depend on what kind of interface you want.
If you want a parallel interface, you could use a 65c22. You might need supporting hardware to increase your I/O addressing beyond 256 bytes, though.
If you're OK with a serial interface, the 65SPI might be worth a look, although that's a CPLD firmware.

I don't know enough about the BT81x to say much of anything, really. I did look at using a Gameduino 3, which presents an ordinary SPI interface, but that's out of stock at the moment. It's also quite different to what you appear to be shooting for(the GD3 provides its own display). I'm not sure if these EVE chips can drive a monitor. I've only ever seen them paired fairly closely with an LCD panel.

I can second what Garth said about not needing a logic analyzer. I still don't have one, and I've gotten my SBC running without it. I've wished I had one, but I never actually needed it.


Top
 Profile  
Reply with quote  
PostPosted: Tue Mar 19, 2019 3:31 am 
Offline
User avatar

Joined: Fri Dec 12, 2008 10:40 pm
Posts: 1005
Location: Canada
railsrust wrote:
Thanks! I figured an analyzer wasn't required, but I might as well get one anyways in case I need to troubleshoot things. I was already directed to the primer and had bookmarked it previously. :D

I'd suggest a dual trace scope would be a much better choice if you don't already have one. USB type devices can be had for well under $100 that will turn your PC into a great way to get a clue as to what is going on. Quite useful.

In fact I have one on order right now that cost less than $55 (shipped) that is supposed to have a 16mHz bandwidth. Just needed something to put on my retro computing bench to help with diagnosing issues without having to tear apart my electronics bench. I'll do a mini-review of it when I get it.

Good luck with the project.

_________________
Bill


Top
 Profile  
Reply with quote  
PostPosted: Tue Mar 19, 2019 8:05 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10938
Location: England
Welcome railsrust! You'll find lots of expertise and encouragement here.

Certainly it's worthwhile to read Garth's primer, all the way through, at least once. It might be that there are lots of things you don't know, and you don't even know that yet.

It's been said many times here, and often enough ignored, but it really is well worth building something simple first. It's a lot quicker to build something simple, learn while doing, and progress to something more complicated. It may feel like a step down, but it is good advice. Learn to walk before you try to run. Grant Searle's designs are probably a good place to start.

That's an interesting-looking display controller you've found. I think it may be worth a thread of its own: here's one.


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 21, 2019 1:13 am 
Offline
User avatar

Joined: Sun Mar 03, 2019 5:09 am
Posts: 22
Location: Texas
Looking at the 65SIB, I am definitely interested in adding something like that to the PCB. My very reason for wanting an external bus connection is so that I could farm out any additional extensions I might want off to a daughter board containing any extra devices. It is also so I can keep the main board design as simple as possible. In fact, any sound effects will to be played by the video chip, and if I want music I'm going to be putting a Wave Blaster header on there for it to play back general Midi music. I'm going to be using the DreamBlaster S2 sold by Serdaco. It just needs a single Midi TTL line to produce music output from it. The ram is just going to be a single 1 Megabyte SRAM chip. That's all this thing will ever need for what I might do with it.


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 28, 2019 7:09 am 
Offline
User avatar

Joined: Sun Mar 03, 2019 5:09 am
Posts: 22
Location: Texas
In case I don't go with the BT816, could someone suggest a good DAC that could be implemented 'easily'. I basically want to add the ability for voice samples to play if the EVE chip isn't what I want.


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 28, 2019 7:35 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8510
Location: Southern California
railsrust wrote:
could someone suggest a good DAC that could be implemented 'easily'.

I don't know if this is what you have in mind, but I've used the simple 8-bit DAC0808 for audio and similar purposes. It has been around for decades. You just put the parallel data bits to it (from a 65c22 for example), and it settles to one-half lsb value in 150ns, about one-seventh of a microsecond. Pretty fast. See http://wilsonminesco.com/6502primer/potpourri.html#DAC, after the heading "Digital-to-analog converters." There are a few other D/A ICs and methods I've used there as well.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 03, 2019 2:01 am 
Offline
User avatar

Joined: Sun Mar 03, 2019 5:09 am
Posts: 22
Location: Texas
So I got this email from "my little helper" yesterday. :lol:

Quote:
So rather than the 816 in any form, what would you think of 4 or more 6502s, closely coupled but yet able to execute independently? If we think of the theme of throwing processors at the problem I could easily adopt the convention that the “Vic Chip” is a Raspberry running a VIC emulator. Or maybe even a 6502 running fast enough to move sprites, set collisions, and yet insulate the main ’02 from the task so in effect an 02 acting as a VIC chip emulator. Heck maybe even one act as a SID by bit banging a PWM.



The fact I am even writing about this means its something that would kind of float my boat, especially if it were expandable.



Heh, run a VIC-20 AND a C64 emulation at the same time. Oh oh, just thought of a smaller array of Z80’s near by.



Then a couple emails later:

Quote:
Heh, and a bargraph led display that acts like a speedometer the more 6502s you use.


I know people have done multiprocessor ’02’s before I wonder if there is anything in open domain, namely the task dispatcher and manager. They also have done a bunch of 8051s which are mores selfcontained.


I gotta believe one FPGA can manage a crapload of ‘02s.


I mean, if he wants to engineer all of this himself... Haha!
I guarantee you've heard his name before, and you might even guess who it is based on his sense of humor.
He's produced a couple of computers before, so I can trust him to make something like that work somehow.
Anyone know of a way to manage multiple 6502s like this?
Keep in mind he was asking me if we could do this instead of the W65C265S.


Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 03, 2019 2:31 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8510
Location: Southern California
railsrust wrote:
Anyone know of a way to manage multiple 6502s like this?

It's getting off-topic, but that's ok. It's your own topic. :)

Here are some earlier topics that are very relevant, and kc5tja made valuable contributions on:

WDC's W65C02S adds some more signals at the pins, namely ML\ (memory lock not) output (pin 5 on a DIP), BE (bus enable) input (pin 36 on a DIP), and VP\ (vector pull not) output (pin 1 on a DIP).

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 03, 2019 3:15 am 
Offline
User avatar

Joined: Sun Mar 03, 2019 5:09 am
Posts: 22
Location: Texas
I mean, I wasn't trying to go off topic.

He just went and dropped that on me and I was like "sure I guess, you're the expert". I'll tell you who it is in a PM.


Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 03, 2019 12:14 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10938
Location: England
It's interesting, so I've spun it into a new thread:


Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 03, 2019 8:05 pm 
Offline
User avatar

Joined: Wed Mar 01, 2017 8:54 pm
Posts: 660
Location: North-Germany
railsrust wrote:
Anyone know of a way to manage multiple 6502s like this?
Keep in mind he was asking me if we could do this instead of the W65C265S.

Back in those days Transputers became popular to some extend. Their four independent "links" (5/10/20 Mb/s serial interfaces) allows pretty much traffic between Transputers. By arranging them in pipeline or planes fashion workload could flood Transputer farms.

The W65C265S' parallel interface bus ("PIB") cannot compete with that but in theory one could attach numerous W65C265S' to one bus where a master could issue workload and fetch results. But it is difficult to estimate what performance can be reached. This interface is poorly documented.

On the other hand - the W65C265S has four serial ports. Using them in a link-like fashion you could arrange the same network topologies as Transputers. It is of course much much slower.


Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 03, 2019 11:11 pm 
Offline

Joined: Sat Dec 13, 2003 3:37 pm
Posts: 1004
GaBuZoMeu wrote:
The W65C265S' parallel interface bus ("PIB") cannot compete with that but in theory one could attach numerous W65C265S' to one bus where a master could issue workload and fetch results. But it is difficult to estimate what performance can be reached. This interface is poorly documented.

I wish it were better documented, it hints at some interesting features.
Quote:

On the other hand - the W65C265S has four serial ports. Using them in a link-like fashion you could arrange the same network topologies as Transputers. It is of course much much slower.

The 65C134S has a serial network built in to the chip.


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

All times are UTC


Who is online

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