User`s guide
Table Of Contents
- Getting Started
- Using the IQmath Library
- Block Reference
- Blocks — Alphabetical List
- Absolute IQN
- Arctangent IQN
- C24x ADC
- C24x CAN Receive
- C24x CAN Transmit
- C24x From Memory
- C24x PWM
- C24x To Memory
- C28x ADC
- C28x eCAN Receive
- C28x eCAN Transmit
- C28x From Memory
- C28x PWM
- C28x To Memory
- Division IQN
- F2812 eZdsp
- Float to IQN
- Fractional part IQN
- Fractional part IQN x int32
- Integer part IQN
- Integer part IQN x int32
- IQN to Float
- IQN x int32
- IQN x IQN
- IQN1 to IQN2
- IQN1 x IQN2
- LF2407 eZdsp
- Magnitude IQN
- Saturate IQN
- Square Root IQN
- Trig Fcn IQN
- Index

2 Using the IQmath Library
2-2
About the IQmath Library
The blocks in the C28x IQmath Library correspond to functions in the Texas
Instruments C28x IQmath Library assembly-code library, which target the TI
C2800 family of digital signal processors. You can use these blocks to run
simulations by building models in Simulink before generating code. Once you
develop your model, you can invoke Real-Time Workshop to generate
equivalent code that is optimized to run on a C2000 DSP. During code
generation, each IQmath Library block in your model is mapped to its
corresponding TI IQmath Library assembly-code routine to create
target-optimized code.
The IQmath Library blocks generally input and output fixed-point data types.
The block reference pages discuss the data types accepted and produced by
each block in the library. “Fixed-Point Numbers” on page 2-3 gives a brief
overview of using fixed-point data types in Simulink. For a thorough discussion
of this topic, including issues with scaling and precision when performing
fixed-point operations, refer to your Fixed-Point Blockset documentation.
You can use IQmath Library blocks with certain core Simulink blocks, as well
as with certain blocks from the Fixed-Point Blockset. To learn more about
creating models that include both IQmath Library blocks and blocks from other
blocksets, refer to “Building Models” on page 2-7.
Common Characteristics
The following characteristics are common to all IQmath Library blocks:
• Sample times are inherited from driving blocks.
• Blocks are single rate.
• Parameters are not tunable.
• All blocks support discrete sample times.
To learn more about characteristics particular to each block in the library, refer
to the “Block Reference” pages.