Problem with HSERIN


Closed Thread
Results 1 to 2 of 2

Hybrid View

  1. #1

    Exclamation Problem with HSERIN

    Hi, I have the following defines added from PICMUltiCalc:

    Code:
    DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
    DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1
    DEFINE HSER_SPBRG 64  ' 19200 Baud @ 20MHz, 0.16%
    DEFINE HSER_CLROERR 1 ' Clear overflow automatically
    I am receiving the following data: 'Home*'

    and I am trying to catch it in the following statement:
    Code:
    	HSERIN [STR Name\25\"*"]
    Then to check what is in Name (25 byte variable) I am doing :
    Code:
    HSEROUT ["Name=",STR Name,13,10]
    What I am getting out is this:
    Code:
    Name=Hom²åHom²åHom²åHom¥åHområ  ' Attempt 1
    Name=Hom:åHomZåHomUþHom8åHom¸ù
    Name=Hom(åHom¬ùHomZåHomLùHomZå
    Name=HomYåHomœùHom:åHomŒùHomˆù ' Attempt 5
    As you can see that it is not capturing the data properly, I also have to send 'Home*' like 5 times as it is not getting the data properly and it is filling the whole 25 byte array. Is there something wrong with the settings? Thanks
    ___________________
    WHY things get boring when they work just fine?

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: Problem with HSERIN

    Oscillator Error. Problem solved.
    Last edited by financecatalyst; - 24th June 2013 at 00:22. Reason: Error found
    ___________________
    WHY things get boring when they work just fine?

Similar Threads

  1. PIC HSERIN problem
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 20th July 2008, 11:08
  2. HSERIN problem
    By eggman in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 6th October 2007, 21:31
  3. 16F877A HSERIN problem
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th October 2006, 02:51
  4. HSERIN problem
    By s_syafiq81 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 1st January 2006, 16:19
  5. HSERIN problem
    By s_syafiq81 in forum Serial
    Replies: 2
    Last Post: - 1st January 2006, 11:05

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