?

Log in

No account? Create an account
Deunan
Improving the hardware 
25th-Apr-2009 01:40 am
Serial link: poor man's answer to broadband adapter shortage (and pricing). It's a cheap way to transfer data between PC and Dreamcast (including dumping your own BIOS and FLASH) and pretty much the only option if you're considering homebrew software. Sure, demos and emulators can be burned onto CDs but for testing your own code you'll need a more robust delivery method :)

Some time ago I mentioned that most serial link projects out there are overly complicated. Perhaps it's because many were conceived years ago when every PC had at least one RS232 port and USB chips were expensive. I'm about to show you it can be made really simple.

I'm going to skip all the technical details and going to assume you already know:
- what is RS232 and it's limitations
- why we should stick to low-voltage signaling
- what is USB and why use it

First you'll need FT232 chip from FTDI. It's exactly what we want, a simple yet fast USB to serial converter with low-voltate I/O. And by "chip" I actually mean a ready-made interface like this one:



It can be powered from USB line and has internal 3.3V low drop regulator - so all it takes to make it work is two short wires: one to route power supply, one to connect LDO output with voltage reference pin for I/O.

Now for the Dreamcast part. I found it impossible to purchase a connector that would fit the serial port so it had to go. You won't miss it, trust me.
First cut the connector assembly in two, with a small saw blade or a file. Take your time, you don't want to damage anything on the board (hence the black tape by the way). Pay attention to where exactly are you placing the cutting point, you will want both sides of the video connector intact so that the screws will hold it well in place.



Cut the connector legs with precise cutters. And I do mean precise, too big will rip them off the board, possibly damaging the traces as well. The alternative is to insert a small, flat head screwdriver (or something like that) under the pin and pry it up as you heat the soldering point with iron tip. Again, do not apply any force before melting the solder. The pins on right were cut, ones on the left were lifted.



Now desolder the shield and remove unwanted connector part completly. Don't throw it away yet, you'll need to cut off the other side mounting wing too, to provide a proper spacing for metal heat exchanger. Well you can always use a couple of small washers for that if need be.



And here's a picture of the pads cleaned, with any leftover pin remains removed.



Now you just need to solder 5 wires (RxD, TxD, RTS, CTS and ground) to the pads. I used one of the shield pads for ground, that makes it easier to fit the other four. That can be somewhat challenging with thicker wire but it pays off to have it durable and safe to twist around. Glue gun does the rest, just don't overdo it or you'll have problems fitting the covering plate/heat exchanger.



Ready to rock :) You can even see the wire I used to route USB power and I/O reference. All you need to do now is put it all back together and get friendly with dcload-serial tool.



So, does it work? Hell yes, on 3 Dreamcasts already. Same technique in every case. Works like a charm up to 1.5Mbps too. Just keep the wires to FT chip as short as possible (already long board traces and protective RC elements not helping any). If you have problems with higher speeds you can try using 5V instead of 3.3V for I/O. I belive this to be pretty safe (run it for hours on my Dreamcasts) but make no guarantees.
Some people say even 3Mbps can be achieved when protection RCs are removed but that will open a direct line to SH4 pins and you risk permanent damage to it. Obviously, no 5V in that case.

There's no galvanic separation here, wouldn't make much sense with common ground, so even if DC power supply is floating (I think) make sure you connect everything to the same AC phase. Or suffer the consequences.

Oh, and yes, the wires just stick out of the back of Dreamcast. Hey, it's cheap and works :)



UPDATE: Few more details, should be more useful now :)

First, here's a simplified pinout (only the required signals shown):



