1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

HELP:Convert 24bit from ADC to decimal

Discussion in 'AVR' started by abicash, Jul 4, 2015.

  1. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,157
    Likes:
    907
    Location:
    Rochdale UK
    No! John.... The link was directed to Les ( I put his link in at the top )

    I just wanted to be clear on one thing..... Hexadecimal, Decimal or binary all count from 0 to max integer size... They all represent a whole number..

    When you display a whole number, only then do you need to convert.... ASCII is the norm... Some convert to BCD and then to ASCII, I prefer to divide it out then convert to ASCII..... ASCII is the non decimal...

    Take the RTC... They store a whole number in BCD format, purely for ease of display via a BCD 7seg chip.. But if you want to display via the ASCII format you nee to return it to a whole number and visa-versa...
     

Share This Page