I would suggest you try to send data to your PC to a terminal software first (Hyperterm, MicroCode Serial communicator or whatever else).
Then from your PC to your PIC.
I you have good results, then move on VB. I had some bad experiments in the past on some computer on low baudrate.
High likely, you're using the internal OSC of your PIC? Don't forget at least the OSCCAL_1K define. Not a bad idea to use DEBUG/DEBUGIN as well. It perform better on some case.
Use current limiting resistor & the InvertedMode on the PIC side, and it should work on small distance between your PIC and the PC.
On VB side, I would suggest you to use ReadLine. To use it, you'll need to modify your PIC code to send a LF character (10) at the end.
Last edited by mister_e; - 2nd April 2009 at 14:49.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks