Stand-Alone Devices
-
jamesadrian
- Posts: 34
- Joined: 11 Jan 2016
- Location: Rochester, NY 14626
- Contact:
Re: Stand-Alone Devices
EugeneNine,
It's for exchanging data with flash drives.
It's for exchanging data with flash drives.
Jim Adrian
https://www.futurebeacon.com/jamesadrian.htm
https://www.futurebeacon.com/jamesadrian.htm
-
DerTrueForce
- Posts: 483
- Joined: 04 Jun 2016
- Location: Australia
Re: Stand-Alone Devices
jamesadrian wrote:
There are several, if not many, projects that can profitably use the 6502, slow as it it.
jamesadrian wrote:
I am interested in the ones that involve a USB port. If the 6502 were a tenth as fast as it is, it could still run a USB port.
This looks like it's meant to be an answer to my request for proof. This is not proof. This is a statement without proof. And I wasn't actually asking for the 6502's ability with USB. I was asking about the 6502's ability regarding your intended application. I didn't phrase my question all that well. Speaking of which, what is your intended application?
jamesadrian wrote:
We have a different idea about the hardware design.
jamesadrian wrote:
I am looking for people who like programming in 6502 assembly language, and also some who understand the USB port. This site is called 6502.org. To me, it makes sense to try to find people here.
jamesadrian wrote:
If nobody thinks it is sane to use a 6502 for a USB port device, then I have had another question: Would you like the device better if it used a faster processor and a cross assembler for 6502 programmers?
Mind you, I'm not saying you shouldn't pursue your idea; it's your hobby. Nor am I saying that you should go away; I daresay that you'll be able to get help here. But I don't think you'll get any recruits for a team here, assuming that's what you're trying to do.
My recommendation is this: If we've given you enough information to get started, start designing and prototyping your device.
Last edited by DerTrueForce on Wed Aug 23, 2017 6:26 pm, edited 1 time in total.
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: Stand-Alone Devices
The MAX3421 is a USB controller, interfaced by SPI.
https://www.maximintegrated.com/en/prod ... 3421E.html
http://www.mouser.com/Search/Refine.asp ... d=MAX3421E
data sheet: http://www.mouser.com/ds/2/256/MAX3421E-103260.pdf
But if you just want to do the little flash memory cards, I expect SD card would be much easier to interface to than USB thumb drives.
https://www.maximintegrated.com/en/prod ... 3421E.html
http://www.mouser.com/Search/Refine.asp ... d=MAX3421E
data sheet: http://www.mouser.com/ds/2/256/MAX3421E-103260.pdf
But if you just want to do the little flash memory cards, I expect SD card would be much easier to interface to than USB thumb drives.
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?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
Re: Stand-Alone Devices
If you're looking for ubiquitous interoperability, the USB thumb drive is the way to go. Otherwise, yea, you can drive an SD card pretty much directly (though it seems that some cards behave better than others, which is curious, at least when interfaced vis SPI -- but perhaps not using another method).
That CH376 probably has a CPU several times faster than the 6502 buried in it, since it claims to support up to the 12MBs rate, is also mentions it supports SPI up to 24MHz.
I honestly don't know much about USB interfacing. I assume that MAX chip handles the bulk of the details and the device will basically be a passive participant, even with a slow partner like a 6502? Would be interesting to see some block read/write code that talks to a USB drive using that chip. (The file system itself would come later).
All that said, the CH376 chip is pretty black boxy magical in what it does. Offers a lot of utility in that space I think. Shame it only seems to be available on breakout boards off eBay.
That CH376 probably has a CPU several times faster than the 6502 buried in it, since it claims to support up to the 12MBs rate, is also mentions it supports SPI up to 24MHz.
I honestly don't know much about USB interfacing. I assume that MAX chip handles the bulk of the details and the device will basically be a passive participant, even with a slow partner like a 6502? Would be interesting to see some block read/write code that talks to a USB drive using that chip. (The file system itself would come later).
All that said, the CH376 chip is pretty black boxy magical in what it does. Offers a lot of utility in that space I think. Shame it only seems to be available on breakout boards off eBay.
-
leepivonka
- Posts: 168
- Joined: 15 Apr 2016
Re: Stand-Alone Devices
MPJA has a board with the CH376 (and some documentation).
The CH376 is from wch-ic.com (or wch.cn ).
jamesadrian: more questions...
On the CH376 interface to USB or SD storage:
Is FAT12 & FAT16 & FAT32 (but not NTFS or anything Linux) OK?
Is a maximum file size of 1GB OK?
On the video display:
What did you have in mind? 64x16 character text? 640x480 monochrome graphics? something else?
No network connection?
Maybe 32KB flash memory?
Maybe 32KB RAM?
Maybe a 65816 CPU?
Or, starting from one of these, what would you change?
W65C265SXB board - wdc65xx.com/boards/w65c265sxb-engineering-development-system
BDDs POC board
Raspberry PI
The CH376 is from wch-ic.com (or wch.cn ).
jamesadrian: more questions...
On the CH376 interface to USB or SD storage:
Is FAT12 & FAT16 & FAT32 (but not NTFS or anything Linux) OK?
Is a maximum file size of 1GB OK?
On the video display:
What did you have in mind? 64x16 character text? 640x480 monochrome graphics? something else?
No network connection?
Maybe 32KB flash memory?
Maybe 32KB RAM?
Maybe a 65816 CPU?
Or, starting from one of these, what would you change?
W65C265SXB board - wdc65xx.com/boards/w65c265sxb-engineering-development-system
BDDs POC board
Raspberry PI
-
jamesadrian
- Posts: 34
- Joined: 11 Jan 2016
- Location: Rochester, NY 14626
- Contact:
Re: Stand-Alone Devices
leepivonka,
I think that the 65816 is an excellent suggetion.
I think that the 65816 is an excellent suggetion.
Jim Adrian
https://www.futurebeacon.com/jamesadrian.htm
https://www.futurebeacon.com/jamesadrian.htm
-
jamesadrian
- Posts: 34
- Joined: 11 Jan 2016
- Location: Rochester, NY 14626
- Contact:
Re: Stand-Alone Devices
Does anybody think that a 65816 could not use a USB port for mass storage?
Jim Adrian
https://www.futurebeacon.com/jamesadrian.htm
https://www.futurebeacon.com/jamesadrian.htm
Re: Stand-Alone Devices
I suspect it's mostly a question of how much work it would be, and partly a question of how much memory would be needed. USB is a complex protocol stack, normally coded in C, and there's something of a shortage of quality C compilers for 65xx family. This repo has 12k lines of C code. The standards document for USB has 650 pages, apparently.
Last edited by BigEd on Fri Aug 25, 2017 5:23 pm, edited 1 time in total.
Re: Stand-Alone Devices
USB is certainly complicated, but that code doesn't look too awful. And you can be selective as to what parts of that code base you want. If you want just the MSC part for mass storage (and that's simply block I/O, not a file system), then I bet that MSC and the core driver code compiles down to < 4K of actual code.
4K is still a lot for a device drive on an 8-Bit machine, but c'est la vie. That's the protocol's fault, not so much the CPUs.
But this code is just the protocol, I'm guessing would need something like that MAX3421 chip for the actual interfacing. You'd also need to code to handle the file system aspects.
So, there's no reason that a 6502 can't drive a USB based peripheral. I don't see anything to suggest that there's a minimum performance requirement (so you should be able to talk to a modern USB device from a 1MHz 6502 -- it'll just be slow).
The 65816 would be "better" solely for the fact that it can address more memory, so having a large software stack to drive a complicated protocol would be less impactful to the overall resource footprint. (4K from 64K is a lot more heavy handed than 4K from 16MB.) Plus you could have denser code on the '816.
4K is still a lot for a device drive on an 8-Bit machine, but c'est la vie. That's the protocol's fault, not so much the CPUs.
But this code is just the protocol, I'm guessing would need something like that MAX3421 chip for the actual interfacing. You'd also need to code to handle the file system aspects.
So, there's no reason that a 6502 can't drive a USB based peripheral. I don't see anything to suggest that there's a minimum performance requirement (so you should be able to talk to a modern USB device from a 1MHz 6502 -- it'll just be slow).
The 65816 would be "better" solely for the fact that it can address more memory, so having a large software stack to drive a complicated protocol would be less impactful to the overall resource footprint. (4K from 64K is a lot more heavy handed than 4K from 16MB.) Plus you could have denser code on the '816.
Re: Stand-Alone Devices
Most damage to small business has nothing to do with hacking messages.
It is hacking the OS, like Windows, that does the most damage.
There is little effort to hack email from "Joe's Donuts" because no
one cares what email Joe sends.
There is major efforts to hack mail by "Bank of America".
The best way to send a key is to split it into several pieces and use
several trusted transporters to send the parts of the key.
Even if several parts of the key are compromised in transport, the remaining pieces
are sufficient to ensure secure communications.
The advantage of using the current quantum entanglement methods of sending keys
is that it is impossible to examine the keys without being detected.
It is hacking the OS, like Windows, that does the most damage.
There is little effort to hack email from "Joe's Donuts" because no
one cares what email Joe sends.
There is major efforts to hack mail by "Bank of America".
The best way to send a key is to split it into several pieces and use
several trusted transporters to send the parts of the key.
Even if several parts of the key are compromised in transport, the remaining pieces
are sufficient to ensure secure communications.
The advantage of using the current quantum entanglement methods of sending keys
is that it is impossible to examine the keys without being detected.
-
jamesadrian
- Posts: 34
- Joined: 11 Jan 2016
- Location: Rochester, NY 14626
- Contact:
Re: Stand-Alone Devices
Can anybody here design and specify to a foundry a peripheral controller for a 65816 that will access a one terabyte flash drive?
Jim Adrian
https://www.futurebeacon.com/jamesadrian.htm
https://www.futurebeacon.com/jamesadrian.htm
Re: Stand-Alone Devices
Could you be less elusive? You seem to be posting what you think are solutions, rather than stating problems. If you state the problem and end goal, the discussion is much more fruitful.
Modern USB will easily support that size of drive. Are you talking about USB? There are other interfaces.
As to your question, that MAX3421 chip, and that source code that was linked to, should easily be able to access a 1TB flash drive over USB, as it seems 1TB is well within the limits of USB 2.0 MSC, which is limited to 2TB.
is there any good reason to reinvent this wheel?
Modern USB will easily support that size of drive. Are you talking about USB? There are other interfaces.
As to your question, that MAX3421 chip, and that source code that was linked to, should easily be able to access a 1TB flash drive over USB, as it seems 1TB is well within the limits of USB 2.0 MSC, which is limited to 2TB.
is there any good reason to reinvent this wheel?
-
jamesadrian
- Posts: 34
- Joined: 11 Jan 2016
- Location: Rochester, NY 14626
- Contact:
Re: Stand-Alone Devices
whartung,
My often repeated goal is to enjoy the 6502 instruction set in a device that has a USB port.
Can we get there from here?
My often repeated goal is to enjoy the 6502 instruction set in a device that has a USB port.
Can we get there from here?
Jim Adrian
https://www.futurebeacon.com/jamesadrian.htm
https://www.futurebeacon.com/jamesadrian.htm
-
jamesadrian
- Posts: 34
- Joined: 11 Jan 2016
- Location: Rochester, NY 14626
- Contact:
Re: Stand-Alone Devices
Here is one of many products not yet on the market that could be done with a 6502 device having a USB port:
https://www.youtube.com/watch?v=dGUD58gp6Fk
https://www.youtube.com/watch?v=dGUD58gp6Fk
Jim Adrian
https://www.futurebeacon.com/jamesadrian.htm
https://www.futurebeacon.com/jamesadrian.htm
Re: Stand-Alone Devices
jamesadrian wrote:
whartung,
My often repeated goal is to enjoy the 6502 instruction set in a device that has a USB port.
Can we get there from here?
My often repeated goal is to enjoy the 6502 instruction set in a device that has a USB port.
Can we get there from here?