USB

For discussing the 65xx hardware itself or electronics projects.
Lyos Gemini Norezel
Posts: 54
Joined: 28 Dec 2003

USB

Post by Lyos Gemini Norezel »

Hey ya'll made another discovery... a USB to USB connector board schematics... might help us make a USB bus for a 6502... Those of you wizards might want to check this out.
http://www.unitronic.de/ftdi/Schaltungen/U2U.pdf
Lyos Gemini Norezel
Mundus Vult Decipi et Decipiatur
kc5tja
Posts: 1706
Joined: 04 Jan 2003

Re: USB

Post by kc5tja »

Lyos Gemini Norezel wrote:
Hey ya'll made another discovery... a USB to USB connector board schematics... might help us make a USB bus for a 6502... Those of you wizards might want to check this out.
http://www.unitronic.de/ftdi/Schaltungen/U2U.pdf
Lyos Gemini Norezel
Also check out the Cypress CY7C67300 USB adapter chip. It has four USB ports on it, and has an internal RISC processor (16-bit) which can be programmed to interface those USB ports to an arbitrary bus. It ought not be hard, then, to get that chip to talk to the 6502/65816 (in either host controller, device slave, or both) in some manner.
User avatar
GARTHWILSON
Forum Moderator
Posts: 8773
Joined: 30 Aug 2002
Location: Southern California
Contact:

Post by GARTHWILSON »

Also look at www.instantusb.com . Linx has this IC that can be interfaced through various serial interfaces, and requires no external components (except the connector).
Ric
Posts: 1
Joined: 06 Feb 2006
Location: Phoenix

USB

Post by Ric »

Has anyone put together a USB yet?
Ric
User avatar
GARTHWILSON
Forum Moderator
Posts: 8773
Joined: 30 Aug 2002
Location: Southern California
Contact:

Post by GARTHWILSON »

On the front of the Analog Design Guide issue that Maxim just sent me was this USB IC: http://www.maxim-ic.com/quick_view2.cfm/qv_pk/4751 (MAX3420E). It has everything to make a USB peripheral. You interface it via SPI. Like Samel said, you're not going to find these things in DIPs, but at least it's not a BGA. It's available in a 7mm square TQFP (thin quad flat pack) with 8 leads coming out each of the four sides.
User avatar
BitWise
In Memoriam
Posts: 996
Joined: 02 Mar 2004
Location: Berkshire, UK
Contact:

Post by BitWise »

I've been working on a design for a 6502 system that uses a PIC as a USB 2.0 interface.

This site http://www.lvr.com/ is a reasonable starting point for all things USB.

It seems the trend is increasingly for SMT chips for USB interfacing and away from hobbiest friendly DIP packages. SMT looks really cool but neither my eyesight or blood pressure is up to dealing with tiddly components. Thats why I decided to look into the PIC option, plus it means I can make use of Microchips free firmware for USB control and have a relatively simple protocol to communicate with the 6502 saving code space.

My latest design, shortly to be hardwired, uses two 40 pin 18F PICs (one for USB/I2C and the other for MMC/ethernet) interfaced to the 6502 via 6522s and another smaller 16F PIC as the 6502 clock source and reset handler.

The project is just waiting for me to finish the linker for my portable Java based 6501/6502/65C02/65SC02/65816 relocatable macro assembler suite (beta-testers welcome).
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs
User avatar
8BIT
Posts: 1787
Joined: 30 Aug 2002
Location: Sacramento, CA
Contact:

Post by 8BIT »

Here is another link to a USB Host product:

http://www.ghielectronics.com/USBwiz.htm

It can be used to connect USB keyboards, mice, and printers.
It also has FAT drivers built-in so its easy to access a USB thumb drive too.

This company also sells a FAT interface chip that can connect to CF media or even IDE hard drives.
http://www.ghielectronics.com/ALFAT.htm

All of these products offer UART, I2C, & SPI interfaces to the Host system. The drawbacks include 3.3V power (although IO is 5v tolerant) and SMD parts vs DIP. However, this will surely make interfacing to USB and other storage media easy.


