??? 05/12/06 10:49 Read: times |
#116046 - I'd make it generic Responding to: ???'s previous message |
Oleg,
If you make your routine a generic multibyte write to eeprom, that would be more useful methinks. Apart from that, your code is 'on the money'. something like: void write_bytes_to_eeprom(char *ptr,char num_bytes); so to write a floating point number would be: write_bytes_to_eeprom((char *)&float,sizeof(float)); writing a string would be: write_bytes_to_eeprom(&string,strlen(string)); You would also have a corresponding read routine. |
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 |