PDA

View Full Version : HSEROUT Problem



Keith
- 24th June 2005, 02:53
I hve a strange problem using a Pic 16F88 and HSEROUT. The problem seems to be that when I sent a string of data thru HSEROUT (example: "AAAAA") that the very first sent it works great but from then on it seem to change the string ( on the receiving side a PC) to "PPPPP". I have tried all baud rates from 2400 to 38400 and it happen the same on all of them. I've striped by code down to just the HSEROUT and some pauses/sleep then back to the loop to sent again. I thought it might be the sleep, but I removed it and it didn't fix the problem. Any though???? Should I use serout maybe?? Any help would be great.

Thanks...

mister_e
- 24th June 2005, 03:32
If you still run V2.45 i hope you did the update
http://www.melabs.com/support/patches.htm

If not, Post your whole code and crystal speed. I did a buch of stuff with F88 and HSEROUT without problem.

There's absolutely no need to use SEROUT or else. Too much code ungry and poor internal PIC ressource use wich is a REALLY bad practice.

Keith
- 25th June 2005, 15:09
Thanks for the reply... I added some timing, Pause 10, before and after transmission and it has helped, but still see the problem once in a while, which means I still have the problem. One thing I didn't mention is that I am using an RF link (going from the Pic to a Linx usb chip connected to my PC). It has worked consistenly on a Laptop, but I connected to a desktop PC and it started having problems. I had to develop my own transmit protocal since I can't use or don't want to implement a transceiver solution. Since I went to the desktop I suspect it's a timing issue on the receiving end thru the usb chip to the PC. Has anyone implemented a solution like this???

Thanks again....