arash rezaee
Member level 5
how to read from eeprom and convert it to float
Hi every one
I am using ATXmega128A1 and the compiler is codevision. Does any one know how to convert 4byte to fload which I stored them into eeprom and I don`t know how can I convert them to float again.
this is the code i used to convert float to byte:
union
{
float KX1;
unsigned char bytevalue[4];
}variable;
Please help me.
Regards
Arash
Hi every one
I am using ATXmega128A1 and the compiler is codevision. Does any one know how to convert 4byte to fload which I stored them into eeprom and I don`t know how can I convert them to float again.
this is the code i used to convert float to byte:
union
{
float KX1;
unsigned char bytevalue[4];
}variable;
Please help me.
Regards
Arash
Last edited: