Maybe this will help.
http://www.melabs.com/resources/samples/pbp/usart.bas
Maybe this will help.
http://www.melabs.com/resources/samples/pbp/usart.bas
Dave
Always wear safety glasses while programming.
I copy and pasted the code you provided me but had no luck with it...
Morris Beasley
Manufacturing Test Technician
B.S. Industrial Technology (2007)
For more information on our robotics, please visit:
http://www.ish-electronics.webs.com
Can you post your schematic and/or a picture of your setup. I think it is down to a hardware problem now.
Caps on the 232?
Cable is straight through?
Usb to serial converter?
Real serial port?
Port on PC is known to be good?
Hold one hand in the air while touching you big toe?
Could be anything now.
Dave
Always wear safety glasses while programming.
Well... you'd have to give me a while to get a schematic drawn up. There are 4 caps on the 232. The cable is a regular serial cable, male on one end female on the other. I don't have a USB to serial converter although using that while trying to debug does work. It is a serial port on the back of my computer so I'm assuming that it is a real port. This is first time I've really tried using the serial port so as far as knowing whether its good or not I don't know, nor do I know how to check. Device manager does say that device is working properly with no problems. Lol, and not sure I want to try that one or not. Probably fall flat on my face.![]()
Morris Beasley
Manufacturing Test Technician
B.S. Industrial Technology (2007)
For more information on our robotics, please visit:
http://www.ish-electronics.webs.com
Make sure the cable is not for a modem. Pin 2 on one end goes to Pin 2 on the other, the same for pin 3.
Test PC serial port by jumping PINs 2 and 3 with a 10K and use a terminal to see if you get an echo.
Dave
Always wear safety glasses while programming.
Morris Beasley
Manufacturing Test Technician
B.S. Industrial Technology (2007)
For more information on our robotics, please visit:
http://www.ish-electronics.webs.com
I am attaching a bitmap of my schematic for my ICD and ICP. I am using the ICD for the serial communication.
Morris Beasley
Manufacturing Test Technician
B.S. Industrial Technology (2007)
For more information on our robotics, please visit:
http://www.ish-electronics.webs.com
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Yes I tested it... I successfully sent a message through my cable and echoed it back by shorting pin 2 to pin 3.... any other ideas?
Added:
Is there anyway to tell if my cable is crossed as you suggest?... I know I got the echo by shorting pin 2 to pin 3 but I would still get the echo if the pins were crossed...
Resolved:
Thank you guys for your help. After testing my cable for continuity I realized that it is crossed. Going to get a new cable and hopefully that fixes the problem.
Last edited by mcbeasleyjr; - 27th May 2009 at 21:51. Reason: another question...
Morris Beasley
Manufacturing Test Technician
B.S. Industrial Technology (2007)
For more information on our robotics, please visit:
http://www.ish-electronics.webs.com
Bookmarks