SERIN confusion on receiving a string of characters.


Closed Thread
Results 1 to 23 of 23

Hybrid View

  1. #1
    Join Date
    Feb 2013
    Posts
    1,132


    Did you find this post helpful? Yes | No

    Default Re: SERIN confusion on receiving a string of characters.

    Tried changing that bit, the result is 18516.
    Now it does not work at all....

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,139


    Did you find this post helpful? Yes | No

    Default Re: SERIN confusion on receiving a string of characters.

    Define speed, parity, polarity.

    Ioannis

  3. #3
    Join Date
    Aug 2011
    Posts
    455


    Did you find this post helpful? Yes | No

    Default Re: SERIN confusion on receiving a string of characters.

    Quote Originally Posted by CuriousOne View Post
    Tried changing that bit, the result is 18516.
    Now it does not work at all....
    Not sure what you "flipped", but 18516 = $4854

    You had 16468 = $4054.

    bit 14 = 16384 = $4000, so flipping bit 14 should give you
    $4054 - $4000 = $0054, which is 84 dec

  4. #4
    Join Date
    Feb 2013
    Posts
    1,132


    Did you find this post helpful? Yes | No

    Default Re: SERIN confusion on receiving a string of characters.

    Seems like I've flipped bit #12, not 14
    Tried your solution, it works fine, thanks!

  5. #5
    Join Date
    Feb 2013
    Posts
    1,132


    Did you find this post helpful? Yes | No

    Default Re: SERIN confusion on receiving a string of characters.

    Very interesting issue, this works fine with CH340 USB to serial bridge, but does not work that well with HT42B534 USB to serial bridge - characters are received only seldomly, with long delay. This can be hardware issue or?

Similar Threads

  1. PLz Help! Serin and Serout Confusion
    By noor31 in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 16th June 2014, 19:51
  2. String of characters(array) to decimal value
    By tacbanon in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 20th June 2012, 14:30
  3. Problem receiving string
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th October 2009, 07:24
  4. Receiving Different String lengths
    By Jannie in forum Serial
    Replies: 5
    Last Post: - 26th January 2009, 05:00
  5. USART Stops Receiving Characters
    By breesy in forum Serial
    Replies: 7
    Last Post: - 26th November 2006, 03:50

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