HSERIN HSEROUT 9BIT & PARITY (Output is Losing a bit!)


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: HSERIN HSEROUT 9BIT & PARITY (Output is Losing a bit!)

    Yeah, like tumbleweed says, it does seem to be ODD parity, not EVEN.

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: HSERIN HSEROUT 9BIT & PARITY (Output is Losing a bit!)

    I think you are both right. Thanks a lot.
    I had tried lots of combos!!! But missed odd parity...

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: HSERIN HSEROUT 9BIT & PARITY (Output is Losing a bit!)

    Attached is another Saelea logic data file in which I am struggling to work out the baud rate and parity etc.
    It's from a similar device to my earlier posts in this thread so logically you would think format etc would be similar.

    The shortest pulse/bit is about 19.30us so that equates to about 51813bps

    But that doesn't work in the analyser unless I am missing something.

    Only 55000 8, E,1 seems to decode without errors??
    But I'm not convinced that is correct.

    If I then program my PIC with that baud rate etc it returns garbage or misses the data entirely.
    I've even tried using osctune to shift the PIC baud rate up and down but no joy yet.

    I'm tempted to try autobaud but that looks pretty tricky from the PIC16F886 datasheet.

    What do members think the data rate/parity is of the attached file?
    Attached Files Attached Files

  4. #4
    Join Date
    Aug 2011
    Posts
    455


    Did you find this post helpful? Yes | No

    Default Re: HSERIN HSEROUT 9BIT & PARITY (Output is Losing a bit!)

    48000, 8o1 seems to work

  5. #5


    Did you find this post helpful? Yes | No

    Default Re: HSERIN HSEROUT 9BIT & PARITY (Output is Losing a bit!)

    That gives loads of errors for me..
    Name:  Logic1.jpg
Views: 884
Size:  87.7 KB

  6. #6


    Did you find this post helpful? Yes | No

    Default Re: HSERIN HSEROUT 9BIT & PARITY (Output is Losing a bit!)

    This seems to work??

    Name:  logic2.jpg
Views: 867
Size:  98.9 KB

  7. #7
    Join Date
    Aug 2011
    Posts
    455


    Did you find this post helpful? Yes | No

    Default Re: HSERIN HSEROUT 9BIT & PARITY (Output is Losing a bit!)

    Oops, I grabbed the wrong file. Sorry!

    What you have there seems to work... 48000 E81 (but the timing is REALLY tight for 48000)

    Just an fyi - when you try these don't pick '9-bit + parity' modes, at least not to start. It's usually either '8 data + parity' (if there is a parity) or '9 data w/no parity'.
    Most UARTS won't do 9 data bits + a parity bit
    Last edited by tumbleweed; - 5th February 2023 at 16:49.

Similar Threads

  1. Replies: 8
    Last Post: - 11th July 2011, 20:20
  2. Loading a BIT array, losing my mind!
    By PlantBob in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th January 2011, 13:26
  3. Hserin & Hserout - Trying to blink an LED
    By Megahertz in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 24th May 2010, 12:25
  4. Bit/Byte array for Hserin/Hserout
    By mrx23 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 1st September 2006, 23:07
  5. 8 data and parity using HSERIN, HSEROUT
    By Smity42 in forum Serial
    Replies: 2
    Last Post: - 3rd April 2006, 01:45

Members who have read this thread : 2

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