Do you have a MAX232 or similar between the PIC and PC?
If you do not have one, try SERIN2/SEROUT2 using inverted mode.
Do you have a MAX232 or similar between the PIC and PC?
If you do not have one, try SERIN2/SEROUT2 using inverted mode.
Dave
Always wear safety glasses while programming.
Yes I have a MAX232 on the ICD I've built... it should also work as my serial communicator for this purpose as well... This is the number on the chip:
69CT01M
MAX232IN
TTL to CMOS converter...
any ideas?
Morris Beasley
Manufacturing Test Technician
B.S. Industrial Technology (2007)
For more information on our robotics, please visit:
http://www.ish-electronics.webs.com
Serial data to a PC should always be 8 bits.
DEFINE HSER_BITS 9 ; won't work
<br>
DT
Missed this the first time I looked at it.
DEFINE HSER_BITS 9
Scratch the above line
Dave
Always wear safety glasses while programming.
I have scratched the line as you suggested... however, it still isn't working. If I try to transmit the example in my code, which is A369621... I don't receive anything back at all. Also, if I don't transmit anything and the USART times out, I receive this: ¬ºê*ë... any other ideas?
Do I have to set PORTC as this:????
TRISC=%11000000
I'm a little confused on the correct settings to get the USART to function properly.
Last edited by mcbeasleyjr; - 26th May 2009 at 23:25. 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
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.
Bookmarks