Interfacing the MD's Serial Ports to a PC
-
- Very interested
- Posts: 484
- Joined: Sat Mar 05, 2011 11:11 pm
- Location: Berlin, Germany
Interfacing the MD's Serial Ports to a PC
Hello all,
does anyone have a Schematic that I could use to 'safely' connect my MD 1 up to my Linux Machine over 232?
Thanks.
does anyone have a Schematic that I could use to 'safely' connect my MD 1 up to my Linux Machine over 232?
Thanks.
-
- Very interested
- Posts: 615
- Joined: Thu Nov 30, 2006 6:30 am
-
- Very interested
- Posts: 484
- Joined: Sat Mar 05, 2011 11:11 pm
- Location: Berlin, Germany
I've used MAX232 and its relatives in the past, I was wondering how the lines should be pulled and what value resistors and capacitors I should use though. Art transfer speed I really just wanted to pass very small amounts of data back and forth but I could use parallel too later. Do you have any ideas for safe values at all?Mask of Destiny wrote:I don't have a schematic, but you probably want to look into the MAX232 level translator IC. That said, the max baud rate is really low. You can get better throughput with a 4-bit parallel protocol.
-
- Very interested
- Posts: 615
- Joined: Thu Nov 30, 2006 6:30 am
I don't have any direct experience using the MAX232, but based on a quick perusal of the datasheet, some example schematics and what I know about the gamepad ports, I don't think you'll need any resistors. The datasheet suggests you should use 1.0 uF capacitors for the 232. Other variants require different values.
This thread has some information about which pins and registers to use for serial operation: viewtopic.php?p=18483
This thread has some information about which pins and registers to use for serial operation: viewtopic.php?p=18483
-
- Very interested
- Posts: 2984
- Joined: Fri Aug 17, 2007 9:33 pm
-
- Very interested
- Posts: 484
- Joined: Sat Mar 05, 2011 11:11 pm
- Location: Berlin, Germany
Yes, I actually bought a USB-RS232 converter and a couple of TeensyUSBs and forgot that I had them.
I had a look at the MD's Schematic and I can see that the Serials are connect to EM1X Ports on IC315-5309. My question: are these standard RS232 level lines at +-11V ? Also, am I being too paranoid in wanting to use opto-isolators on the port?
Cheers.
I had a look at the MD's Schematic and I can see that the Serials are connect to EM1X Ports on IC315-5309. My question: are these standard RS232 level lines at +-11V ? Also, am I being too paranoid in wanting to use opto-isolators on the port?
Cheers.
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
They are 0 to 5V
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
-
- Very interested
- Posts: 484
- Joined: Sat Mar 05, 2011 11:11 pm
- Location: Berlin, Germany
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
That is what you need the MAX232 or equivalent for. It'll work as is.
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
-
- Very interested
- Posts: 484
- Joined: Sat Mar 05, 2011 11:11 pm
- Location: Berlin, Germany
I have my MAX232 here and I started to draw up my Schematic. However, I wanted to have confirmed that the Pins connected to 315-5309's EM3X are correct as I have no Oscilloscope to check the Output at this time and worry about damaging the Pins. Can someone confirm that Pins for RS232 Serial are as:TmEE co.(TM) wrote:That is what you need the MAX232 or equivalent for. It'll work as is.
1,2,3,4 : UP, DOWN, LEFT, RIGHT
5: VCC
6: TL (Serial Send TX)
7: TH (Serial Interrupt)
8: GND
9: TR (Serial Receive RX)
I will put my Schematic together along with a Test-Program to help out anyone who is starting to work with Real MD Hardware
-
- Very interested
- Posts: 484
- Joined: Sat Mar 05, 2011 11:11 pm
- Location: Berlin, Germany
Hello Blokes,
in case anyone will read this and would like to know:
[MD Ext.-Port Set to Serial-Mode]
SCTRL = 0xB0 : Baud=1200bps, Serial-In, Serial-Out, No-Interrupt.
Pins:
TX = TL = 6
RX = TR = 9
Make sure that you Ground Pin 8
I also pulled the TL and TR up to +5V using 10K Resistors.
I wrote a quick Test to send alternating Bytes over the Port to my Bus-Pirate v3 in UART-Mode set to automatic update for all Data received.
I need to take the MD's 5V down to something that my Teensy3 can use, so around 3.3V. I'll update you once I've sorted the Hardware out.
Cheers.
in case anyone will read this and would like to know:
[MD Ext.-Port Set to Serial-Mode]
SCTRL = 0xB0 : Baud=1200bps, Serial-In, Serial-Out, No-Interrupt.
Pins:
TX = TL = 6
RX = TR = 9
Make sure that you Ground Pin 8
I also pulled the TL and TR up to +5V using 10K Resistors.
I wrote a quick Test to send alternating Bytes over the Port to my Bus-Pirate v3 in UART-Mode set to automatic update for all Data received.
I need to take the MD's 5V down to something that my Teensy3 can use, so around 3.3V. I'll update you once I've sorted the Hardware out.
Cheers.
How about using Sweet Rammy?
http://68000.web.fc2.com/sram.html
This tool can perform reading and writing of SRAM,FRAM,EEPROM or FlashROM using a serial port.
Of course, reading of a commercial game can also be performed.
http://68000.web.fc2.com/sram.html
This tool can perform reading and writing of SRAM,FRAM,EEPROM or FlashROM using a serial port.
Of course, reading of a commercial game can also be performed.
The present correspondence procedure is transmitted and received by HEX data using terminal software.(HyperTerm,Teraterm,etc.)
It is necessary to change into BIN from HEX data.
Supplement: With the present version, Reading and Writing of EEPROM correspond only MODE1(7bitsWORD).
All the Megadrive games put on the market in Japan can be read.
The following games also correspond.
*Phantasy Star - Hukkokuban (SMS Game)
*Virtua Racing (SVP used)
*Super Street Fighter II - The New Challengers (Memory mapper used)
*Sonic and Knuckles & Sonic 2 (Include Extra data)
The writing of FlashROM of 29Fxxx series is made.
Creation of an original Flash cartridge can be performed.
I think that it is useful also to those who study Megadrive(Genesis) since Sweet Rammy can carry out operation of the address directly.
Please try.
It is necessary to change into BIN from HEX data.
Supplement: With the present version, Reading and Writing of EEPROM correspond only MODE1(7bitsWORD).
All the Megadrive games put on the market in Japan can be read.
The following games also correspond.
*Phantasy Star - Hukkokuban (SMS Game)
*Virtua Racing (SVP used)
*Super Street Fighter II - The New Challengers (Memory mapper used)
*Sonic and Knuckles & Sonic 2 (Include Extra data)
The writing of FlashROM of 29Fxxx series is made.
Creation of an original Flash cartridge can be performed.
I think that it is useful also to those who study Megadrive(Genesis) since Sweet Rammy can carry out operation of the address directly.
Please try.
-
- Very interested
- Posts: 484
- Joined: Sat Mar 05, 2011 11:11 pm
- Location: Berlin, Germany
konnichiwa MDer, ogenki desuka?
I had a look at your Schematic and your Idea for using the M68K's HALT Pin. Yes, this was used all the way back to the 6800 uCs for single-stepping. My only concern was that by removing the M68K that the MD's Custom ICs would fail although I had wished to try it out in the future - cheers.
I tried your SRAM.bin using my Mega Everdrive but I get a flickering Screen.
Machine: MD #1
PAL, German
It might be that your Program is built for NTSC Machines.
We are actually putting a Project together to give the MD Developer a Command-Monitor. If you'd like to have more Information then please Message me.
Cheers.
I had a look at your Schematic and your Idea for using the M68K's HALT Pin. Yes, this was used all the way back to the 6800 uCs for single-stepping. My only concern was that by removing the M68K that the MD's Custom ICs would fail although I had wished to try it out in the future - cheers.
I tried your SRAM.bin using my Mega Everdrive but I get a flickering Screen.
Machine: MD #1
PAL, German
It might be that your Program is built for NTSC Machines.
We are actually putting a Project together to give the MD Developer a Command-Monitor. If you'd like to have more Information then please Message me.
Cheers.