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:

  1. Advanced C Function component approach:
    1. Advantages: simple code that is not spending much CPU resources
    2. Disadvantage: requires SIL Support Toolbox
  2. C Function component approach:
    1. Advantage: does not require any additional toolbox
    2. Disadvantage: more complex code

Both approaches can be found in the attachment.

Note: You are encouraged to try to make your own solution.

Please Wait!

Please wait... it will take a second!