??? 05/12/06 10:16 Read: times |
#116042 - Partly wrong Responding to: ???'s previous message |
Mahmood Elnasser said:
now in order to store the floating point number you have to convert it to integer format then store this integer format. No, that's not true. You just need to store each and every byte of the floating point number into the EEPROM, and ensure that you read them all back and in the correct order. Probably the easiest way is to have "write-to-eeprom" function that takes 3 arguments: 1. a pointer to the start of the data to write; 2. the amount of data to write; 3. the EEPROM location at which to start writing. And a similar "read-from-eeprom" function. Hint: You don't even need to know anything about Keil's internal representation of floating point numbers - 'C' has a standard sizeof operator... |
Topic | Author | Date |
writing into internal EEPROM off AT89S82 | 01/01/70 00:00 | |
Writing to internal eeprom | 01/01/70 00:00 | |
Partly wrong | 01/01/70 00:00 | |
thanks Andy | 01/01/70 00:00 | |
same for assembler | 01/01/70 00:00 | |
IEEE 754 standard | 01/01/70 00:00 | |
Missing the point | 01/01/70 00:00 | |
same for assembler Not | 01/01/70 00:00 | |
Context | 01/01/70 00:00 | |
"Keil" is not a swear word! | 01/01/70 00:00 | |
what is about | 01/01/70 00:00 | |
I'd make it generic | 01/01/70 00:00 | |
There's an echo in here | 01/01/70 00:00 | |
General-purpose pointer | 01/01/70 00:00 | |
indeed | 01/01/70 00:00 | |
Oleg | 01/01/70 00:00 | |
thanks but still | 01/01/70 00:00 | |
still nobody knows what you want | 01/01/70 00:00 | |
Back to basics | 01/01/70 00:00 | |
AT89S8252 Primer![]() | 01/01/70 00:00 |