6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 11:18 am

All times are UTC




Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Thu May 20, 2021 7:21 am 
Offline

Joined: Tue Jan 22, 2019 4:47 am
Posts: 18
Location: Louisiana
Greetings!

After a conversation almost a month ago, I decided to start moving away from CBM and over to an SD card and SCSI for my computer's storage interfaces. SD should be easy - just need to adapt this SPI interface and I should be good to go. SCSI, however, may pose a problem.

While the same person also created a SCSI interface, I'm not entirely sure that it would fit or work in my computer project, as it is a portable system and therefore the circuits need to be as compact as possible. So, any SCSI interface hardware would need to be compacted so it could fit. I'm not entirely sure if the CS/A65 SCSI interface can be compacted enough to fit into a portable computer.

Should I just dump SCSI and go SD-only, or is there a way to fit a SCSI interface?

_________________
-------------------------------
Have an awesome day!


Top
 Profile  
Reply with quote  
PostPosted: Thu May 20, 2021 7:58 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8505
Location: Midwestern USA
ashtons wrote:
Greetings!

After a conversation almost a month ago, I decided to start moving away from CBM and over to an SD card and SCSI for my computer's storage interfaces. SD should be easy - just need to adapt this SPI interface and I should be good to go. SCSI, however, may pose a problem.

While the same person also created a SCSI interface, I'm not entirely sure that it would fit or work in my computer project, as it is a portable system and therefore the circuits need to be as compact as possible. So, any SCSI interface hardware would need to be compacted so it could fit. I'm not entirely sure if the CS/A65 SCSI interface can be compacted enough to fit into a portable computer.

Should I just dump SCSI and go SD-only, or is there a way to fit a SCSI interface?

Might be a tad easier to answer your question if we knew what this project was all about.

BTW, my POC units have SCSI. Unlike André's approach, which was to bit-bang the SCSI bus (definitely not trivial), I used a 53CF94 SCSI controller to build my host adapter. It was a two chip solution, plus a clock.

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


Top
 Profile  
Reply with quote  
PostPosted: Thu May 20, 2021 12:30 pm 
Offline

Joined: Tue Jan 22, 2019 4:47 am
Posts: 18
Location: Louisiana
BigDumbDinosaur wrote:
ashtons wrote:
Greetings!

After a conversation almost a month ago, I decided to start moving away from CBM and over to an SD card and SCSI for my computer's storage interfaces. SD should be easy - just need to adapt this SPI interface and I should be good to go. SCSI, however, may pose a problem.

While the same person also created a SCSI interface, I'm not entirely sure that it would fit or work in my computer project, as it is a portable system and therefore the circuits need to be as compact as possible. So, any SCSI interface hardware would need to be compacted so it could fit. I'm not entirely sure if the CS/A65 SCSI interface can be compacted enough to fit into a portable computer.

Should I just dump SCSI and go SD-only, or is there a way to fit a SCSI interface?

Might be a tad easier to answer your question if we knew what this project was all about.

BTW, my POC units have SCSI. Unlike André's approach, which was to bit-bang the SCSI bus (definitely not trivial), I used a 53CF94 SCSI controller to build my host adapter. It was a two chip solution, plus a clock.


Fair point.

  • Planning to run the W65C02 at 8, 4, or 2 MHz (8 MHz preferred)
  • 32K SRAM
  • 4 ROM areas: 4k banked service ROM area (new, had to shrink MMIO from 8k to 4k), 8k banked external ROM area, 8k banked program ROM area, 8k system ROM area
  • 4k MMIO area: 2x W65C22, W65C51 (you told me to switch manufacturer to Rockwell, or go with a different RS232 chip, on a different thread), NHD-240128WG-ATFH-VZ# graphical LCD, an atmega as a keyboard controller (to keep things simple), interrupt logic, a DAC-08 which will be hooked into a speaker once I figure out what speaker to use
  • Power Supply: 9V battery or center-positive DC jack