Daryl
Nightmaretony
In Memoriam
Posts: 618
Joined: 27 Jun 2003
Location: Meadowbrook
Contact:

Post by Nightmaretony »

FT232, USB to RS232. SMT pain in the Intel, though....
"My biggest dream in life? Building black plywood Habitrails"
kc5tja
Posts: 1706
Joined: 04 Jan 2003

Post by kc5tja »

Nightmaretony wrote:
FT232, USB to RS232. SMT pain in the Intel, though....
FT245 -- parallel FIFO interface, much faster. Otherwise compatible with the FT232.
cas
Posts: 27
Joined: 21 May 2003
Location: Germany
Contact:

Re: USB

Post by cas »

Ric wrote:
Has anyone put together a USB yet?
Well, the MicroUSB Project is producing USB Hardware and Software drivers for 6502 based Homecomputers (Atari XL/XE, Commodore C=64, Apple II) based on the Cypres SL811HS.

Take a look at http://www.microusb.org/

Devices we can attach:
* Keyboard
* Mouse
* all kinds of Joysticks
* Wheels
* USB Sticks
* USB Harddrives
* USB CD-ROM

All hardware design and software is GPL.

The SL811HS is shielding the USB low-level side, but all USB Communication (USB Protocols) is done from the 6502. Programming is not hard once you get into it. Assemblercode for drivers is available. An USB driver is between 256 Byte and 2 K in Assembler.

Prototyping Software is in Forth, although it is currently also ported to CC65.

Best regards

Carsten
vbriel
Posts: 20
Joined: 26 Feb 2003
Contact:

Post by vbriel »

I'm giving this bad boy a try on my next project. It will help development of the chip with through hole and it is only $18 with royalty free drivers!

http://www.ftdichip.com/Products/Evalua ... MM232R.htm

How can you go wrong.

Vince
replica 1 the Apple 1 clone
http://www.brielcomputers.com
kc5tja
Posts: 1706
Joined: 04 Jan 2003

Post by kc5tja »

vbriel wrote:
How can you go wrong.
Well, for starters, you could accidentally discharge more than 2000V of static into the part while installing it.... ;D
vbriel
Posts: 20
Joined: 26 Feb 2003
Contact:

Post by vbriel »

If anybody is curious, I received my MM232 board for the FT232R IC and got right to work. The drivers work perfect. I just used the virtual comm port software that is free on their site. Then I wired up the device to be bus powered. Then ran Tx and Rx in a loop back to test. I opened up Hyper terminal and could type in and get back what I was typing. I removed my loopback to verify that it would stop communicating. After that it was just a matter of wiring the Tx and Rx lines up to my circuit that I normally use for serial and it works perfect. I think this has to be the easiest solution for USB communication I've seen yet.

Vince
replica 1 the Apple 1 clone
http://www.brielcomputers.com
fachat
Posts: 1124
Joined: 05 Jul 2005
Location: near Heidelberg, Germany
Contact:

Post by fachat »

Just wanted to tell anyone :-)

I have finished a first version of my 6502 USB stack, for host operation as well as device operation.

Host operation currently supports:
- mouse
- keyboard
- hub

device operation currently supports:
- keyboard

While I started from the MicroUSB code, and learned some stuff from them (I know you're reading, didn't have time yet to contact you) I wrote completely new drivers, with separation of hardware and logic (so other chips than the SL811HS can be supported easily).

Currently only the board plus drivers are available, I'll most likely write an article about the USB stuff some time (in the future :-)
http://www.6502.org/users/andre/csa/usb/index.html

Have fun
André
Nightmaretony
In Memoriam
Posts: 618
Joined: 27 Jun 2003
Location: Meadowbrook
Contact:

Post by Nightmaretony »

Would an AVR work out ok doing usb to a serial linkage or parallel to 6502? A small DIP package would be easier on us....
"My biggest dream in life? Building black plywood Habitrails"
Post Reply