pctprogrammer
Joined: 04 Aug 2004 Posts: 6
|
BCD Conversion |
Posted: Wed Aug 04, 2004 2:30 pm |
|
|
Couple questions. Using the CCP C programming language, what is the best way to convert from binary to a decimal value using BCD addition? Also, the software im using will not allow me to store a 16-bit (or larger) value to EEPROM. Is there a way? Also, does anyone have and hints on how to maximize EEPROM space when doing calculations and storage? All these are tied together because I am working on a program where I want to store data (8bit and/or 16 bit) then once I am done sampling, go back and recalculate my values and for this I need 0-9 digit values thus the BCD addition method. Also, some of the calculations I need to preform return a 'float' value, which cant be stored to EEPROM with the commands avaiable. Any hints/tips/suggestions welcomed.
Thanks. |
|