At the end, the computer should be relatively small and portable (at least as small and as portable as a TRS-80 Model 100).

(I may edit this in the future - don't know how much information is exactly necessary.)

_________________
-------------------------------
Have an awesome day!


Top
 Profile  
Reply with quote  
PostPosted: Thu May 20, 2021 1:00 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10985
Location: England
If you want SCSI, is that because you have a particular device in mind to attach to it? If it's just storage, I would think SD card should be enough.


Top
 Profile  
Reply with quote  
PostPosted: Thu May 20, 2021 1:24 pm 
Offline
User avatar

Joined: Tue Mar 05, 2013 4:31 am
Posts: 1385
If you only need data storage, I would also suggest looking IDE (Compact Flash), as it's even easier to interface to the 6502 than SD. CF Cards can be powered from 3.3V or 5V without any changes as well.

_________________
Regards, KM
https://github.com/floobydust


Top
 Profile  
Reply with quote  
PostPosted: Thu May 20, 2021 6:09 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8505
Location: Midwestern USA
ashtons wrote:
  • Power Supply: 9V battery or center-positive DC jack

At the end, the computer should be relatively small and portable (at least as small and as portable as a TRS-80 Model 100).

If this is to be a battery-powered unit I would not use SCSI. The SCSI bus operates at relatively high current levels when in use, especially if passive termination is used. A CF card interfaced via IDE will be much more economical with power and should have sufficient performance. Save SCSI for a machine powered from the line.

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


Top
 Profile  
Reply with quote  
PostPosted: Thu May 20, 2021 11:39 pm 
Offline

Joined: Tue Jan 22, 2019 4:47 am
Posts: 18
Location: Louisiana
A bunch of useful advice. I'll look into implementing an IDE interface for CF cards, since I want there to be some options for storage.

_________________
-------------------------------
Have an awesome day!


Top
 Profile  
Reply with quote  
PostPosted: Thu May 20, 2021 11:57 pm 
Offline
User avatar

Joined: Tue Mar 05, 2013 4:31 am
Posts: 1385
ashtons wrote:
A bunch of useful advice. I'll look into implementing an IDE interface for CF cards, since I want there to be some options for storage.


If you don’t want to re-invent the wheel, you can just use mine, which is both here on the forum and my GitHub page.

viewtopic.php?f=4&t=6223&start=15#p82125

_________________
Regards, KM
https://github.com/floobydust


Top
 Profile  
Reply with quote  
PostPosted: Fri May 21, 2021 6:45 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8505
Location: Midwestern USA
floobydust wrote:
ashtons wrote:
A bunch of useful advice. I'll look into implementing an IDE interface for CF cards, since I want there to be some options for storage.

If you don’t want to re-invent the wheel, you can just use mine, which is both here on the forum and my GitHub page.

viewtopic.php?f=4&t=6223&start=15#p82125

This is an offer you shouldn't refuse. There comes a point in every project where knowing when to make use of prior art makes the difference between wishing it was working and actually seeing it working. flooby's implementation looks pretty good to me and is not difficult to implement. As he suggested, don't reinvent the wheel.

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


Top
 Profile  
Reply with quote  
PostPosted: Fri May 21, 2021 9:45 pm 
Offline

Joined: Tue Jan 22, 2019 4:47 am
Posts: 18
Location: Louisiana
BigDumbDinosaur wrote:
floobydust wrote:
ashtons wrote:
A bunch of useful advice. I'll look into implementing an IDE interface for CF cards, since I want there to be some options for storage.

If you don’t want to re-invent the wheel, you can just use mine, which is both here on the forum and my GitHub page.

viewtopic.php?f=4&t=6223&start=15#p82125

This is an offer you shouldn't refuse. There comes a point in every project where knowing when to make use of prior art makes the difference between wishing it was working and actually seeing it working. flooby's implementation looks pretty good to me and is not difficult to implement. As he suggested, don't reinvent the wheel.


I learned the "don't reinvent the wheel" lesson the hard way on a completely unrelated software project. I'm going to use flooby's implementation.

_________________
-------------------------------
Have an awesome day!


Top
 Profile  
Reply with quote  
PostPosted: Sun May 23, 2021 12:17 pm 
Offline

Joined: Tue Jul 05, 2005 7:08 pm
Posts: 1043
Location: near Heidelberg, Germany
BigDumbDinosaur wrote:
ashtons wrote:
Greetings!

While the same person also created a SCSI interface, I'm not entirely sure that it would fit or work in my computer project, as it is a portable system and therefore the circuits need to be as compact as possible. So, any SCSI interface hardware would need to be compacted so it could fit. I'm not entirely sure if the CS/A65 SCSI interface can be compacted enough to fit into a portable computer.

Should I just dump SCSI and go SD-only, or is there a way to fit a SCSI interface?

Might be a tad easier to answer your question if we knew what this project was all about.

BTW, my POC units have SCSI. Unlike André's approach, which was to bit-bang the SCSI bus (definitely not trivial), I used a 53CF94 SCSI controller to build my host adapter. It was a two chip solution, plus a clock.


Just nitpicking.... it's byte-banging ;-)

But seriously, for modern design I would not include SCSI anymore. Also, not sure if any of the modern devices is even compatible with the SCSI async mode I used.

In fact I wouldn't think an IDE solution would be necessary. Use a small SPI interface in a CPLD or use the VIA shift register to connect an SD card and you should have all the storage u need with a simple design and low power requirements.

André

_________________
Author of the GeckOS multitasking operating system, the usb65 stack, designer of the Micro-PET and many more 6502 content: http://6502.org/users/andre/


Top
 Profile  
Reply with quote  
PostPosted: Mon May 24, 2021 6:25 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8505
Location: Midwestern USA
fachat wrote:
BigDumbDinosaur wrote:
ashtons wrote:
Greetings!

While the same person also created a SCSI interface, I'm not entirely sure that it would fit or work in my computer project, as it is a portable system and therefore the circuits need to be as compact as possible. So, any SCSI interface hardware would need to be compacted so it could fit. I'm not entirely sure if the CS/A65 SCSI interface can be compacted enough to fit into a portable computer.

Should I just dump SCSI and go SD-only, or is there a way to fit a SCSI interface?

Might be a tad easier to answer your question if we knew what this project was all about.

BTW, my POC units have SCSI. Unlike André's approach, which was to bit-bang the SCSI bus (definitely not trivial), I used a 53CF94 SCSI controller to build my host adapter. It was a two chip solution, plus a clock.

Just nitpicking.... it's byte-banging ;-)

Shift to the left, shift to the right, do the heebie-jeebie, it's byte, byte, byte. :D

Quote:
Also, not sure if any of the modern devices is even compatible with the SCSI async mode I used.

Async mode is still part of the parallel SCSI standard. I run my drives in async mode, and they are all U160 and U320 units attached to the 50-pin cable with a 68-to-50 adapter.

The 53CF94 supports the 10 MHz sync mode specified in X3-131-1994 (SCSI 2), which I didn't implement in the firmware because the SCSI bus in sync mode can outrun the 65C816 operating at 20 MHz. A DMA controller is needed to take advantage of sync mode.

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


Top
 Profile  
Reply with quote  
PostPosted: Tue May 25, 2021 8:16 pm 
Offline

Joined: Tue Jan 22, 2019 4:47 am
Posts: 18
Location: Louisiana
BigDumbDinosaur wrote:
Shift to the left, shift to the right, do the heebie-jeebie, it's byte, byte, byte. :D


The 6502 version of the Cupid Shuffle?? Or do I have the wrong song/dance?

_________________
-------------------------------
Have an awesome day!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 37 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:  
cron