HSEROUT Problem


Closed Thread
Results 1 to 3 of 3

Thread: HSEROUT Problem

  1. #1
    Keith's Avatar
    Keith Guest

    Default HSEROUT Problem

    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...

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Talking

    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.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Keith's Avatar
    Keith Guest


    Did you find this post helpful? Yes | No

    Default Hserout problem

    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....

Similar Threads

  1. I2C Slave with a PIC
    By ralfmayr in forum mel PIC BASIC Pro
    Replies: 129
    Last Post: - 21st August 2016, 17:44
  2. HSEROUT and Commas, What? Help Me Understand
    By altech6983 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 20th July 2009, 19:12
  3. Is HSEROUT corrupting bit 7 ?????
    By Robert Wells in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd October 2008, 16:26
  4. HSEROUT problem at 20MHz
    By manxman in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 27th May 2006, 22:55
  5. Advantages of HSerout over Serout2 and a problem
    By rpstroj in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th August 2004, 22:19

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts