USB <-> DC High speed Cable Coders released
-
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Has thanked: 0
- Been thanked: 0
-
- DCEmu Cool Poster
- Posts: 1048
- Joined: Thu May 16, 2002 5:01 pm
- Location: Madrid, Spain
- Has thanked: 0
- Been thanked: 0
Re: Sigh...
Sorry to hear that... Anyway you have made a great work and you deserve to rest.Axlen wrote:I've decided to stop all coders cable development. No excuses, no explanation. Period.
I was thinking on making a new design on my own, but I don't know what are the DC serial bus standard speeds. Can anybody tell me or point me to the right documentation?
I can't find here the F232 chip so I think I can use a TUSB3410, but it isn't as fast as the F232 (up to 921,6 Kbps only).
If I can find info on the DC serial port standard speeds, I think I'll go for it when I finish my exams...
-
- DC Developer
- Posts: 41
- Joined: Mon Apr 15, 2002 7:09 pm
- Location: Milwaukee
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: Sigh...
You can get the FTDI chips from Parallax.doragasu wrote: I can't find here the F232 chip so I think I can use a TUSB3410, but it isn't as fast as the F232 (up to 921,6 Kbps only).
The bauds that the DC serial port supports are based on a 50Mhz clock. The formulas for determining the baud are in the hardware manual for the processor. You can probably get links to those resources off the Boob website and from Marcus's site as well.
The major problem will all single chip USB-serial solutions is that fact that their clocks are all some factor of 96Mhz or 48Mhz which makes choosing bauds that are compatible between the USB bridge and DC serial port a real challenge. Especially so at the higher bauds. 500K baud is the maximum *reliable* baud I could coax out of the FTDI FT232BM chip (6Mhz clock) when used with the Dreamcast.
Axlen was here...
-
- DCEmu Cool Poster
- Posts: 1048
- Joined: Thu May 16, 2002 5:01 pm
- Location: Madrid, Spain
- Has thanked: 0
- Been thanked: 0
Re: Sigh...
Thanks for the info. I have only had an overview on datasheet of the chip I plan to use (I'm pretty busy ATM), and it uses a 96MHz clock signal to get the baudclock, so it looks like I'll have the same problems you had. Anyway, I'll be pretty happy if I can get 500Kbps.Axlen wrote:You can get the FTDI chips from Parallax.
The bauds that the DC serial port supports are based on a 50Mhz clock. The formulas for determining the baud are in the hardware manual for the processor. You can probably get links to those resources off the Boob website and from Marcus's site as well.
The major problem will all single chip USB-serial solutions is that fact that their clocks are all some factor of 96Mhz or 48Mhz which makes choosing bauds that are compatible between the USB bridge and DC serial port a real challenge. Especially so at the higher bauds. 500K baud is the maximum *reliable* baud I could coax out of the FTDI FT232BM chip (6Mhz clock) when used with the Dreamcast.
-
- DCEmu Cool Poster
- Posts: 1048
- Joined: Thu May 16, 2002 5:01 pm
- Location: Madrid, Spain
- Has thanked: 0
- Been thanked: 0
I've been looking to the SH4 manual (thanks Axlen for pointing me to it) and I think I now know how to calculate the baudrates. The max baudrate for Asynchronous mode is with n=0 (CKS1=0, CKS0=0) and N=1:
50.000.000/(64*0,5*1) = 1.562.500 bps
For 500Kbps I suppose you use n=0 and N = 3 (520833 bps).
50.000.000/(64*0,5*1) = 1.562.500 bps
For 500Kbps I suppose you use n=0 and N = 3 (520833 bps).
- semicolo
- Mental DCEmu
- Posts: 328
- Joined: Mon Apr 25, 2005 1:02 pm
- Location: Three-rivers canada
- Has thanked: 0
- Been thanked: 0
- Contact:
Yes you're right, if you want exact matching baud rates you could use an USB uC and hook a standard Uart clocked at 25Mhz on it. Or maybe use some fast uC like a scenix to emulate one or find a uC that's got an embedded uart that can be clocked fast enough.
You'll have to write device drivers though whereas FTDI chips come with.
You'll have to write device drivers though whereas FTDI chips come with.
-
- DCEmu Cool Poster
- Posts: 1048
- Joined: Thu May 16, 2002 5:01 pm
- Location: Madrid, Spain
- Has thanked: 0
- Been thanked: 0
I hope I have not to use a generic uC, as I started to read the entire USB 2.0 specification (more than 600 pages) and it's really complex. If I have to code everything, I'll never gonna end this.semicolo wrote:Yes you're right, if you want exact matching baud rates you could use an USB uC and hook a standard Uart clocked at 25Mhz on it. Or maybe use some fast uC like a scenix to emulate one or find a uC that's got an embedded uart that can be clocked fast enough.
You'll have to write device drivers though whereas FTDI chips come with.
I'll finish my exams on 25th June, and then I'll have a little more time to spend with this project (I'm also working so it will progress slowly even when I finish my exams). By now I have found a general purpose USB controller (TUSB3210) with an embedded 8052 uC running at 48MHz. I'll try to connect it to a TL16C550D UART chip, that supports... up to 1.5 Mbps!
I have no experience working with USB devices or developing drivers, but the USB controller comes with a free "Product development kit" so I hope developing the drivers is no a PITA. It also has Keyboard firmware sample source code, I'll try to have a look at it and see how does it look like.
Let's see where I can get with this.
-
- DC Developer
- Posts: 41
- Joined: Mon Apr 15, 2002 7:09 pm
- Location: Milwaukee
- Has thanked: 0
- Been thanked: 0
- Contact:
Yup, the baud matching problem is known as aliasing. As long as the bauds are within 3% the serial link should work.semicolo wrote:Yes you're right, if you want exact matching baud rates you could use an USB uC and hook a standard Uart clocked at 25Mhz on it. Or maybe use some fast uC like a scenix to emulate one or find a uC that's got an embedded uart that can be clocked fast enough.
You'll have to write device drivers though whereas FTDI chips come with.
FYI: Olimex has a nice cheap PIC development board with an FTDI USB-serial chip on board: http://www.olimex.com/dev/pic-p28-usb.html
A hobbyist could use that to build up a 500K baud DC Coders cable with the addition of a few components. I've already provided the DC interface details and wrote up the theory so what's taking this group of hardware modders so long to get with the modding!
Axlen was here...
- Christuserloeser
- Moderator
- Posts: 5948
- Joined: Thu Aug 28, 2003 12:16 am
- Location: DCEvolution.net
- Has thanked: 10 times
- Been thanked: 0
- Contact:
- Morphv2
- Insane DCEmu
- Posts: 230
- Joined: Sun Sep 12, 2004 1:36 pm
- Location: Someplace
- Has thanked: 0
- Been thanked: 0
- Contact:
You have a profound point doragasu. But heres the catch, not many games/apps as it is support the official BBA. A cheaply built DC serial-BBA could the the thing needed for future DC homebrew coders. Heck if a *standard* format could be achieved, a universal homebrew BBA could be made with support for future games like a networked Quake port or something. 1.5Mb/s is plenty for online games.
I see a homebrew BBA or the USB- dc serial something that future devvers will need. Most laptops actually don't have a serial port and seems that the standar serial it's going to disappear in some years, there's not much use unless you are doing some coding with homebrew hardware and PICs, comunication through serial it's just too slow
-
- Mental DCEmu
- Posts: 303
- Joined: Tue Jun 29, 2004 4:20 pm
- Location: Colorado
- Has thanked: 0
- Been thanked: 0
- Contact:
- Christuserloeser
- Moderator
- Posts: 5948
- Joined: Thu Aug 28, 2003 12:16 am
- Location: DCEvolution.net
- Has thanked: 10 times
- Been thanked: 0
- Contact: