Frequently Asked Question
How to convert two 16-bit registers to one 32-bit floating point register
Last Updated 3 years ago
Some communication protocols in the Typhoon toolchain may not support 32-bit floating point registers. In those situations, you can make conversion blocks using signal processing components.
There are two ways to implement this conversion:
- Advanced C Function component approach:
- Advantages: simple code that is not spending much CPU resources
- Disadvantage: requires SIL Support Toolbox
- C Function component approach:
- Advantage: does not require any additional toolbox
- Disadvantage: more complex code
Both approaches can be found in the attachment.
Note: You are encouraged to try to make your own solution.