As a rider to atomski's thread, it should be remembered that EEPROM storage is a BYTE (8-bits) at a time. If you want to store your 10-but ADC value, you will have to do that as two bytes. EEPROM Storage is always in BYTES (8-bits). How you (as a human) relates to those eight bits by displaying or quoting them in BINARY, HEX or DECIMAL is irrelevant, the crux is there are still eight bits of Data.
Take for eample the Decimal number 65. In Hex it is $41, in Binary it is %01000001. If you print it to an LCD in RAW form it becomes the ASCII Character 'A'. As far as the PIC is concerned, it's just eight bits. How you want to see it is up to you. Remember everythings a number... even alphabetic characters are just numbers that are remapped for your (human) benefit.
Remember the cult TV series "The Prisoner"? "I am not a name but a number..." or something like that... *smiles* No, I'm not that old... I saw the reruns not the original series!




Bookmarks