arash rezaee
Member level 5
- Joined
- Sep 10, 2009
- Messages
- 87
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,952
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: