Tech Support > Computer Hardware > Microprocessors > 2 Byte (16Bit) Mini-Float
2 Byte (16Bit) Mini-Float
Posted by Anbeyon on January 10th, 2008


Hi

I am hoping someone might be able to help point me in the right
direction.

I have an embeeded application running in a PIC in which is sending
sensor data over a wireless network. We want to keep the number of
bytes in each packet sent to an absolute minimum.

Some of the values we want to send back and forth are Floats which
takes 4 bytes. We'd like represent some of the values as 2 Byte mini
floats.

Has anyone out there ever implemented standard 4 byte C float
conversion to 2 byte minifloats and back ?

If anyone has any info or links that can send me I'd really appreciate
it.

Thanks in advance


Anbeyon.