Module Topics
8 - 2 C2000 Microcontroller Workshop - Numerical Concepts
Module Topics
Numerical Concepts ...................................................................................................................................8-1
Module Topics ..........................................................................................................................................8-2
Numbering System Basics ........................................................................................................................8-3
Binary Numbers ...................................................................................................................................8-3
Two's Complement Numbers ..............................................................................................................8-3
Integer Basics ......................................................................................................................................8-4
Sign Extension Mode ...........................................................................................................................8-5
Binary Multiplication ...............................................................................................................................8-6
Binary Fractions ......................................................................................................................................8-8
Representing Fractions in Binary ........................................................................................................8-8
Fraction Basics ....................................................................................................................................8-8
Multiplying Binary Fractions ..............................................................................................................8-9
Fraction Coding .....................................................................................................................................8-11
Fractional vs. Integer Representation ....................................................................................................8-12
Floating-Point ........................................................................................................................................8-13
IQmath ...................................................................................................................................................8-16
IQ Fractional Representation .............................................................................................................8-16
Traditional “Q” Math Approach ........................................................................................................8-17
IQmath Approach ..............................................................................................................................8-19
IQmath Library ......................................................................................................................................8-24
Converting ADC Results into IQ Format ...............................................................................................8-26
AC Induction Motor Example ................................................................................................................8-28
IQmath Summary ...................................................................................................................................8-34
Lab 8: IQmath FIR Filter.......................................................................................................................8-35