Serial Port Pinout

Show us your projects you made with libXenon
Post Reply
User avatar
UNIX
Global Moderator
Global Moderator
Posts: 57
Joined: Fri Feb 25, 2011 10:40 am
Location: United States
Contact:

Serial Port Pinout

Post by UNIX » Sun Apr 10, 2011 9:13 am

I'm looking to assemble a serial port interface so that it is easier to debug my code. There is an article of Free60, but it isn't very in depth. Can anybody explain to me where the wires on the board should be connected to the serial port itself?

Thanks :)
Moderator, LibXenon programmer, Java programmer.

Need help with something? Just ask! Before making a new thread please use the search function :)

Be sure to join us in IRC!
EFNET/#libxenon

User avatar
tuxuser
Administrator
Administrator
Posts: 301
Joined: Sat Feb 19, 2011 4:53 pm
Location: Germany
Contact:

Re: Serial Port Pinout

Post by tuxuser » Sun Apr 10, 2011 11:29 am

Hi,

It depends on your serial converter.
If it needs an external power source (VCC) you connect the + line (3,3V) and GND to it.
If it has its own power supply, you dont connect it.

In any case you connect RX / TX to the according pins on your serial adapter. If you are unsure where these pins are, consult the datasheet.

Greetz
tux
I have no idea what I am doing but atleast I am trying

User avatar
UNIX
Global Moderator
Global Moderator
Posts: 57
Joined: Fri Feb 25, 2011 10:40 am
Location: United States
Contact:

Re: Serial Port Pinout

Post by UNIX » Sun Apr 10, 2011 11:20 pm

Thanks Tux,

Just looked at the serial port I will be connecting to and I should be fine just using the RxD and TxD pins. I was just a little unsure about the 3.3v and GND pins and where they should go. I'll get my DB9 connector and serial cable tomorrow and I will port results of the installation :)
Moderator, LibXenon programmer, Java programmer.

Need help with something? Just ask! Before making a new thread please use the search function :)

Be sure to join us in IRC!
EFNET/#libxenon

Gene

Re: Serial Port Pinout

Post by Gene » Mon Apr 11, 2011 9:55 pm

Please do notice that you need TTL adapter in order to use that serial port of 360.
Without that you will fry either one, COM or 360's serial.

Here is DIY version of the adapter if you dont want to buy pre-made adapter from e.g. ebay:
http://picprojects.org.uk/projects/simpleSIO/ssio.htm

User avatar
UNIX
Global Moderator
Global Moderator
Posts: 57
Joined: Fri Feb 25, 2011 10:40 am
Location: United States
Contact:

Re: Serial Port Pinout

Post by UNIX » Tue Apr 12, 2011 12:20 am

Even though my PC serial port is self powered? All I plan on using is a standard female serial cable cut in half and connecting the 3 needed wires to the board.. Is it absolutely necessary to get one of these?
Moderator, LibXenon programmer, Java programmer.

Need help with something? Just ask! Before making a new thread please use the search function :)

Be sure to join us in IRC!
EFNET/#libxenon

Gene

Re: Serial Port Pinout

Post by Gene » Tue Apr 12, 2011 6:38 am

Yes it is. PC serial port (RS232) uses -12V/+12V when the Xbox's serial uses TTL logic levels (0V/3.3V).

I've used similar to this one with my routers:
http://cgi.ebay.com/New-MAX232-RS232-TT ... 3365237e2a

User avatar
UNIX
Global Moderator
Global Moderator
Posts: 57
Joined: Fri Feb 25, 2011 10:40 am
Location: United States
Contact:

Re: Serial Port Pinout

Post by UNIX » Tue Apr 12, 2011 5:06 pm

Alright, well thanks for informing me before I fried either my JTAG or my PC haha! I'll see if I can pick one of those up :)
Moderator, LibXenon programmer, Java programmer.

Need help with something? Just ask! Before making a new thread please use the search function :)

Be sure to join us in IRC!
EFNET/#libxenon

ddxcb
User
User
Posts: 7
Joined: Wed Mar 16, 2011 10:38 pm

Re: Serial Port Pinout

Post by ddxcb » Thu Apr 14, 2011 9:08 pm

Ive been using one of these

http://cgi.ebay.com/USB-RS232-TTL-Modul ... 41527f32c9

cheap and work great.

User avatar
UNIX
Global Moderator
Global Moderator
Posts: 57
Joined: Fri Feb 25, 2011 10:40 am
Location: United States
Contact:

Re: Serial Port Pinout

Post by UNIX » Fri Apr 15, 2011 3:08 am

I ended up going with this one:
http://cgi.ebay.com/RS232-Serial-Port-T ... 4687676565

A few dollars more expensive, but the ones you guys referred me to are in China, take forever to ship to here :P

RxT, DxT, and 3.3/5v input. Can't wait to start debugging proper. Thanks everyone for item suggestions and clarification!
Moderator, LibXenon programmer, Java programmer.

Need help with something? Just ask! Before making a new thread please use the search function :)

Be sure to join us in IRC!
EFNET/#libxenon

User avatar
UNIX
Global Moderator
Global Moderator
Posts: 57
Joined: Fri Feb 25, 2011 10:40 am
Location: United States
Contact:

Re: Serial Port Pinout

Post by UNIX » Sat Apr 16, 2011 11:22 am

One more question, what program (Linux) do you guys recommend for capturing the debug strings from the console? Is Minicom ok?

Thanks :)
Moderator, LibXenon programmer, Java programmer.

Need help with something? Just ask! Before making a new thread please use the search function :)

Be sure to join us in IRC!
EFNET/#libxenon

User avatar
tuxuser
Administrator
Administrator
Posts: 301
Joined: Sat Feb 19, 2011 4:53 pm
Location: Germany
Contact:

Re: Serial Port Pinout

Post by tuxuser » Sat Apr 16, 2011 12:16 pm

Yes, minicom is great for that :)
I have no idea what I am doing but atleast I am trying

User avatar
UNIX
Global Moderator
Global Moderator
Posts: 57
Joined: Fri Feb 25, 2011 10:40 am
Location: United States
Contact:

Re: Serial Port Pinout

Post by UNIX » Sat Apr 16, 2011 5:19 pm

Cool, just wanted to make sure. Thanks Tux and everyone for all your help!
Moderator, LibXenon programmer, Java programmer.

Need help with something? Just ask! Before making a new thread please use the search function :)

Be sure to join us in IRC!
EFNET/#libxenon

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests