+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Member level 5
    Points: 868, Level: 6
    azadfalah's Avatar
    Join Date
    Aug 2016
    Posts
    90
    Helped
    0 / 0
    Points
    868
    Level
    6

    UART error detecting in micro with low resources

    Hello friends,

    I am looking for a serial error detecting method With low error rate for micro with low resources .

    Atmega8 8mhz

    Is the checksum reliable?
    I can't use CRC

    Thanks .

    •   AltAdvertisment

        
       

  2. #2
    Super Moderator
    Points: 76,181, Level: 67
    Achievements:
    7 years registered
    Awards:
    2nd Helpful Member
    betwixt's Avatar
    Join Date
    Jul 2009
    Location
    Aberdyfi, West Wales, UK
    Posts
    12,457
    Helped
    4151 / 4151
    Points
    76,181
    Level
    67

    Re: UART error detecting in micro with low resources

    Checksums are as reliable as there are combinations of bits in them. The real answer depends on what the serial data contains and whether you can afford to add any correction to it. CRC isn't difficult and is more reliable than a simple checksum.

    Brian.
    PLEASE - no friends requests or private emails, I simply don't have time to reply to them all.
    It's better to share your questions and answers on Edaboard so we can all benefit from each others experiences.


    1 members found this post helpful.

    •   AltAdvertisment

        
       

  3. #3
    Super Moderator
    Points: 250,799, Level: 100
    Awards:
    1st Helpful Member

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    43,665
    Helped
    13281 / 13281
    Points
    250,799
    Level
    100

    Re: UART error detecting in micro with low resources

    If you have a high error rate and not randomly distributed errors, e.g. errors associated with specific data words, crc is better. For low errors rates, the performance is similar.


    1 members found this post helpful.

    •   AltAdvertisment

        
       

  4. #4
    Member level 1
    Points: 478, Level: 4

    Join Date
    Jun 2017
    Location
    near the sea
    Posts
    34
    Helped
    6 / 6
    Points
    478
    Level
    4

    Re: UART error detecting in micro with low resources

    From your description it sounds like you are in control of whatever means you choose (the protocol) in which case I suggest you use the simple expedient of transmitting each byte twice and the receiver comparing them, ignoring those that don't match.

    I use this in lots of low power simple communications with simple micro's, it is neither memory nor MIPS hungry :)


    1 members found this post helpful.

--[[ ]]--