And just in case someone needs this extra bit of info, the whole serial port carries these signals on B10 down to B1 (looking at the picture above that's left to right): 3.3V, /RESET, GND, CTS, RTS, TxD, RxD, GND, SCK, 5V. And as you can see the big pads on both sides (connector shield) are also tied to ground.

This particular serial to USB converter was bought here: http://www.propox.com/products/t_93.html
It's a pretty common design but there's a manual with schematics for download on that page if you need them.

Pins VPO, VEX and VIO are connected together in my photo. That's PORTVCC, EXTVCC and IOVCC - and that means 5V on the I/O pins. This is actually by mistake, I'm short on these modules and when I swap it around I often forget to re-wire it properly for Dreamcast. As I said, it will work like this but that's unsafe.
You should connect IOVCC to 3V3OUT instead. With this module you'd just put a jumper on pins 24 and 23 and connect 22 with 18 using a short, insulated wire.

And don't forget it's a null-modem so TxD from the board goes to RxD pin on the FT chip and vice versa. Same for RTS/CTS control signals.

Hope that helps!
Comments 
30th-Apr-2009 09:25 am (UTC) - Re: module power
Look here: http://www.propox.com/products/t_93.html
Go to the bottom of the page, download "User's Manual". There's a schematic on the last page of the manual.

Pins VPO, VEX and VIO are connected together in my photo. That's PORTVCC, EXTVCC and IOVCC. This is actually by mistake, I'm short on these modules and I when I swap it around I often forget to re-wire it properly for Dreamcast. As I said, it will work like this but that's unsafe.

You should connect IOVCC to 3V3OUT instead. With this module you'd just put a jumper on pins 24 and 23 and connect 22 with 18 using a short, insulated wire.
30th-Apr-2009 07:01 pm (UTC) - Re: module power
Anonymous
Got it. I had the hardware guy at work get me a couple of these: http://www.dlpdesign.com/usb/usb232.shtml.

The pinout diagram in their data sheet/schematic is flipped around 180 so your pin24 is my pin12.

Thanks again. Hopefully I'll get this to work.
30th-Apr-2009 07:22 pm (UTC) - Re: module power
One more thing, don't forget it's a null-modem so TxD from the board goes to RxD pin on the FT chip and vice versa. Same for RTS/CTS control signals.
1st-May-2009 04:30 am (UTC) - Re: module power
Anonymous
One last question:

Is this the pinout you're working with on the dreamcast side?
  ||||||||||  (at Console)
  1       10

Pin Description
1 +5V
2
3 GND
4 RX2
5 TX2
6 RTS
7 CTS

8
9
10 +3,3V

1st-May-2009 09:07 am (UTC) - Re: module power
Yup. I've updated my post, see the picture.
21st-Sep-2009 09:45 am (UTC) - Re: module power
Anonymous
Inspite of the opening post saying that you can't figure out where to get a serial cable for the Dreamcast (so you could have the needed end connector for the Dreamcast), I found one for $60 on ebay after about 30 seconds. It is a NeoGeo Pocket to Dreamcast cable, that you can easilly cut the wire and just keep the Dreamcast end of it to solder to your USBtoSERIAL converter. Now I haven't made that mod yet because you have yet to post a color coded pinout of the cable and associated tutorial for how to use this cable to make the DREAMCASTtoUSB converter. And I won't spend $60 until I'm sure I know the instructions on how to use it for this hack. But you really need to look better online for the needed cable before you suggest in a tutorial something as crazy as actually OPENING UP A VIDEO GAME CONSOLE and doing a SOLDERING JOB on the main board. I'm sure MANY people would rather spend $60 for a cable than doing a hardware modod of a video game machine which might end up RUINING the machine, which (if they bought in the store while the DC was still being sold) was a $150 to $200 game machine! Spend $60 or waste $150 to $200, hmm, what should I do. OBVIOUSLY I'll spend $60 on a cable so I don't have to fry a $150 to $200 video game machine, when doing my modification.
21st-Sep-2009 12:01 pm (UTC) - Re: module power
60 USD? This a joke, right? That's enough for the USB converter and a preowned Dreamcast (in good condition!) to experiment on.
Just because you don't feel comfortable holding soldering iron doesn't mean everyone is like that.
26th-Sep-2009 09:49 am (UTC) - Re: module power
Anonymous
Hello, is this one OK ?
http://cgi.ebay.fr/USB-TO-RS232-Module-Based-TTL-PC-FT232-FT232RL_W0QQitemZ260472630258QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item3ca560ebf2&_trksid=p3286.m63.l1177
26th-Sep-2009 09:25 pm (UTC) - Re: module power
It will do. It has one minor flaw though, someone forgot to make use of the 3.3V output. There are three ways around it:

1) Ignore it, run the I/O at 5V - it will work and is pretty safe. I've been doing that a lot, but there is always some risk and it might cause audio/video interference as long as the cable is connected.

2) Route 3V3 from DC mainboard - just one more wire from B10 to the module J2 pin #1 (VCC). Rejumper J1 to 1-2. You can now switch between 5V and target power supply with J1.

3) Fix the problem :) Desolder R1 since it's not needed, only revision A chips needs it and this is R, then solder a wire from chip pin 17 (3V3OUT) to pin 4 (IOVCC). The easiest way would be to use the solder pads of R1 and C4, just be careful to get it right. It's permanent 3V3 now as long as the wire is in place (or you can solder it to J1 instead of C4 and have it selectable).
26th-Sep-2009 09:51 pm (UTC) - Re: module power
Anonymous
Thanks for your reply ! :)

I removed the EMI capacitors, so no 5V for me...
But I think adding a 74VHC244 chip could work. I just need to know what a "3 states" buffer is, I'm not that familiar with that kind of things.

By the way, I plan to use the connector of my old coder's cable, I hope baudwidth will still be good enough.
12th-Jan-2010 06:06 pm (UTC) - Re: module power reparasion
Anonymous
reparasion de dreamcast youtuve nicolas 183 ttengo el kof 2003 el metal sglu 5 y4 se travan meparese q esta mal armado se muchas cosas de la dc enseño a repararla y aserla silensiosa kiero ponerle un dvd pero no tengo datos de los pines nesesito sircuitos de los yoystik y de la placa madre porfavor nesesito amigo que kieran ala dreamcast ver videos en youtuve reparasion de dreamcast y xbox 360 y que digan como soni manipulio a sega injustamente dejar imeil
This page was loaded Nov 14th 2018, 10:22 pm GMT.