about 24bit floating point in MCU (9s08dz60)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

about 24bit floating point in MCU (9s08dz60)

536 Views
darwinying
Contributor I

We are developing an application in MCU (9s08dz60). We need a support package for 24bit floating-point operations, but that CW only supports 32bit and 64 bit. When we use Microchip mcu, we find the  ieee 24bit float support package and compiler. How can we get 24bit floating-point operations

0 Kudos
Reply
3 Replies

511 Views
vicentegomez
NXP TechSupport
NXP TechSupport

the only option in CodeWarrior are 32 and 64 bits

Regards

 

Vicente G

0 Kudos
Reply

502 Views
darwinying
Contributor I

Thank you for your reply!

CW only supports 32bit and 64bit floating point. Can you tell me if there are other development tools supporting nxp mcu that can support 24bit float operation?

0 Kudos
Reply

498 Views
kef2
Senior Contributor V

You didn't say what for do you need those 24bits FP numbers?

 

1) Is your old PIC project using them and you want to support old communications protocol? It is simple to convert. Since HC08 is big endian and PIC low endian, you need to change byte order, as well you need to drop least significant byte sending to PIC. 

"1.23" binary representation:

HC08 first byte ..last byte : 3f 9d 70 a4

PIC first byte .. last byte: 70 9d 3f, truncating a4, or 71 9d 3f rounding to nearest

 

2) Do you want just faster operation heavily sacrificing precision? Fixed point arithmetic can be even faster

0 Kudos
Reply