Texas Instruments Inc., May 2002
Signal Generator Library
Module user’s Guide
C28x Foundation Software
Texas Instruments Inc., May 2002
Texas Instruments Inc., May 2002
IMPORTANT NOTICE
Texas Instruments and its subsidiaries (TI) reserve the right to make changes to their products or
to discontinue any product or service without notice, and advise customers to obtain the latest
version of relevant information to verify, before placing orders, that information being relied on is
current and complete. All products are sold subject to the terms and conditions of sale supplied at
the time of order acknowledgement, including those pertaining to warranty, patent infringement,
and limitation of liability.
TI warrants performance of its semiconductor products to the specifications applicable at the time
of sale in accordance with TI’s standard warranty. Testing and other quality control techniques
are utilized to the extent TI deems necessary to support this warranty. Specific testing of all
parameters of each device is not necessarily performed, except those mandated by government
requirements.
Customers are responsible for their applications using TI components.
In order to minimize risks associated with the customer’s applications, adequate design and
operating safeguards must be provided by the customer to minimize inherent or procedural
hazards.
TI assumes no liability for applications assistance or customer product design. TI does not
warrant or represent that any license, either express or implied, is granted under any patent right,
copyright, mask work right, or other intellectual property right of TI covering or relating to any
combination, machine, or process in which such products or services might be or are used. TI’s
publication of information regarding any third party’s products or services does not constitute TI’s
approval, license, warranty or endorsement thereof.
Reproduction of information in TI data books or data sheets is permissible only if reproduction is
without alteration and is accompanied by all associated warranties, conditions, limitations and
notices. Representation or reproduction of this information with alteration voids all warranties
provided for an associated TI product or service, is an unfair and deceptive business practice,
and TI is not responsible or liable for any such use.
Resale of TI’s products or services with statements different from or beyond the parameters
stated by TI for that products or service voids all express and any implied warranties for the
associated TI product or service, is an unfair and deceptive business practice, and TI is not
responsible nor liable for any such use.
Also see: Standard Terms and Conditions of Sale for Semiconductor Products.
www.ti.com/sc/docs/stdterms.htm
Mailing Address:
Texas Instruments
Post Office Box 655303
Dallas, Texas 75265
Copyright 2002, Texas Instruments Incorporated
Texas Instruments Inc., May 2002
Trademarks
TMS320 is the trademark of Texas Instruments Incorporated.
All other trademark mentioned herein are property of their respective companies
Acronyms
xDAIS : eXpress DSP Algorithm Interface Standard
IALG : Algorithm interface defines a framework independent interface for the creation of
algorithm instance objects
STB : Software Test Bench
QMATH: Fixed Point Mathematical computation
CcA : C-Callable Assembly
FIR : Finite Impulse Response Filter
IIR : Infinite Impulse Response Filter
FFT : Fast Fourier Transform
Texas Instruments Inc., May 2002
C
C
C
o
o
o
n
n
n
t
t
t
e
e
e
n
n
n
t
t
t
s
s
s
1. Introduction……..............................................................................................................1
2. SIN Generator……...........................................................................................................1
2.1. Standard THD Sin generator .......................................................................................1
2.2. Low THD sin generator ...............................................................................................1
2.3. High precision sin generator ........................................................................................1
3. Signal Generator Modules……………..............................................................................5
3.1. SGENT_1: Single Channel SIN Generator (Table look-up)…….....................................5
3.2. SGENT_2: Dual Channel SIN Generator (Table look -up)…….....................................11
3.3. SGENT_3: 3φ SIN Generator (Table look-up)……......................................................17
3.4. SGENT_3D: Dual 3φ SIN Generator (Table look-up)…… ...........................................23
3.5. SGENTI_1: Single Channel SIN Generator (Table look-up and Linear Interpolation)… .29
3.6. SGENTI_2: Dual Channel SIN Generator (Table look-up and Linear Interpolation)……35
3.7. SGENTI_3: 3φ SIN Generator (Table look-up and Linear interpolation)…… .................41
3.8. SGENTI_3D: Dual 3φ SIN Generator (Table look -up and Linear Interpolation)…….......47
3.9. SGENHP_1: High Precision SIN Generator (Table look-up and Linear Interpolation)… 53
3.10. SGENHP_2: High Precision SIN Generator (Table look-up and Linear Interpolation) ..59
3.11. RMPGEN: Ramp Generator…… .............................................................................65
3.12. TZDLGEN: Trapezoidal generator ...........................................................................71
3.13. PROFILE: Profile generator… .................................................................................77