Update repo
This commit is contained in:
1 parent
749dab5721
commit
ce65a0f59a
14950 files changed
+4408250
-1
No files matched your search
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?ccsproject version="1.0"?>
|
||||
<projectOptions>
|
||||
<deviceFamily value="C2000"/>
|
||||
<isTargetManual value="false"/>
|
||||
</projectOptions>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?eclipse-cdt version="2.0"?>
|
||||
|
||||
<cdtproject id="org.eclipse.cdt.managedbuilder.core.managedMake">
|
||||
<extension id="org.eclipse.cdt.managedbuilder.core.ManagedBuildManager" point="org.eclipse.cdt.core.ScannerInfoProvider"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<data>
|
||||
<item id="org.eclipse.cdt.core.pathentry">
|
||||
<pathentry kind="src" path=""/>
|
||||
<pathentry kind="out" path=""/>
|
||||
<pathentry kind="con" path="org.eclipse.cdt.managedbuilder.MANAGED_CONTAINER"/>
|
||||
<pathentry kind="con" path="com.ti.ccstudio.managedbuild.core.CCS_CONTAINER"/>
|
||||
</item>
|
||||
</data>
|
||||
</cdtproject>
|
||||
@@ -0,0 +1,198 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1546742190">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1546742190" moduleId="org.eclipse.cdt.core.settings" name="RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_TO_FIXEDPTLIB" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/>
|
||||
<stringMacro name="INSTALLROOT_2833X" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../../../device_support/f2833x"/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="2833x_FixedPoint_BRevAcq" buildProperties="" description="RAM build configuration" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1546742190" name="RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1546742190.1114221111" name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain.1393210540" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.696925687">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.612416561" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS320C28XX.TMS320F28335"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=28053_RAM_lnk.cmd"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts2800_ml.lib"/>
|
||||
<listOptionValue builtIn="false" value="IS_ELF=false"/>
|
||||
<listOptionValue builtIn="false" value="PROJECT_KIND=com.ti.ccstudio.managedbuild.core.ProjectKind_Executable"/>
|
||||
<listOptionValue builtIn="false" value="IS_ASSEMBLY_ONLY=false"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.247799928" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="6.2.5" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug.1599170688" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug.1693789045" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug.11731547" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL.162652848" name="Use large memory model (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY.1845263427" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.1809576641" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT.387870712" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT._none" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH.12102800309" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/common/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/examples/common""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.857796556" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE.254006137" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="RAM"/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING.917948442" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS.205633857" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS.1661256243" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS.213166609" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS.1884463864" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.696925687" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE.1799501133" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE" value="0x300" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE.1513788521" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE" useByScannerDiscovery="false" value="2833x_FixedPoint_BRevAcq.out" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE.1982807925" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE" value=""2833x_FixedPoint_BRevAcq.map"" valueType="string"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles.536046052" name="[Legacy] Generated Linker Command files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""$(GEN_CMDS_QUOTED)""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY.724284629" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""c28x_fixedpoint_dsp_library.lib""/>
|
||||
<listOptionValue builtIn="false" value=""rts2800_ml.lib""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH.819277013" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE.1940006333" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE" value="RAM" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO.1049225664" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO" value=""2833x_FixedPoint_BRevAcq_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS.497140885" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS.149626217" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS.1871915083" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
<sourceEntries>
|
||||
<entry excluding="28335_RAM_lnk.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
|
||||
</sourceEntries>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1546742190.482802862">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1546742190.482802862" moduleId="org.eclipse.cdt.core.settings" name="_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_TO_FIXEDPTLIB" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/>
|
||||
<stringMacro name="INSTALLROOT_2833X" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../../../device_support/f2833x"/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="2833x_FixedPoint_BRevAcq" buildProperties="" description="_FLASH build configuration" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1546742190.482802862" name="_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1546742190.482802862." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain.1906635558" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.226034130">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1496179077" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS320C28XX.TMS320F28335"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=28335_RAM_lnk.cmd"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts2800_ml.lib"/>
|
||||
<listOptionValue builtIn="false" value="IS_ELF=false"/>
|
||||
<listOptionValue builtIn="false" value="PROJECT_KIND=com.ti.ccstudio.managedbuild.core.ProjectKind_Executable"/>
|
||||
<listOptionValue builtIn="false" value="IS_ASSEMBLY_ONLY=false"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.107724384" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="6.2.5" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug.1317913077" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug.478166309" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug.141060882" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL.599639394" name="Use large memory model (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY.357092236" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.1937900694" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT.612133780" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.137086570" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH.965997748" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/common/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/examples/common""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING.1025311369" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE.816545328" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS.397164513" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS.1602875787" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS.2090679446" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS.1712689329" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.1077628315" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE.1896786367" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE" value="0x300" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE.1959825340" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE" useByScannerDiscovery="false" value="2833x_FixedPoint_BRevAcq.out" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE.1545929158" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE" value=""2833x_FixedPoint_BRevAcq.map"" valueType="string"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles.1038487383" name="[Deprecated] Generated Linker Command files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""$(GEN_CMDS_QUOTED)""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY.829415056" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value=""c28x_fixedpoint_dsp_library.lib""/>
|
||||
<listOptionValue builtIn="false" value=""rts2800_ml.lib""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH.1580038511" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO.1456033641" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO" value=""2833x_FixedPoint_BRevAcq_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE.868795774" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE" value="_FLASH" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS.276872167" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS.113654680" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS.1693169646" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
<sourceEntries>
|
||||
<entry excluding="28053_RAM_lnk.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
|
||||
</sourceEntries>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="2833x_FixedPoint_BRevAcq.com.ti.ccstudio.buildDefinitions.C2000.ProjectType.830097055" name="C2000" projectType="com.ti.ccstudio.buildDefinitions.C2000.ProjectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
||||
<project-mappings>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
</project-mappings>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
|
||||
</cproject>
|
||||
@@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>2833x_FixedPoint_BRevAcq</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>DSP2833x_ADC_cal.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_ADC_cal.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_Adc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_Adc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_CodeStartBranch.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_CodeStartBranch.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_CpuTimers.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_CpuTimers.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_DBGIER.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_DBGIER.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_DefaultIsr.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_DefaultIsr.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_GlobalVariableDefs.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/headers/source/DSP2833x_GlobalVariableDefs.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_Headers_nonBIOS.cmd</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/headers/cmd/DSP2833x_Headers_nonBIOS.cmd</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_PieCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_PieCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_PieVect.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_PieVect.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_SysCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_SysCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_usDelay.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_usDelay.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F28335_FIXPT_FFT_lnk.cmd</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_TO_FIXEDPTLIB/cmd/F28335_FIXPT_FFT_lnk.cmd</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>examples_setup.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_TO_FIXEDPTLIB/examples/common/examples_setup.c</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>INSTALLROOT_2833X</name>
|
||||
<value>$%7BPARENT-6-PROJECT_LOC%7D/device_support/f2833x</value>
|
||||
</variable>
|
||||
<variable>
|
||||
<name>INSTALLROOT_TO_FIXEDPTLIB</name>
|
||||
<value>$%7BPARENT-2-PROJECT_LOC%7D</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
BIN
Binary file not shown.
+7
@@ -0,0 +1,7 @@
|
||||
Add watch window variables
|
||||
expRemoveAll()
|
||||
expAdd("ipcbsrc", getNatural())
|
||||
expAdd("ipcb", getNatural())
|
||||
expAdd("acq", getNatural())
|
||||
|
||||
openAnalysisView('Dual Time','C:/Users/a0272561/Repositories/cs30_controlsuite/libs/dsp/FixedPointLib/version/examples/2833x_FixedPoint_BRevAcq/ACQ_IN_OUT.graphProp')
|
||||
+125
@@ -0,0 +1,125 @@
|
||||
% // TI File $Revision: /main/3 $
|
||||
% // Checkin $Date: November 1, 2010 13:05:07 $
|
||||
% // =====================================================================================
|
||||
% // This software is licensed for use with Texas Instruments C28x
|
||||
% // family DSCs. This license was provided to you prior to installing
|
||||
% // the software. You may review this license by consulting a copy of
|
||||
% // the agreement in the doc directory of this library.
|
||||
% //======================================================================================
|
||||
% //
|
||||
% // FILE: FixedRFFBRevAcq.m
|
||||
% //
|
||||
% // TITLE: DSP2833x Device Fixed Point Real Input Point by Point Bit
|
||||
% // Reversed Test Program.
|
||||
% //
|
||||
% //
|
||||
% // ASSUMPTIONS:
|
||||
% //
|
||||
% // This matlab code is reference code for debugging FixedPoint DSP library
|
||||
% // module BRevAcq and example project 2833x_FixedPoint_BrevAcq.
|
||||
% //
|
||||
% //
|
||||
% //
|
||||
% // Watch Variables:
|
||||
% //
|
||||
% // x_raw_sig Input signal (float)
|
||||
% // Rx,Ix Bit-revesed real and imaginary part of signal
|
||||
% // (Q31)
|
||||
% //
|
||||
% //######################################################################################
|
||||
% //
|
||||
%// C2000Ware v5.04.00.00
|
||||
%//Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
|
||||
%//
|
||||
%// Redistribution and use in source and binary forms, with or without
|
||||
%// modification, are permitted provided that the following conditions
|
||||
%// are met:
|
||||
%//
|
||||
%// Redistributions of source code must retain the above copyright
|
||||
%// notice, this list of conditions and the following disclaimer.
|
||||
%//
|
||||
%// Redistributions in binary form must reproduce the above copyright
|
||||
%// notice, this list of conditions and the following disclaimer in the
|
||||
%// documentation and/or other materials provided with the
|
||||
%// distribution.
|
||||
%//
|
||||
%// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
%// its contributors may be used to endorse or promote products derived
|
||||
%// from this software without specific prior written permission.
|
||||
%//
|
||||
%// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
%// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
%// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
%// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
%// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
%// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
%// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
%// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
%// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
%// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
%// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
%//$
|
||||
% //######################################################################################
|
||||
|
||||
clear all
|
||||
close all
|
||||
|
||||
disp('==============================================================');
|
||||
disp('input signal is stored as Q31 format');
|
||||
disp('==============================================================');
|
||||
disp('this is Matlab version of C28x Fixed Point RFFT code');
|
||||
disp('The result is stored in array X');
|
||||
disp('The signal is stored in array x_raw_sig');
|
||||
disp('==============================================================');
|
||||
|
||||
RadStep = 0.1963495408494;
|
||||
|
||||
stages=input('Please enter stages (>=3) =');
|
||||
N=2^stages;
|
||||
halfSize=N-1;
|
||||
|
||||
Rad=[0:RadStep:(halfSize)*RadStep];
|
||||
|
||||
even_idx=0:halfSize;
|
||||
odd_idx=even_idx+1;
|
||||
|
||||
CFFTinBuf1=zeros(1,N);
|
||||
|
||||
Rx=sin(Rad)+cos(Rad*2.3567);
|
||||
Ix=0*(cos(Rad*8.345) + sin(Rad*5.789));
|
||||
|
||||
x=Rx+j*Ix;
|
||||
x_raw_sig=x/2;
|
||||
|
||||
x_win=Rx.*hamming(N)';
|
||||
|
||||
fft_float=2^31*fft(x/2)/N;
|
||||
|
||||
%bit reverse algorithm
|
||||
for i=1:N
|
||||
dr(i) = bin2dec(fliplr(dec2bin(i-1,stages)))+1;
|
||||
end
|
||||
|
||||
dr_1=dr-1;
|
||||
Rx=2^31*x(dr)/2;
|
||||
Ix=2^31*Ix(dr)/2;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+124
@@ -0,0 +1,124 @@
|
||||
//#############################################################################
|
||||
//! \file $FOLDER_EXAMPLES$/$DEVICE$_Test_FixedPoint_FIR32_Alt/test_cfft32.c
|
||||
//!
|
||||
//! \brief Complex FFT (32-bit)
|
||||
//!
|
||||
//! \date Sep 15, 2014
|
||||
//!
|
||||
//! This example shows how to use the real time bit reversal routine for the RFFT.
|
||||
//! This routine will acquire FFT_SIZE real data samples in real time and store it as
|
||||
//! an FFT_SIZE/2 point complex data sequence in bit-revesred order to perform an FFT_SIZE point
|
||||
//! real FFT computation.
|
||||
//! The structure used by this routine is defined as follows:
|
||||
//!
|
||||
//! typedef struct {
|
||||
//! int acqflag;
|
||||
//! int count;
|
||||
//! long input;
|
||||
//! long *tempptr;
|
||||
//! long *buffptr;
|
||||
//! int size;
|
||||
//! void (*update)(void *);
|
||||
//! }RFFT32_brev_RT_ACQ;
|
||||
//!
|
||||
//! \b Watch \b Variables
|
||||
//! - ipcbsrc Data input buffer. After the FFT calculation it becomes the
|
||||
//! Magnitude output buffer (Both are in Q31 format)
|
||||
//! - ipcb Data output buffer (Q31 format)
|
||||
//! - acq CFFT32 object
|
||||
//!
|
||||
//! In CCS, you can invoke the "SetupDebugEnv.js" script from the
|
||||
//! Scripting console to have these variables set up in the Watch window
|
||||
//! and create graphs to show the input/output vectors
|
||||
//
|
||||
// Group: C2000
|
||||
// Target Family: C28x
|
||||
//
|
||||
//#############################################################################
|
||||
// $Copyright: Copyright (C) 2014-2024 Texas Instruments Incorporated -
|
||||
// http://www.ti.com/ ALL RIGHTS RESERVED $
|
||||
//#############################################################################
|
||||
|
||||
//*****************************************************************************
|
||||
// includes
|
||||
//*****************************************************************************
|
||||
#include "examples_setup.h"
|
||||
#include "fft.h"
|
||||
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
#define FFT_SIZE 1024
|
||||
|
||||
//*****************************************************************************
|
||||
// globals
|
||||
//*****************************************************************************
|
||||
// Create the FFT buffers, ipcb and ipcbsrc, in sections with the same name
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(ipcb, "FFTipcb");
|
||||
#else
|
||||
#pragma DATA_SECTION("FFTipcb");
|
||||
#endif
|
||||
int32_t ipcb[2*FFT_SIZE];
|
||||
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(ipcbsrc, "FFTipcbsrc");
|
||||
#else
|
||||
#pragma DATA_SECTION("FFTipcbsrc");
|
||||
#endif
|
||||
int32_t ipcbsrc[2*FFT_SIZE];
|
||||
|
||||
// Create an instance of RFFT32_brev_RT_ACQ module
|
||||
// Use the RFFT32_brev_RT_ACQ_DEFAULTS in the FFT header file if
|
||||
// unsure as to what values to program the object with.
|
||||
RFFT32_brev_RT_ACQ acq = RFFT32_brev_RT_ACQ_DEFAULTS;
|
||||
|
||||
int main(void)
|
||||
{
|
||||
// Locals
|
||||
float RadStep = 0.1963495408494f;
|
||||
float Rad = 0.0f;
|
||||
uint32_t i = 0;
|
||||
|
||||
#ifdef _FLASH
|
||||
FIXPT_DSP_initFlash();
|
||||
#endif //_FLASH
|
||||
FIXPT_DSP_initSystemClocks();
|
||||
FIXPT_DSP_initEpie();
|
||||
|
||||
// Generate sample waveforms:
|
||||
Rad = 0.0f;
|
||||
for(i=0; i < (FFT_SIZE*2); i=i+2){
|
||||
ipcbsrc[i] =(long)(2147483648*(sin(Rad) + cos(Rad*2.3567))/2); //Q31
|
||||
ipcbsrc[i+1] = (long)(2147483648*(cos(Rad*8.345) + sin(Rad*5.789))/2); //Q31
|
||||
Rad = Rad + RadStep;
|
||||
}
|
||||
|
||||
//Clean up input/output buffer
|
||||
for(i=0; i < (FFT_SIZE*2); i=i+2){
|
||||
ipcb[i] =0;
|
||||
ipcb[i+1] = 0;
|
||||
}
|
||||
|
||||
//Header structure initialization
|
||||
acq.buffptr = ipcb; //Output buffer
|
||||
acq.tempptr = ipcb; //Temporary buffer, normally pointing to the same as buffptr
|
||||
acq.size = FFT_SIZE; //Buffer size
|
||||
acq.count = FFT_SIZE; //Every time one element bit-reversed, count minus 1
|
||||
acq.acqflag = 1; //Acquisition flag, initialized as 1
|
||||
|
||||
for(i=0; i < FFT_SIZE; i++){
|
||||
acq.input = ipcbsrc[i]; // Input data
|
||||
acq.update(&acq); // Point by point bit-reversing
|
||||
}
|
||||
|
||||
//asm(" ESTOP0");
|
||||
for(;;);
|
||||
|
||||
// code should never reach this pointer
|
||||
return 1;
|
||||
} // End: main()
|
||||
|
||||
//###########################################################################
|
||||
// End of File
|
||||
//###########################################################################
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?ccsproject version="1.0"?>
|
||||
<projectOptions>
|
||||
<deviceFamily value="C2000"/>
|
||||
<isTargetManual value="false"/>
|
||||
</projectOptions>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?eclipse-cdt version="2.0"?>
|
||||
|
||||
<cdtproject id="org.eclipse.cdt.managedbuilder.core.managedMake">
|
||||
<extension id="org.eclipse.cdt.managedbuilder.core.ManagedBuildManager" point="org.eclipse.cdt.core.ScannerInfoProvider"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<data>
|
||||
<item id="org.eclipse.cdt.core.pathentry">
|
||||
<pathentry kind="src" path=""/>
|
||||
<pathentry kind="out" path=""/>
|
||||
<pathentry kind="con" path="org.eclipse.cdt.managedbuilder.MANAGED_CONTAINER"/>
|
||||
<pathentry kind="con" path="com.ti.ccstudio.managedbuild.core.CCS_CONTAINER"/>
|
||||
</item>
|
||||
</data>
|
||||
</cdtproject>
|
||||
@@ -0,0 +1,191 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?>
|
||||
|
||||
<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.232642589">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.232642589" moduleId="org.eclipse.cdt.core.settings" name="RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_TO_FIXEDPTLIB" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/>
|
||||
<stringMacro name="INSTALLROOT_2833X" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../../../device_support/f2833x"/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="2833x_FixedPoint_CFFT" buildProperties="" description="RAM build configuration" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.232642589" name="RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.232642589.2134715708" name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain.1178572111" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.1432870701">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1675939382" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS320C28XX.TMS320F28335"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=28335_RAM_lnk.cmd"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts2800_ml.lib"/>
|
||||
<listOptionValue builtIn="false" value="IS_ELF=false"/>
|
||||
<listOptionValue builtIn="false" value="PROJECT_KIND=com.ti.ccstudio.managedbuild.core.ProjectKind_Executable"/>
|
||||
<listOptionValue builtIn="false" value="IS_ASSEMBLY_ONLY=false"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.2083502545" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="6.2.5" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug.1251441475" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug.480504400" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug.312494519" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL.1666048532" name="Use large memory model (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY.167208705" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.1018839816" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT.1565762601" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.1060669824" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH.972897387" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/common/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/examples/common""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING.918858804" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE.153844054" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="RAM"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS.337429716" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS.287024003" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS.49054285" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS.1952001576" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.1432870701" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE.1905984295" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE" value="0x300" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE.220600026" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE" value=""2833x_FixedPoint_CFFT.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE.1051822309" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE" value=""2833x_FixedPoint_CFFT.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles.1762213793" name="[Deprecated] Generated Linker Command files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""$(GEN_CMDS_QUOTED)""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY.1976543388" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value="c28x_fixedpoint_dsp_library.lib"/>
|
||||
<listOptionValue builtIn="false" value=""rts2800_ml.lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH.601592421" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO.659514106" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO" value=""2833x_FixedPoint_CFFT_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE.873483185" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE" value="RAM" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS.1425856079" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS.997185466" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS.2047883756" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.232642589.18256380">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.232642589.18256380" moduleId="org.eclipse.cdt.core.settings" name="_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_TO_FIXEDPTLIB" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/>
|
||||
<stringMacro name="INSTALLROOT_2833X" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../../../device_support/f2833x"/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="2833x_FixedPoint_CFFT" buildProperties="" description="_FLASH build configuration" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.232642589.18256380" name="_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.232642589.18256380." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain.1302626480" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.1432870701">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1897430591" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS320C28XX.TMS320F28335"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=28335_RAM_lnk.cmd"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts2800_ml.lib"/>
|
||||
<listOptionValue builtIn="false" value="IS_ELF=false"/>
|
||||
<listOptionValue builtIn="false" value="PROJECT_KIND=com.ti.ccstudio.managedbuild.core.ProjectKind_Executable"/>
|
||||
<listOptionValue builtIn="false" value="IS_ASSEMBLY_ONLY=false"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.481462075" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="6.2.5" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug.111839943" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug.328910939" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug.1881072948" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL.963953690" name="Use large memory model (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY.154730308" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.167304797" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT.1342245389" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.1820144467" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH.1174556857" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/common/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/examples/common""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING.133746076" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE.203002610" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS.625024417" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS.1815957991" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS.811841648" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS.780218035" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.1705072611" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE.685529223" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE" value="0x300" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE.643701098" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE" value=""2833x_FixedPoint_CFFT.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE.1435894899" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE" value=""2833x_FixedPoint_CFFT.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles.1132765836" name="[Deprecated] Generated Linker Command files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""$(GEN_CMDS_QUOTED)""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY.1335665887" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value="c28x_fixedpoint_dsp_library.lib"/>
|
||||
<listOptionValue builtIn="false" value=""rts2800_ml.lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH.1420459930" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO.1227577488" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO" value=""2833x_FixedPoint_CFFT_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE.967311347" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE" value="_FLASH" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS.1463280961" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS.110669876" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS.120924094" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="2833x_FixedPoint_CFFT.com.ti.ccstudio.buildDefinitions.C2000.ProjectType.2082518109" name="C2000" projectType="com.ti.ccstudio.buildDefinitions.C2000.ProjectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
||||
<project-mappings>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
</project-mappings>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration"/>
|
||||
</cproject>
|
||||
@@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>2833x_FixedPoint_CFFT</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>DSP2833x_ADC_cal.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_ADC_cal.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_Adc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_Adc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_CodeStartBranch.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_CodeStartBranch.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_CpuTimers.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_CpuTimers.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_DBGIER.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_DBGIER.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_DefaultIsr.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_DefaultIsr.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_GlobalVariableDefs.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/headers/source/DSP2833x_GlobalVariableDefs.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_Headers_nonBIOS.cmd</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/headers/cmd/DSP2833x_Headers_nonBIOS.cmd</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_PieCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_PieCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_PieVect.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_PieVect.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_SysCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_SysCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_usDelay.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_usDelay.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F28335_FIXPT_FFT_lnk.cmd</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_TO_FIXEDPTLIB/cmd/F28335_FIXPT_FFT_lnk.cmd</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>examples_setup.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_TO_FIXEDPTLIB/examples/common/examples_setup.c</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>INSTALLROOT_2833X</name>
|
||||
<value>$%7BPARENT-6-PROJECT_LOC%7D/device_support/f2833x</value>
|
||||
</variable>
|
||||
<variable>
|
||||
<name>INSTALLROOT_TO_FIXEDPTLIB</name>
|
||||
<value>$%7BPARENT-2-PROJECT_LOC%7D</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
BIN
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
//Add watch window variables
|
||||
expRemoveAll()
|
||||
expAdd("ipcbsrc", getNatural())
|
||||
expAdd("ipcb", getNatural())
|
||||
expAdd("cfft", getNatural())
|
||||
|
||||
openAnalysisView('Dual Time','C\:/Users/a0486005/Documents/c2000ware-release/libraries/dsp/FixedPoint/c28/examples/2833x_FixedPoint_CFFT/CFFT_IN_OUT.graphProp')
|
||||
+351
@@ -0,0 +1,351 @@
|
||||
% // TI File $Revision: /main/3 $
|
||||
% // Checkin $Date: November 1, 2010 13:05:07 $
|
||||
% // =====================================================================================
|
||||
% // This software is licensed for use with Texas Instruments C28x
|
||||
% // family DSCs. This license was provided to you prior to installing
|
||||
% // the software. You may review this license by consulting a copy of
|
||||
% // the agreement in the doc directory of this library.
|
||||
% //======================================================================================
|
||||
% //
|
||||
% // FILE: FixedPointCFFT.m
|
||||
% //
|
||||
% // TITLE: DSP2833x Device Fixed Point Complex FFT Test Program.
|
||||
% //
|
||||
% //
|
||||
% // ASSUMPTIONS:
|
||||
% //
|
||||
% // This matlab code is reference code for debugging FixedPoint DSP library
|
||||
% // function CFFT32_brev, FFT32_calc, FFT32_init, FFT32_izero, FFT32_mag
|
||||
% // and example project 2833x_FixedPoint_CFFT.
|
||||
% //
|
||||
% //
|
||||
% // Watch Variables:
|
||||
% //
|
||||
% // x_raw_sig Input signal (float)
|
||||
% // Rx,Ix Bit-revesed real and imaginary part of signal
|
||||
% // (Q31)
|
||||
% // x_out_2nd 2nd Stage complex CFFT result
|
||||
% // X Stage 3 and up result (Q31)
|
||||
% // Magnitude_Fixed Spectrum magnitude (Q31)
|
||||
% // fft_float Normalized floating fft result represented as (Q31)
|
||||
% //
|
||||
% //######################################################################################
|
||||
% //
|
||||
% //
|
||||
% //
|
||||
%// C2000Ware v5.04.00.00
|
||||
%//Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
|
||||
%//
|
||||
%// Redistribution and use in source and binary forms, with or without
|
||||
%// modification, are permitted provided that the following conditions
|
||||
%// are met:
|
||||
%//
|
||||
%// Redistributions of source code must retain the above copyright
|
||||
%// notice, this list of conditions and the following disclaimer.
|
||||
%//
|
||||
%// Redistributions in binary form must reproduce the above copyright
|
||||
%// notice, this list of conditions and the following disclaimer in the
|
||||
%// documentation and/or other materials provided with the
|
||||
%// distribution.
|
||||
%//
|
||||
%// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
%// its contributors may be used to endorse or promote products derived
|
||||
%// from this software without specific prior written permission.
|
||||
%//
|
||||
%// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
%// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
%// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
%// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
%// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
%// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
%// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
%// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
%// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
%// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
%// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
%//$
|
||||
% //######################################################################################
|
||||
|
||||
clear all
|
||||
close all
|
||||
|
||||
disp('==============================================================');
|
||||
disp('input signal is stored as Q31 format');
|
||||
disp('result is the same as matlab function fft(x)/N as Q31 format');
|
||||
disp('==============================================================');
|
||||
disp('this is Matlab version of C28x Fixed PointCFFT code');
|
||||
disp('The result is stored in array X');
|
||||
disp('The signal is stored in array x_raw_sig');
|
||||
disp('fft_float stored the fft(x_raw_sig) in Q31 format');
|
||||
disp('Magnitude_Fixed in Q31 format');
|
||||
disp('==============================================================');
|
||||
|
||||
RadStep = 0.1963495408494;
|
||||
|
||||
stages=input('Please enter stages (>=3) =');
|
||||
N=2^stages;
|
||||
halfSize=N-1;
|
||||
|
||||
Rad=[0:RadStep:(halfSize)*RadStep];
|
||||
|
||||
even_idx=0:halfSize;
|
||||
odd_idx=even_idx+1;
|
||||
|
||||
CFFTinBuf1=zeros(1,N);
|
||||
|
||||
Rx=sin(Rad)+cos(Rad*2.3567);
|
||||
Ix=(cos(Rad*8.345) + sin(Rad*5.789));
|
||||
|
||||
x=Rx+j*Ix;
|
||||
x_raw_sig=x/2;
|
||||
|
||||
fft_float=2^31*fft(x/2)/N;
|
||||
|
||||
%bit reverse algorithm
|
||||
for i=1:N
|
||||
dr(i) = bin2dec(fliplr(dec2bin(i-1,stages)))+1;
|
||||
end
|
||||
|
||||
dr_1=dr-1;
|
||||
Rx=2^31*Rx(dr)/2;
|
||||
Ix=2^31*Ix(dr)/2;
|
||||
|
||||
%stage 1 and 2
|
||||
for i=1:N/4
|
||||
idx=(i-1)*4+1;
|
||||
D0=Rx(idx+0);
|
||||
D1=Ix(idx+0);
|
||||
D2=Rx(idx+1);
|
||||
D3=Ix(idx+1);
|
||||
D4=Rx(idx+2);
|
||||
D5=Ix(idx+2);
|
||||
D6=Rx(idx+3);
|
||||
D7=Ix(idx+3);
|
||||
D0prime=((D0 + D2)+(D4 + D6))/4;
|
||||
D1prime=((D1 + D3)+(D5 + D7))/4;
|
||||
D2prime=((D0 - D2)+(D5 - D7))/4;
|
||||
D3prime=((D1 - D3)-(D4 - D6))/4;
|
||||
D4prime=((D0 + D2)-(D4 + D6))/4;
|
||||
D5prime=((D1 + D3)-(D5 + D7))/4;
|
||||
D6prime=((D0 - D2)-(D5 - D7))/4;
|
||||
D7prime=((D1 - D3)+(D4 - D6))/4;
|
||||
|
||||
x_out_2nd(idx+0)=D0prime+j*D1prime;
|
||||
x_out_2nd(idx+1)=D2prime+j*D3prime;
|
||||
x_out_2nd(idx+2)=D4prime+j*D5prime;
|
||||
x_out_2nd(idx+3)=D6prime+j*D7prime;
|
||||
|
||||
end
|
||||
|
||||
x_out=x_out_2nd;
|
||||
|
||||
x_out=[x_out,zeros(1,N*2)];
|
||||
|
||||
table_idx=0:N-1;
|
||||
cos_table=cos(2*pi*table_idx/N);
|
||||
sin_table=sin(2*pi*table_idx/N);
|
||||
coef_table=[sin_table(1:N/4),cos_table(1:N/2)];
|
||||
|
||||
CurrentInPtr=1;
|
||||
CurrentOutPtr=1;
|
||||
AR2=CurrentInPtr;
|
||||
AR3=CurrentInPtr;
|
||||
AR6=CurrentOutPtr;
|
||||
AR7=CurrentOutPtr;
|
||||
|
||||
%stage 3 and up
|
||||
%num_of_loop=stages-2;
|
||||
StagesCounter=stages-2;
|
||||
OuterCounter=N/8;
|
||||
CoefPtrInc=N/8;
|
||||
CoefPtr=0;
|
||||
CurrentSinPtr=CoefPtr;
|
||||
CurrentCosPtr=CoefPtr+N/4;
|
||||
InnerCounter=3;
|
||||
DataPtrInc=4;
|
||||
|
||||
AR5=CurrentSinPtr+1;
|
||||
AR4=CurrentCosPtr+1;
|
||||
|
||||
for k=1:StagesCounter
|
||||
|
||||
AR0=DataPtrInc;
|
||||
AR3=AR3+AR0;
|
||||
AR7=AR7+AR0;
|
||||
|
||||
AR0=CoefPtrInc;
|
||||
D2_1=real(x_out(AR3));%R1H=D2_1
|
||||
R1H=D2_1;
|
||||
|
||||
for m=1:OuterCounter
|
||||
|
||||
Cos_1=coef_table(AR4);
|
||||
R2H=Cos_1;
|
||||
AR4=AR4+AR0;
|
||||
|
||||
%R7H=D2_1*Cos_1;
|
||||
R7H=R1H*R2H;
|
||||
|
||||
D3_1=imag(x_out(AR3)); %R0H=D3_1
|
||||
R0H=D3_1;
|
||||
AR3=AR3+1;
|
||||
|
||||
Sin_1=coef_table(AR5);
|
||||
R3H=Sin_1;
|
||||
AR5=AR5+AR0;
|
||||
|
||||
%R6H=D3_1*Sin_1;
|
||||
R6H=R0H*R3H;
|
||||
%R5H=D2_1*Sin_1;
|
||||
R5H=R1H*R3H;
|
||||
|
||||
for i=1:InnerCounter
|
||||
|
||||
%R7H = (D2_1*Cos_1 + D3_1*Sin_1); %R7H=R7H+R6H
|
||||
R7H=R7H+R6H;
|
||||
|
||||
D2_2=real(x_out(AR3));%R1H=D2_2
|
||||
R1H=D2_2;
|
||||
|
||||
%R6H = D3_1*Cos_1;
|
||||
R6H=R0H*R2H;
|
||||
|
||||
D0_1=real(x_out(AR2));%R3H=D0_1
|
||||
R3H=D0_1;
|
||||
|
||||
%R4H=D0_1 + (D2_1*Cos_1 + D3_1*Sin_1);%R4H=R3H+R7H;
|
||||
R4H=R3H+R7H;
|
||||
|
||||
Cos_2=coef_table(AR4);
|
||||
R2H=Cos_2;
|
||||
AR4=AR4+AR0;
|
||||
|
||||
%R6H = (D3_1*Cos_1 - D2_1*Sin_1);%R6H=R6H-R5H;
|
||||
R6H=R6H-R5H;
|
||||
|
||||
D3_2=imag(x_out(AR3));%R0H
|
||||
R0H=D3_2;
|
||||
AR3=AR3+1;
|
||||
|
||||
D0_1prime=R4H;
|
||||
AR6;
|
||||
%X(AR6)=D0_1prime;
|
||||
|
||||
%R4H = D0_1 - (D2_1*Cos_1 + D3_1*Sin_1);%R4H=R3H-R7H;
|
||||
R4H=R3H-R7H;
|
||||
|
||||
D2_1prime=R4H;
|
||||
%X(AR7)=D2_1prime;
|
||||
|
||||
R7H = D2_2*Cos_2;
|
||||
|
||||
D1_1=imag(x_out(AR2));%R3H=D1_1
|
||||
R3H=D1_1;
|
||||
AR2=AR2+1;
|
||||
|
||||
%R4H = D1_1 + (D3_1*Cos_1 - D2_1*Sin_1);%R4H=R3H+R6H
|
||||
R4H=R3H+R6H;
|
||||
|
||||
%R5H = D1_1 - (D3_1*Cos_1 - D2_1*Sin_1);%R5H=R3H-R6H
|
||||
R5H=R3H-R6H;
|
||||
D2_1=real(x_out(AR3));
|
||||
R1H=D2_1;
|
||||
|
||||
Sin_2=coef_table(AR5);
|
||||
R3H=Sin_2;
|
||||
AR5=AR5+AR0;
|
||||
|
||||
%R6H = D3_2*Sin_2;%R6H=R0H*R3H
|
||||
R6H=R0H*R3H;
|
||||
|
||||
D1_1prime=R4H;
|
||||
X(AR6)=D0_1prime+j*D1_1prime;
|
||||
AR6=AR6+1;
|
||||
|
||||
D3_1prime=R5H;
|
||||
X(AR7)=D2_1prime+j*D3_1prime;
|
||||
AR7=AR7+1;
|
||||
|
||||
R5H = D2_2*Sin_2;
|
||||
|
||||
end
|
||||
|
||||
AR0=DataPtrInc;
|
||||
AR4=CurrentCosPtr+1;
|
||||
AR5=CurrentSinPtr+1;
|
||||
|
||||
%R7H = (D2_2*COS_2 + D3_2*SIN_2)
|
||||
R7H=R7H+R6H;
|
||||
|
||||
R6H=real(x_out(AR3));
|
||||
AR3=AR3-1;
|
||||
|
||||
% R6H = D3_2*COS_2
|
||||
R6H=R0H*R2H;
|
||||
|
||||
D0_2=real(x_out(AR2));
|
||||
R3H=D0_2;
|
||||
|
||||
%R4H = D0_2 + (D2_2*COS_2 + D3_2*SIN_2)
|
||||
R4H=R3H+R7H;
|
||||
|
||||
D0_2prime=R4H;
|
||||
%X(AR6)=D0_2prime
|
||||
|
||||
% R6H = (D3_2*COS_2 - D2_2*SIN_2)
|
||||
R6H=R6H-R5H;
|
||||
|
||||
R5H=imag(x_out(AR3));
|
||||
AR3 = AR3 + DataPtrInc+1;
|
||||
|
||||
% R4H = D0_2 - (D2_2*COS_2 + D3_2*SIN_2)
|
||||
R4H=R3H-R7H;
|
||||
D2_2prime=R4H;
|
||||
%X(AR7)=D2_2prime;
|
||||
|
||||
|
||||
D1_2=imag(x_out(AR2));
|
||||
R3H=D1_2;
|
||||
AR2=AR2+DataPtrInc+1;
|
||||
|
||||
% R4H = D1_2 + (D3_2*COS_2 - D2_2*SIN_2)
|
||||
R4H=R3H+R6H;
|
||||
|
||||
% R5H = D1_2 - (D3_2*COS_2 - D2_2*SIN_2)
|
||||
R5H=R3H-R6H;
|
||||
|
||||
AR3;
|
||||
D2_1=real(x_out(AR3));
|
||||
R1H=D2_1;
|
||||
%AR3=AR3+1;
|
||||
|
||||
D1_2prime=R4H;
|
||||
X(AR6)=D0_2prime+j*D1_2prime;
|
||||
AR6=AR6+DataPtrInc+1;
|
||||
|
||||
D3_2prime=R5H;
|
||||
X(AR7)=D2_2prime+j*D3_2prime;
|
||||
AR7=AR7+DataPtrInc+1;
|
||||
|
||||
AR0=CoefPtrInc;
|
||||
end
|
||||
X=X/2;
|
||||
x_out(1:length(X))=X;
|
||||
|
||||
DataPtrInc=DataPtrInc*2;
|
||||
CoefPtrInc=CoefPtrInc/2;
|
||||
|
||||
AR7=CurrentInPtr;
|
||||
AR3=CurrentOutPtr;
|
||||
AR6=CurrentInPtr;
|
||||
AR2=CurrentOutPtr;
|
||||
|
||||
InnerCounter=InnerCounter*2+1;
|
||||
|
||||
OuterCounter=OuterCounter/2;
|
||||
end
|
||||
|
||||
Magnitude=abs(X);
|
||||
Phase=angle(X);
|
||||
|
||||
Magnitude_Fixed=(abs(X)/2^16).^2;
|
||||
@@ -0,0 +1,144 @@
|
||||
//#############################################################################
|
||||
//! \file $FOLDER_EXAMPLES$/$DEVICE$_Test_FixedPoint_CFFT/cfft.c
|
||||
//!
|
||||
//! \brief Complex FFT (32-bit)
|
||||
//!
|
||||
//! \date Sep 15, 2014
|
||||
//!
|
||||
//! This example shows how to use the CFFT routines of the library including bit
|
||||
//! reversal, FFT initialization, calculation and magnitude calculation. The
|
||||
//! CFFT module structure is as follows:
|
||||
//!
|
||||
//! typedef struct {
|
||||
//! int32 *ipcbptr;
|
||||
//! int32 *tfptr;
|
||||
//! int16 size;
|
||||
//! int16 nrstage;
|
||||
//! int32 *magptr;
|
||||
//! int32 *winptr;
|
||||
//! int32 peakmag;
|
||||
//! int16 peakfrq;
|
||||
//! int16 ratio;
|
||||
//! void (*init)(void *);
|
||||
//! void (*izero)(void *);
|
||||
//! void (*calc)(void *);
|
||||
//! void (*mag)(void *);
|
||||
//! void (*win)(void *);
|
||||
//! }CFFT32;
|
||||
//!
|
||||
//! \b Watch \b Variables
|
||||
//! - ipcbsrc Data input buffer. After the FFT calculation it becomes the
|
||||
//! Magnitude output buffer (Both are in Q31 format)
|
||||
//! - ipcb Data output buffer (Q31 format)
|
||||
//! - cfft CFFT32 object
|
||||
//!
|
||||
//! In CCS, you can invoke the "SetupDebugEnv.js" script from the
|
||||
//! Scripting console to have these variables set up in the Watch window
|
||||
//! and create graphs to show the input/output vectors
|
||||
//
|
||||
// Group: C2000
|
||||
// Target Family: C28x
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright: Copyright (C) 2014-2024 Texas Instruments Incorporated -
|
||||
// http://www.ti.com/ ALL RIGHTS RESERVED $
|
||||
//#############################################################################
|
||||
|
||||
//*****************************************************************************
|
||||
// includes
|
||||
//*****************************************************************************
|
||||
#include "examples_setup.h"
|
||||
#include "fft.h"
|
||||
#include "fft_hamming_Q31.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
#define FFT_SIZE 1024
|
||||
#define ENABLE_WINDOWING 1
|
||||
|
||||
//*****************************************************************************
|
||||
// globals
|
||||
//*****************************************************************************
|
||||
// Create the FFT buffers, ipcb and ipcbsrc, in sections with the same name
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(ipcb, "FFTipcb");
|
||||
#else
|
||||
#pragma DATA_SECTION("FFTipcb");
|
||||
#endif
|
||||
int32_t ipcb[2*FFT_SIZE];
|
||||
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(ipcbsrc, "FFTipcbsrc");
|
||||
#else
|
||||
#pragma DATA_SECTION("FFTipcbsrc");
|
||||
#endif
|
||||
int32_t ipcbsrc[2*FFT_SIZE];
|
||||
|
||||
// Define window Co-efficient Array
|
||||
// Note: Windowing is used if ENABLE_WINDOWING is set to 1024
|
||||
const long win[FFT_SIZE/2]=HAMMING1024;
|
||||
|
||||
// Declare and initialize the structure object.
|
||||
// Use the CFFT32_<n>P_DEFUALTS in the FFT header file if
|
||||
// unsure as to what values to program the object with.
|
||||
CFFT32 cfft=CFFT32_1024P_DEFAULTS;
|
||||
|
||||
// Start of main()
|
||||
int main(void)
|
||||
{
|
||||
// Locals
|
||||
float RadStep = 0.1963495408494f;
|
||||
float Rad = 0.0f;
|
||||
uint32_t i = 0;
|
||||
|
||||
#ifdef _FLASH
|
||||
FIXPT_DSP_initFlash();
|
||||
#endif //_FLASH
|
||||
FIXPT_DSP_initSystemClocks();
|
||||
FIXPT_DSP_initEpie();
|
||||
|
||||
// Generate sample waveforms:
|
||||
for(i=0; i < (FFT_SIZE*2); i=i+2){
|
||||
ipcbsrc[i] =(long)(2147483648*(sin(Rad) + cos(Rad*2.3567))/2); //Q31
|
||||
#if (ENABLE_WINDOWING)
|
||||
// If windowing is enabled for the CFFT routine, the routine assumes the
|
||||
// imaginary part of the input is zero and will only apply the window to the
|
||||
// real part (the sampled real data that you get from the ADC).
|
||||
ipcbsrc[i+1] = 0;
|
||||
#else
|
||||
ipcbsrc[i+1] = (long)(2147483648*(cos(Rad*8.345) + sin(Rad*5.789))/2); //Q31
|
||||
#endif //ENABLE_WINDOWING
|
||||
Rad = Rad + RadStep;
|
||||
}
|
||||
|
||||
//Clean up input/output buffer
|
||||
for(i=0; i < (FFT_SIZE*2); i=i+2){
|
||||
ipcb[i] =0;
|
||||
ipcb[i+1] = 0;
|
||||
}
|
||||
|
||||
CFFT32_brev(ipcbsrc, ipcb, FFT_SIZE); // Real part bit-reversing
|
||||
CFFT32_brev(&ipcbsrc[1], &ipcb[1], FFT_SIZE); // Imaginary part bit-reversing
|
||||
|
||||
cfft.ipcbptr = ipcb; // FFT computation buffer
|
||||
cfft.magptr = ipcbsrc; // Magnitude output buffer
|
||||
cfft.winptr = (long *)win; // Window coefficient array
|
||||
cfft.init(&cfft); // Twiddle factor pointer initialization
|
||||
|
||||
cfft.calc(&cfft); // Compute the FFT
|
||||
|
||||
cfft.mag(&cfft); // Q30 format (abs(ipcbsrc)/2^16).^2
|
||||
|
||||
//asm(" ESTOP0");
|
||||
for(;;);
|
||||
|
||||
// code should never reach this pointer
|
||||
return 1;
|
||||
|
||||
} // End: main()
|
||||
|
||||
//###########################################################################
|
||||
// End of File
|
||||
//###########################################################################
|
||||
@@ -0,0 +1,218 @@
|
||||
//#############################################################################
|
||||
//! \file $FOLDER_EXAMPLES$/$DEVICE$_FixedPoint_FIR16/fir16d.c
|
||||
//!
|
||||
//! \brief 16-bit FIR Filter Example
|
||||
//!
|
||||
//! \date Aug 12, 2014
|
||||
//!
|
||||
//! This examples shows how to implement a 16-bit FIR filter using the optimized
|
||||
//! FIR library routines. This version of the FIR filter has a limitation of 256
|
||||
//! taps (filter order max 255). If a higher order filter is required, refer to the
|
||||
//! FIR16_Alt example.
|
||||
//!
|
||||
//! typedef struct {
|
||||
//! int32_t *coeff_ptr;
|
||||
//! int32_t * dbuffer_ptr;
|
||||
//! int cbindex;
|
||||
//! int order;
|
||||
//! int input;
|
||||
//! int output;
|
||||
//! void (*init)(void *);
|
||||
//! void (*calc)(void *);
|
||||
//! }FIR16;
|
||||
//!
|
||||
//! Users can also use default templates defined within fir.h to initialize
|
||||
//! the FIR16 header structure.
|
||||
//!
|
||||
//! FIR16 fir= FIR16_DEFAULTS;
|
||||
//!
|
||||
//! The MATLAB Filter Design and Analysis Tool (FDATool) is a useful tool
|
||||
//! for designing filters and generating fixed point coefficients. Refer
|
||||
//! to the appendix of the Fixed Point DSP Libray User's Guide for more
|
||||
//! information.
|
||||
//!
|
||||
//! \b Watch \b Variables
|
||||
//! - fir FIR16 object
|
||||
//!
|
||||
//! In CCS, you can invoke the "SetupDebugEnv.js" script from the
|
||||
//! Scripting console to have these variables set up in the Watch window
|
||||
//! and create graphs to show the input/output vectors
|
||||
//
|
||||
// Group: C2000
|
||||
// Target Family: C28x
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright: $
|
||||
//#############################################################################
|
||||
|
||||
//*****************************************************************************
|
||||
// includes
|
||||
//*****************************************************************************
|
||||
#include "examples_setup.h"
|
||||
#include <filter.h>
|
||||
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
// Filter Symbolic Constants
|
||||
#define FIR_ORDER 32
|
||||
#define SIGNAL_LENGTH 128
|
||||
|
||||
#if(FIR_ORDER & 0x01) // odd
|
||||
#define FIR_ORDER_REV (FIR_ORDER + 1) // even
|
||||
#else
|
||||
#define FIR_ORDER_REV (FIR_ORDER + 2) // even
|
||||
#endif
|
||||
//*****************************************************************************
|
||||
// globals
|
||||
//*****************************************************************************
|
||||
// Create an Instance of FIR16 module and place the object in "firfilt" section
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(fir, "firfilt");
|
||||
#else
|
||||
#pragma DATA_SECTION("firfilt");
|
||||
#endif
|
||||
FIR16 fir= FIR16_DEFAULTS;
|
||||
|
||||
// Define the Delay buffer for the "FIR_ORDER"th order filter
|
||||
// and place it in "firldb" section. Since we define it as int32_t,
|
||||
// The size of the buffer is:
|
||||
// FIR_ORDER even -> (FIR_ORDER+1)/2+1 e.g. FIR_ORDER = 32, size = 17 dwords
|
||||
// odd -> (FIR_ORDER+1)/2 e.g. FIR_ORDER = 31, size = 16 dwords
|
||||
// The delay line buffer must be aligned to a 256 word boundary
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(dbuffer,"firldb");
|
||||
#else
|
||||
#pragma DATA_SECTION("firfilt");
|
||||
#endif
|
||||
int32_t dbuffer[FIR_ORDER + 3];
|
||||
|
||||
// Input/output buffer
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(sigIn, "sigIn");
|
||||
#else
|
||||
#pragma DATA_SECTION("sigIn");
|
||||
#endif
|
||||
int16_t sigIn[SIGNAL_LENGTH];
|
||||
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(sigOut, "sigOut");
|
||||
#else
|
||||
#pragma DATA_SECTION("sigOut");
|
||||
#endif
|
||||
int16_t sigOut[SIGNAL_LENGTH];
|
||||
|
||||
// Define Constant Coefficient Array and place it in the "coefffilt"
|
||||
// section. You can either reorder the coefficients at run time (done
|
||||
// in this example) or just store them reordered.
|
||||
// Index LSW MSW
|
||||
// +---------+---------+
|
||||
// 0 | h(L-1) | h(L/2-1)|
|
||||
// 2 | h(L-2) | h(L/2-2)|
|
||||
// 4 | h(L-3) | h(L/2-3)|
|
||||
// 6 | h(L-4) | h(L/2-4)|
|
||||
// ... | ... | ... |
|
||||
// L/2-3 | h(L/2+2)| h(2) |
|
||||
// L/2-2 | h(L/2+1)| h(1) |
|
||||
// L/2-1 | h(L/2) | h(0) |
|
||||
// +---------+---------+
|
||||
// The size of the array is:
|
||||
// FIR_ORDER even -> (FIR_ORDER+1)+1 e.g. FIR_ORDER = 32, size = 34 words
|
||||
// odd -> (FIR_ORDER+1) e.g. FIR_ORDER = 31, size = 32 words
|
||||
// The reason being that we use the DMAC operation which will multiply
|
||||
// the coefficients in 32-bit chunks, we don't want an odd size coefficient
|
||||
// buffer and risk corrupting the delay line
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(coeff, "coefffilt");
|
||||
#else
|
||||
#pragma DATA_SECTION("coefffilt");
|
||||
#endif
|
||||
int16_t coeff[FIR_ORDER+2];
|
||||
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(revCoeff, "coefffilt");
|
||||
#else
|
||||
#pragma DATA_SECTION("coefffilt");
|
||||
#endif
|
||||
int16_t revCoeff[FIR_ORDER+2];
|
||||
|
||||
// Start of main()
|
||||
int main(void)
|
||||
{
|
||||
// Locals
|
||||
int32_t xn = 0, yn = 0;
|
||||
float RadStep = 0.1963495408494f;
|
||||
float Rad = 0.0f;
|
||||
uint32_t i = 0;
|
||||
|
||||
#ifdef _FLASH
|
||||
FIXPT_DSP_initFlash();
|
||||
#endif //_FLASH
|
||||
FIXPT_DSP_initSystemClocks();
|
||||
FIXPT_DSP_initEpie();
|
||||
|
||||
// Load the coefficients in normal order. If
|
||||
// FIR_ORDER even -> number of taps are odd, after copying the coefficients
|
||||
// zero out the last element of coeffs
|
||||
// odd -> number of taps are even, simply copy the coefficients
|
||||
for(i = 0; i < FIR_ORDER + 2; i++){
|
||||
coeff[i] = FIR16_LPF32_TEST[i];
|
||||
}
|
||||
coeff[FIR_ORDER + 1] = 0;
|
||||
|
||||
// if the order of the coefficients is even, you will have
|
||||
// an odd number of taps; zero out the location right after the
|
||||
// last tap
|
||||
if((FIR_ORDER & 0x01) == 0){
|
||||
revCoeff[FIR_ORDER_REV-1] = 0;
|
||||
}
|
||||
// Reorder the coefficients
|
||||
// FIR_ORDER even -> (FIR_ORDER+1)+1 e.g. FIR_ORDER = 32, size = 34 words
|
||||
// odd -> (FIR_ORDER+1) e.g. FIR_ORDER = 31, size = 32 words
|
||||
for(i = 0; i < FIR_ORDER + 2; i = i + 2){
|
||||
revCoeff[FIR_ORDER_REV-i-1] = coeff[i/2+FIR_ORDER_REV/2];
|
||||
revCoeff[FIR_ORDER_REV-i-2] = coeff[i/2];
|
||||
}
|
||||
|
||||
for(i=0; i < SIGNAL_LENGTH; i++){
|
||||
sigIn[i] =0;
|
||||
sigOut[i] =0;
|
||||
}
|
||||
|
||||
// Initialize FIR16 object
|
||||
fir.order = FIR_ORDER;
|
||||
fir.dbuffer_ptr = &dbuffer[0];
|
||||
fir.coeff_ptr = (int32_t *)&revCoeff[0];
|
||||
fir.init(&fir);
|
||||
|
||||
// FIR calculation
|
||||
for(i = 0; i < SIGNAL_LENGTH; i++){
|
||||
xn=(int)(32768*(sin(Rad) + cos(Rad*2.3567))/2); //Q15
|
||||
// Impulse function
|
||||
//if(i == 0){
|
||||
// xn = (1 << 15);
|
||||
//}else{
|
||||
// xn = 0;
|
||||
//}
|
||||
sigIn[i] = xn;
|
||||
fir.input = sigIn[i] & 0xFFFF; // Q15 format
|
||||
fir.calc(&fir);
|
||||
yn = fir.output;
|
||||
sigOut[i] = yn;
|
||||
Rad = Rad + RadStep;
|
||||
}
|
||||
|
||||
|
||||
//asm(" ESTOP0");
|
||||
for(;;);
|
||||
|
||||
// code should never reach this pointer
|
||||
return 1;
|
||||
|
||||
} /* End: main() */
|
||||
|
||||
//###########################################################################
|
||||
// End of File
|
||||
//###########################################################################
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?ccsproject version="1.0"?>
|
||||
<projectOptions>
|
||||
<deviceFamily value="C2000"/>
|
||||
<isTargetManual value="false"/>
|
||||
</projectOptions>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?eclipse-cdt version="2.0"?>
|
||||
|
||||
<cdtproject id="org.eclipse.cdt.managedbuilder.core.managedMake">
|
||||
<extension id="org.eclipse.cdt.managedbuilder.core.ManagedBuildManager" point="org.eclipse.cdt.core.ScannerInfoProvider"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<data>
|
||||
<item id="org.eclipse.cdt.core.pathentry">
|
||||
<pathentry kind="src" path=""/>
|
||||
<pathentry kind="out" path=""/>
|
||||
<pathentry kind="con" path="org.eclipse.cdt.managedbuilder.MANAGED_CONTAINER"/>
|
||||
<pathentry kind="con" path="com.ti.ccstudio.managedbuild.core.CCS_CONTAINER"/>
|
||||
</item>
|
||||
</data>
|
||||
</cdtproject>
|
||||
@@ -0,0 +1,195 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?>
|
||||
|
||||
<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317" moduleId="org.eclipse.cdt.core.settings" name="RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_TO_FIXEDPTLIB" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/>
|
||||
<stringMacro name="INSTALLROOT_2833X" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../../../device_support/f2833x"/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="2833x_FixedPoint_FIR16" buildProperties="" description="RAM build configuration" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317" name="RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317.327083807" name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain.1676395359" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.139208857">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1512894819" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS320C28XX.TMS320F28335"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=28335_RAM_lnk.cmd"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts2800_ml.lib"/>
|
||||
<listOptionValue builtIn="false" value="IS_ELF=false"/>
|
||||
<listOptionValue builtIn="false" value="PROJECT_KIND=com.ti.ccstudio.managedbuild.core.ProjectKind_Executable"/>
|
||||
<listOptionValue builtIn="false" value="IS_ASSEMBLY_ONLY=false"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1439939768" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="6.2.5" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug.1228428871" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug.1543415991" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug.1014186289" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL.1276024401" name="Use large memory model (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY.409452695" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.150373748" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT.577633857" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.388627654" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH.568035091" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/common/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/examples/common""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING.1374230148" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.KEEP_ASM.516393193" name="Keep the generated assembly language (.asm) file (--keep_asm, -k)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.KEEP_ASM" value="false" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SOURCE_INTERLIST.920490890" name="Source interlist" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SOURCE_INTERLIST" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SOURCE_INTERLIST._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE.142044454" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="RAM"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS.1972770834" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS.1936690688" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS.1305145091" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS.1979537973" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.139208857" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE.1298858410" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE" value="0x300" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE.777182326" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE" value=""2833x_FixedPoint_FIR16.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE.965462428" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE" value=""2833x_FixedPoint_FIR16.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles.971167039" name="[Deprecated] Generated Linker Command files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""$(GEN_CMDS_QUOTED)""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY.715544849" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value="c28x_fixedpoint_dsp_library.lib"/>
|
||||
<listOptionValue builtIn="false" value=""rts2800_ml.lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH.589053542" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO.1008002930" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO" value=""2833x_FixedPoint_FIR16_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE.526148779" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE" value="RAM" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS.1225799143" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS.247167082" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS.612960073" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317.1542595367">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317.1542595367" moduleId="org.eclipse.cdt.core.settings" name="_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_TO_FIXEDPTLIB" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/>
|
||||
<stringMacro name="INSTALLROOT_2833X" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../../../device_support/f2833x"/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="2833x_FixedPoint_FIR16" buildProperties="" description="_FLASH build configuration" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317.1542595367" name="_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317.1542595367." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain.400003758" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.139208857">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.594858505" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS320C28XX.TMS320F28335"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=28335_RAM_lnk.cmd"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts2800_ml.lib"/>
|
||||
<listOptionValue builtIn="false" value="IS_ELF=false"/>
|
||||
<listOptionValue builtIn="false" value="PROJECT_KIND=com.ti.ccstudio.managedbuild.core.ProjectKind_Executable"/>
|
||||
<listOptionValue builtIn="false" value="IS_ASSEMBLY_ONLY=false"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1514397818" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="6.2.5" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug.6345031" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug.1582739728" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug.440150278" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL.916127938" name="Use large memory model (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY.970396644" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.629543107" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT.1677543450" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.310038950" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH.918483283" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/common/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/examples/common""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING.1096627796" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.KEEP_ASM.979119448" name="Keep the generated assembly language (.asm) file (--keep_asm, -k)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.KEEP_ASM" value="false" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SOURCE_INTERLIST.1059463245" name="Source interlist" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SOURCE_INTERLIST" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SOURCE_INTERLIST._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE.291095194" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS.1905147359" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS.332757779" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS.1393907316" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS.1176943915" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.195165758" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE.920901405" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE" value="0x300" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE.1403067804" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE" value=""2833x_FixedPoint_FIR16.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE.699824088" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE" value=""2833x_FixedPoint_FIR16.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles.1266936054" name="[Deprecated] Generated Linker Command files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""$(GEN_CMDS_QUOTED)""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY.1481447937" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value="c28x_fixedpoint_dsp_library.lib"/>
|
||||
<listOptionValue builtIn="false" value=""rts2800_ml.lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH.209900788" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO.1685652975" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO" value=""2833x_FixedPoint_FIR16_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE.1437022938" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE" value="_FLASH" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS.512613629" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS.1692321016" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS.64965311" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="2833x_FixedPoint_FIR16.com.ti.ccstudio.buildDefinitions.C2000.ProjectType.2025933334" name="C2000" projectType="com.ti.ccstudio.buildDefinitions.C2000.ProjectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
||||
<project-mappings>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
</project-mappings>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration"/>
|
||||
</cproject>
|
||||
@@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>2833x_FixedPoint_FIR16</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>DSP2833x_ADC_cal.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_ADC_cal.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_Adc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_Adc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_CodeStartBranch.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_CodeStartBranch.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_CpuTimers.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_CpuTimers.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_DBGIER.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_DBGIER.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_DefaultIsr.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_DefaultIsr.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_GlobalVariableDefs.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/headers/source/DSP2833x_GlobalVariableDefs.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_Headers_nonBIOS.cmd</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/headers/cmd/DSP2833x_Headers_nonBIOS.cmd</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_PieCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_PieCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_PieVect.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_PieVect.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_SysCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_SysCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_usDelay.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_usDelay.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F28335_FIXPT_FIR_lnk.cmd</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_TO_FIXEDPTLIB/cmd/F28335_FIXPT_FIR_lnk.cmd</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>examples_setup.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_TO_FIXEDPTLIB/examples/common/examples_setup.c</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>INSTALLROOT_2833X</name>
|
||||
<value>$%7BPARENT-6-PROJECT_LOC%7D/device_support/f2833x</value>
|
||||
</variable>
|
||||
<variable>
|
||||
<name>INSTALLROOT_TO_FIXEDPTLIB</name>
|
||||
<value>$%7BPARENT-2-PROJECT_LOC%7D</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
BIN
Binary file not shown.
+5
@@ -0,0 +1,5 @@
|
||||
//Add watch window variables
|
||||
expRemoveAll()
|
||||
expAdd("fir", getNatural())
|
||||
|
||||
openAnalysisView('Dual Time','C:/Users/a0272561/Repositories/cs30_controlsuite/libs/dsp/FixedPointLib/version/examples/2833x_FixedPoint_FIR16/FIR16_IN_OUT.graphProp')
|
||||
+121
@@ -0,0 +1,121 @@
|
||||
% // TI File $Revision: /main/3 $
|
||||
% // Checkin $Date: November 1, 2010 13:05:07 $
|
||||
% // =====================================================================================
|
||||
% // This software is licensed for use with Texas Instruments C28x
|
||||
% // family DSCs. This license was provided to you prior to installing
|
||||
% // the software. You may review this license by consulting a copy of
|
||||
% // the agreement in the doc directory of this library.
|
||||
% //======================================================================================
|
||||
% //
|
||||
% // FILE: FixedPointFIR16.m
|
||||
% //
|
||||
% // TITLE: DSP2833x Device Fixed Point FIR16 Test Program.
|
||||
% //
|
||||
% //
|
||||
% // ASSUMPTIONS:
|
||||
% //
|
||||
% // This matlab code is reference code for debugging FixedPoint DSP library
|
||||
% // 16 bit FIR module and example project 2833x_FixedPoint_FIR16.
|
||||
% //
|
||||
% //
|
||||
% //
|
||||
% // Watch Variables:
|
||||
% //
|
||||
% // x_raw_sig Input signal (float)
|
||||
% // fir_lpfxx_Q15 FIR filter coefficients (Q15)
|
||||
% // x_Q15 Input signal in Q15 format
|
||||
% // output Filtered signal (Q15)
|
||||
% //
|
||||
% //######################################################################################
|
||||
% //
|
||||
% //
|
||||
% //
|
||||
%// C2000Ware v5.04.00.00
|
||||
%//Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
|
||||
%//
|
||||
%// Redistribution and use in source and binary forms, with or without
|
||||
%// modification, are permitted provided that the following conditions
|
||||
%// are met:
|
||||
%//
|
||||
%// Redistributions of source code must retain the above copyright
|
||||
%// notice, this list of conditions and the following disclaimer.
|
||||
%//
|
||||
%// Redistributions in binary form must reproduce the above copyright
|
||||
%// notice, this list of conditions and the following disclaimer in the
|
||||
%// documentation and/or other materials provided with the
|
||||
%// distribution.
|
||||
%//
|
||||
%// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
%// its contributors may be used to endorse or promote products derived
|
||||
%// from this software without specific prior written permission.
|
||||
%//
|
||||
%// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
%// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
%// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
%// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
%// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
%// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
%// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
%// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
%// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
%// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
%// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
%//$
|
||||
% //######################################################################################
|
||||
|
||||
clear all
|
||||
close all
|
||||
|
||||
disp('==============================================================');
|
||||
disp('==============================================================');
|
||||
disp('this is Matlab version of C28x Fixed Point FIR16 code');
|
||||
disp('The result is stored in array output Q15');
|
||||
disp('The signal is stored in array x_raw_sig (float)');
|
||||
disp('The signal in Q15 format is stored in array x_Q15');
|
||||
disp('==============================================================');
|
||||
|
||||
RadStep = 0.1963495408494;
|
||||
|
||||
N=input('Please enter signal length N =');
|
||||
halfSize=N-1;
|
||||
|
||||
Rad=[0:RadStep:(halfSize)*RadStep];
|
||||
|
||||
Rx=sin(Rad)+cos(Rad*2.3567);
|
||||
Ix=0*(cos(Rad*8.345) + sin(Rad*5.789));
|
||||
|
||||
x=Rx+j*Ix;
|
||||
x_raw_sig=x/2;
|
||||
|
||||
x_Q15=2^15*x/2;
|
||||
|
||||
fir_lpf6_Q15=[-3368,347,17612,17612,347,-3368];
|
||||
|
||||
fir_lpf7_Q15=[-891, -4096, 9083, 21178, 9083, -4096, -891];
|
||||
|
||||
fir_lpf32_Q15=[-31, -61, 92, 122, -186, -248, 348, 449, -607, -778, 1043, 1370, -1909, -2789, 4835, 14710, 14710, 4835, -2789, -1909, 1370, 1043, -778, -607, 449, 348, -248, -186, 122, 92, -61, -31];
|
||||
|
||||
%result=conv(fir_lpf6_Q15,x_Q15)*2^7/2^6/2^16;
|
||||
%result=conv(fir_lpf7_Q15,x_Q15)*2^7/2^6/2^16;
|
||||
result=conv(fir_lpf32_Q15,x_Q15)*2^7/2^6/2^16;
|
||||
|
||||
output=floor(result(1:N));
|
||||
|
||||
plot(output)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
; TI File $Revision: /main/3 $
|
||||
; Checkin $Date: November 1, 2010 13:05:11 $
|
||||
; ========================================================================
|
||||
; This software is licensed for use with Texas Instruments C28x
|
||||
; family DSCs. This license was provided to you prior to installing
|
||||
; the software. You may review this license by consulting a copy of
|
||||
; the agreement in the doc directory of this library.
|
||||
; ------------------------------------------------------------------------
|
||||
; Copyright (C) 2010-2011 Texas Instruments, Incorporated.
|
||||
; All Rights Reserved.
|
||||
; ========================================================================
|
||||
;
|
||||
;
|
||||
; Module definition for external referance
|
||||
; ###########################################################################
|
||||
;
|
||||
;
|
||||
; ###########################################################################
|
||||
|
||||
a) Open Matlab command window, click “fdatool”, the FDATool GUI will pop out.
|
||||
Select the parameters, filter type and other options which you prefer, click
|
||||
Design Filter. The design process is finished.
|
||||
b) Go to Targets-> Generate C header;
|
||||
c) After b), the Generate C header dialogue box pops out and in ‘Data type to use
|
||||
in export’, check ‘Export as’ Signed 16-bit or 32-bit integer (depends on 16 bit
|
||||
FIR or 32 bit FIR). Click ‘Generate’;
|
||||
d) Save the header file. The coefficient can directly port to ‘fft.h’.
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 101 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 98 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 90 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 127 KiB |
+219
@@ -0,0 +1,219 @@
|
||||
//#############################################################################
|
||||
//! \file $FOLDER_EXAMPLES$/$DEVICE$_FixedPoint_FIR16/fir16d.c
|
||||
//!
|
||||
//! \brief 16-bit FIR Filter Example
|
||||
//!
|
||||
//! \date Aug 12, 2014
|
||||
//!
|
||||
//! This examples shows how to implement a 16-bit FIR filter using the optimized
|
||||
//! FIR library routines. This version of the FIR filter has a limitation of 256
|
||||
//! taps (filter order max 255). If a higher order filter is required, refer to the
|
||||
//! FIR16_Alt example.
|
||||
//!
|
||||
//! typedef struct {
|
||||
//! int32_t *coeff_ptr;
|
||||
//! int32_t * dbuffer_ptr;
|
||||
//! int cbindex;
|
||||
//! int order;
|
||||
//! int input;
|
||||
//! int output;
|
||||
//! void (*init)(void *);
|
||||
//! void (*calc)(void *);
|
||||
//! }FIR16;
|
||||
//!
|
||||
//! Users can also use default templates defined within fir.h to initialize
|
||||
//! the FIR16 header structure.
|
||||
//!
|
||||
//! FIR16 fir= FIR16_DEFAULTS;
|
||||
//!
|
||||
//! The MATLAB Filter Design and Analysis Tool (FDATool) is a useful tool
|
||||
//! for designing filters and generating fixed point coefficients. Refer
|
||||
//! to the appendix of the Fixed Point DSP Libray User's Guide for more
|
||||
//! information.
|
||||
//!
|
||||
//! \b Watch \b Variables
|
||||
//! - fir FIR16 object
|
||||
//!
|
||||
//! In CCS, you can invoke the "SetupDebugEnv.js" script from the
|
||||
//! Scripting console to have these variables set up in the Watch window
|
||||
//! and create graphs to show the input/output vectors
|
||||
//
|
||||
// Group: C2000
|
||||
// Target Family: C28x
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright: Copyright (C) 2014-2024 Texas Instruments Incorporated -
|
||||
// http://www.ti.com/ ALL RIGHTS RESERVED $
|
||||
//#############################################################################
|
||||
|
||||
//*****************************************************************************
|
||||
// includes
|
||||
//*****************************************************************************
|
||||
#include "examples_setup.h"
|
||||
#include <filter.h>
|
||||
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
// Filter Symbolic Constants
|
||||
#define FIR_ORDER 32
|
||||
#define SIGNAL_LENGTH 128
|
||||
|
||||
#if(FIR_ORDER & 0x01) // odd
|
||||
#define FIR_ORDER_REV (FIR_ORDER + 1) // even
|
||||
#else
|
||||
#define FIR_ORDER_REV (FIR_ORDER + 2) // even
|
||||
#endif
|
||||
//*****************************************************************************
|
||||
// globals
|
||||
//*****************************************************************************
|
||||
// Create an Instance of FIR16 module and place the object in "firfilt" section
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(fir, "firfilt");
|
||||
#else
|
||||
#pragma DATA_SECTION("firfilt");
|
||||
#endif
|
||||
FIR16 fir= FIR16_DEFAULTS;
|
||||
|
||||
// Define the Delay buffer for the "FIR_ORDER"th order filter
|
||||
// and place it in "firldb" section. Since we define it as int32_t,
|
||||
// The size of the buffer is:
|
||||
// FIR_ORDER even -> (FIR_ORDER+1)/2+1 e.g. FIR_ORDER = 32, size = 17 dwords
|
||||
// odd -> (FIR_ORDER+1)/2 e.g. FIR_ORDER = 31, size = 16 dwords
|
||||
// The delay line buffer must be aligned to a 256 word boundary
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(dbuffer,"firldb");
|
||||
#else
|
||||
#pragma DATA_SECTION("firfilt");
|
||||
#endif
|
||||
int32_t dbuffer[(FIR_ORDER+3)/2];
|
||||
|
||||
// Input/output buffer
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(sigIn, "sigIn");
|
||||
#else
|
||||
#pragma DATA_SECTION("sigIn");
|
||||
#endif
|
||||
int16_t sigIn[SIGNAL_LENGTH];
|
||||
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(sigOut, "sigOut");
|
||||
#else
|
||||
#pragma DATA_SECTION("sigOut");
|
||||
#endif
|
||||
int16_t sigOut[SIGNAL_LENGTH];
|
||||
|
||||
// Define Constant Coefficient Array and place it in the "coefffilt"
|
||||
// section. You can either reorder the coefficients at run time (done
|
||||
// in this example) or just store them reordered.
|
||||
// Index LSW MSW
|
||||
// +---------+---------+
|
||||
// 0 | h(L-1) | h(L/2-1)|
|
||||
// 2 | h(L-2) | h(L/2-2)|
|
||||
// 4 | h(L-3) | h(L/2-3)|
|
||||
// 6 | h(L-4) | h(L/2-4)|
|
||||
// ... | ... | ... |
|
||||
// L/2-3 | h(L/2+2)| h(2) |
|
||||
// L/2-2 | h(L/2+1)| h(1) |
|
||||
// L/2-1 | h(L/2) | h(0) |
|
||||
// +---------+---------+
|
||||
// The size of the array is:
|
||||
// FIR_ORDER even -> (FIR_ORDER+1)+1 e.g. FIR_ORDER = 32, size = 34 words
|
||||
// odd -> (FIR_ORDER+1) e.g. FIR_ORDER = 31, size = 32 words
|
||||
// The reason being that we use the DMAC operation which will multiply
|
||||
// the coefficients in 32-bit chunks, we don't want an odd size coefficient
|
||||
// buffer and risk corrupting the delay line
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(coeff, "coefffilt");
|
||||
#else
|
||||
#pragma DATA_SECTION("coefffilt");
|
||||
#endif
|
||||
int16_t coeff[FIR_ORDER+2];
|
||||
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(revCoeff, "coefffilt");
|
||||
#else
|
||||
#pragma DATA_SECTION("coefffilt");
|
||||
#endif
|
||||
int16_t revCoeff[FIR_ORDER+2];
|
||||
|
||||
// Start of main()
|
||||
int main(void)
|
||||
{
|
||||
// Locals
|
||||
int32_t xn = 0, yn = 0;
|
||||
float RadStep = 0.1963495408494f;
|
||||
float Rad = 0.0f;
|
||||
uint32_t i = 0;
|
||||
|
||||
#ifdef _FLASH
|
||||
FIXPT_DSP_initFlash();
|
||||
#endif //_FLASH
|
||||
FIXPT_DSP_initSystemClocks();
|
||||
FIXPT_DSP_initEpie();
|
||||
|
||||
// Load the coefficients in normal order. If
|
||||
// FIR_ORDER even -> number of taps are odd, after copying the coefficients
|
||||
// zero out the last element of coeffs
|
||||
// odd -> number of taps are even, simply copy the coefficients
|
||||
for(i = 0; i < FIR_ORDER + 2; i++){
|
||||
coeff[i] = FIR16_LPF32_TEST[i];
|
||||
}
|
||||
coeff[FIR_ORDER + 1] = 0;
|
||||
|
||||
// if the order of the coefficients is even, you will have
|
||||
// an odd number of taps; zero out the location right after the
|
||||
// last tap
|
||||
if((FIR_ORDER & 0x01) == 0){
|
||||
revCoeff[FIR_ORDER_REV-1] = 0;
|
||||
}
|
||||
// Reorder the coefficients
|
||||
// FIR_ORDER even -> (FIR_ORDER+1)+1 e.g. FIR_ORDER = 32, size = 34 words
|
||||
// odd -> (FIR_ORDER+1) e.g. FIR_ORDER = 31, size = 32 words
|
||||
for(i = 0; i < FIR_ORDER + 2; i = i + 2){
|
||||
revCoeff[FIR_ORDER_REV-i-1] = coeff[i/2+FIR_ORDER_REV/2];
|
||||
revCoeff[FIR_ORDER_REV-i-2] = coeff[i/2];
|
||||
}
|
||||
|
||||
for(i=0; i < SIGNAL_LENGTH; i++){
|
||||
sigIn[i] =0;
|
||||
sigOut[i] =0;
|
||||
}
|
||||
|
||||
// Initialize FIR16 object
|
||||
fir.order = FIR_ORDER;
|
||||
fir.dbuffer_ptr = &dbuffer[0];
|
||||
fir.coeff_ptr = (int32_t *)&revCoeff[0];
|
||||
fir.init(&fir);
|
||||
|
||||
// FIR calculation
|
||||
for(i = 0; i < SIGNAL_LENGTH; i++){
|
||||
xn=(int)(32768*(sin(Rad) + cos(Rad*2.3567))/2); //Q15
|
||||
// Impulse function
|
||||
//if(i == 0){
|
||||
// xn = (1 << 15);
|
||||
//}else{
|
||||
// xn = 0;
|
||||
//}
|
||||
sigIn[i] = xn;
|
||||
fir.input = sigIn[i]; // Q15 format
|
||||
fir.calc(&fir);
|
||||
yn = fir.output;
|
||||
sigOut[i] = yn;
|
||||
Rad = Rad + RadStep;
|
||||
}
|
||||
|
||||
|
||||
//asm(" ESTOP0");
|
||||
for(;;);
|
||||
|
||||
// code should never reach this pointer
|
||||
return 1;
|
||||
|
||||
} /* End: main() */
|
||||
|
||||
//###########################################################################
|
||||
// End of File
|
||||
//###########################################################################
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?ccsproject version="1.0"?>
|
||||
<projectOptions>
|
||||
<deviceFamily value="C2000"/>
|
||||
<isTargetManual value="false"/>
|
||||
</projectOptions>
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?eclipse-cdt version="2.0"?>
|
||||
|
||||
<cdtproject id="org.eclipse.cdt.managedbuilder.core.managedMake">
|
||||
<extension id="org.eclipse.cdt.managedbuilder.core.ManagedBuildManager" point="org.eclipse.cdt.core.ScannerInfoProvider"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<data>
|
||||
<item id="org.eclipse.cdt.core.pathentry">
|
||||
<pathentry kind="src" path=""/>
|
||||
<pathentry kind="out" path=""/>
|
||||
<pathentry kind="con" path="org.eclipse.cdt.managedbuilder.MANAGED_CONTAINER"/>
|
||||
<pathentry kind="con" path="com.ti.ccstudio.managedbuild.core.CCS_CONTAINER"/>
|
||||
</item>
|
||||
</data>
|
||||
</cdtproject>
|
||||
@@ -0,0 +1,195 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?>
|
||||
|
||||
<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317" moduleId="org.eclipse.cdt.core.settings" name="RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_TO_FIXEDPTLIB" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/>
|
||||
<stringMacro name="INSTALLROOT_2833X" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../../../device_support/f2833x"/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="2833x_FixedPoint_FIR16_Alt_Alt" buildProperties="" description="RAM build configuration" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317" name="RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317.327083807" name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain.1676395359" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.139208857">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1512894819" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS320C28XX.TMS320F28335"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=28335_RAM_lnk.cmd"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts2800_ml.lib"/>
|
||||
<listOptionValue builtIn="false" value="IS_ELF=false"/>
|
||||
<listOptionValue builtIn="false" value="PROJECT_KIND=com.ti.ccstudio.managedbuild.core.ProjectKind_Executable"/>
|
||||
<listOptionValue builtIn="false" value="IS_ASSEMBLY_ONLY=false"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1439939768" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="6.2.5" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug.1228428871" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug.1543415991" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug.1014186289" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL.1276024401" name="Use large memory model (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY.409452695" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.150373748" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT.577633857" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.388627654" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH.568035091" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/common/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/examples/common""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING.1374230148" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.KEEP_ASM.516393193" name="Keep the generated assembly language (.asm) file (--keep_asm, -k)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.KEEP_ASM" value="false" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SOURCE_INTERLIST.920490890" name="Source interlist" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SOURCE_INTERLIST" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SOURCE_INTERLIST._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE.1923372586" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="RAM"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS.1972770834" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS.1936690688" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS.1305145091" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS.1979537973" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.139208857" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE.1298858410" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE" value="0x300" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE.777182326" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE" value=""2833x_FixedPoint_FIR16_Alt_Alt.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE.965462428" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE" value=""2833x_FixedPoint_FIR16_Alt_Alt.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles.971167039" name="[Deprecated] Generated Linker Command files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""$(GEN_CMDS_QUOTED)""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY.715544849" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value="c28x_fixedpoint_dsp_library.lib"/>
|
||||
<listOptionValue builtIn="false" value=""rts2800_ml.lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH.589053542" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO.1008002930" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO" value=""2833x_FixedPoint_FIR16_Alt_Alt_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE.2056863871" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE" value="RAM" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS.1225799143" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS.247167082" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS.612960073" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317.1429826370">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317.1429826370" moduleId="org.eclipse.cdt.core.settings" name="_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_TO_FIXEDPTLIB" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/>
|
||||
<stringMacro name="INSTALLROOT_2833X" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../../../device_support/f2833x"/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="2833x_FixedPoint_FIR16_Alt_Alt" buildProperties="" description="_FLASH build configuration" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317.1429826370" name="_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317.1429826370." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain.963888321" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.139208857">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.237400829" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS320C28XX.TMS320F28335"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=28335_RAM_lnk.cmd"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts2800_ml.lib"/>
|
||||
<listOptionValue builtIn="false" value="IS_ELF=false"/>
|
||||
<listOptionValue builtIn="false" value="PROJECT_KIND=com.ti.ccstudio.managedbuild.core.ProjectKind_Executable"/>
|
||||
<listOptionValue builtIn="false" value="IS_ASSEMBLY_ONLY=false"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.213836648" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="6.2.5" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug.220673265" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug.1745940650" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug.1091131677" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL.2066414434" name="Use large memory model (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY.987318690" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.2090007226" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT.111776337" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.698523697" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH.872928283" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/common/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/examples/common""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING.1603970298" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.KEEP_ASM.344361919" name="Keep the generated assembly language (.asm) file (--keep_asm, -k)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.KEEP_ASM" value="false" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SOURCE_INTERLIST.464792271" name="Source interlist" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SOURCE_INTERLIST" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SOURCE_INTERLIST._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE.1322362964" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS.1502098425" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS.2144387115" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS.62864520" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS.2053809851" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.1638870442" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE.1368743221" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE" value="0x300" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE.602126066" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE" value=""2833x_FixedPoint_FIR16_Alt_Alt.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE.1006589585" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE" value=""2833x_FixedPoint_FIR16_Alt_Alt.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles.1713737180" name="[Deprecated] Generated Linker Command files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""$(GEN_CMDS_QUOTED)""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY.324521421" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value="c28x_fixedpoint_dsp_library.lib"/>
|
||||
<listOptionValue builtIn="false" value=""rts2800_ml.lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH.2039695820" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO.320864537" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO" value=""2833x_FixedPoint_FIR16_Alt_Alt_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE.101872767" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE" value="_FLASH" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS.678103067" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS.183198230" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS.671308478" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="2833x_FixedPoint_FIR16_Alt_Alt.com.ti.ccstudio.buildDefinitions.C2000.ProjectType.2025933334" name="C2000" projectType="com.ti.ccstudio.buildDefinitions.C2000.ProjectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
||||
<project-mappings>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
</project-mappings>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration"/>
|
||||
</cproject>
|
||||
@@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>2833x_FixedPoint_FIR16_Alt</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>DSP2833x_ADC_cal.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_ADC_cal.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_Adc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_Adc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_CodeStartBranch.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_CodeStartBranch.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_CpuTimers.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_CpuTimers.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_DBGIER.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_DBGIER.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_DefaultIsr.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_DefaultIsr.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_GlobalVariableDefs.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/headers/source/DSP2833x_GlobalVariableDefs.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_Headers_nonBIOS.cmd</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/headers/cmd/DSP2833x_Headers_nonBIOS.cmd</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_PieCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_PieCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_PieVect.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_PieVect.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_SysCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_SysCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_usDelay.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_usDelay.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F28335_FIXPT_FIR_lnk.cmd</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_TO_FIXEDPTLIB/cmd/F28335_FIXPT_FIR_lnk.cmd</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>examples_setup.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_TO_FIXEDPTLIB/examples/common/examples_setup.c</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>INSTALLROOT_2833X</name>
|
||||
<value>$%7BPARENT-6-PROJECT_LOC%7D/device_support/f2833x</value>
|
||||
</variable>
|
||||
<variable>
|
||||
<name>INSTALLROOT_TO_FIXEDPTLIB</name>
|
||||
<value>$%7BPARENT-2-PROJECT_LOC%7D</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
BIN
Binary file not shown.
+5
@@ -0,0 +1,5 @@
|
||||
//Add watch window variables
|
||||
expRemoveAll()
|
||||
expAdd("fir", getNatural())
|
||||
|
||||
openAnalysisView('Dual Time','C:/Users/a0272561/Repositories/cs30_controlsuite/libs/dsp/FixedPointLib/version/examples/2833x_FixedPoint_FIR16_Alt/FIR16_ALT_IN_OUT.graphProp')
|
||||
+188
@@ -0,0 +1,188 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Fixed Point Finite Impulse Response Filter
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%//! \brief 16/32-bit FIR filter
|
||||
%//!
|
||||
%//! \author Vishal Coelho
|
||||
%//!
|
||||
%//! \details 16/32 bit fixed point filter that replicates
|
||||
%//! the operation of the FIR16(32) filter in the fixed point
|
||||
%//! library. Will be used to test the output of the asm filter
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% Basics of fimath
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Table taken from MATLAB R2013b help doc
|
||||
%+-------------------------------------------------------------------------------------------+
|
||||
%| |A |B |Sum = A+B |Prod = A*B |
|
||||
%+-------------------------------------------------------------------------------------------+
|
||||
%|Format |fi(vA,s1,w1,f1)|fi(vB,s2,w2,f2)|- |- |
|
||||
%|Sign |s1 |s2 |s1||s2 |s1||s2 |
|
||||
%|Integer bits |I1 = w1-f1-s1 |I2= w2-f2-s2 |max(I1 , I2) + 1 |(w1+w2)-(f1+f2) |
|
||||
%|Fraction bits|f1 |f2 |max(f1 , f 2) + 1 |f1 + f2 |
|
||||
%|Total bits |w1 |w2 |1+max(I1,I2)+1+max(f1,f2)+1 |w1 + w2 |
|
||||
%+-------------------------------------------------------------------------------------------+
|
||||
clc
|
||||
clear all
|
||||
close all
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% User Inputs
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
W = input('Do you want \n 1. 16-bit\n 2. 32-bit FIR\n operation? :');
|
||||
S = 1; % signed
|
||||
if(W == 1)
|
||||
W = 16; Q = 15;
|
||||
elseif(W == 2)
|
||||
W = 32; Q = 31;
|
||||
else
|
||||
disp('Value out of range, default to 1\n');
|
||||
W = 16; Q = 15;
|
||||
end
|
||||
sizeOfInput = input('Size of input? ');
|
||||
while(sizeOfInput <= 0 || sizeOfInput > 65536)
|
||||
disp('Invalid: ');
|
||||
sizeOfInput = input('Size of input? ');
|
||||
end
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% Specify the Fixed Point Math Object
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
FIPREF_STATE = get(fipref);
|
||||
reset(fipref)
|
||||
% Specify the preferences for the fi objects
|
||||
P = fipref(...
|
||||
'NumberDisplay', 'RealWorldValue', ...
|
||||
'NumericTypeDisplay', 'full', ...
|
||||
'FimathDisplay', 'full'... %MATLAB displays custom and default fi objects info
|
||||
);
|
||||
% Specifying fimath object allows you to control bit growth from successive
|
||||
% operations and tells MATLAB how arithmetic operations should be handled
|
||||
F = fimath(...
|
||||
'SumMode', 'SpecifyPrecision',...
|
||||
'SumWordLength', W,...
|
||||
'SumFractionLength', Q,...
|
||||
'ProductMode', 'SpecifyPrecision',...
|
||||
'ProductWordLength', W, ...
|
||||
'ProductFractionLength', Q, ...
|
||||
'RoundingMethod', 'Convergent' ... %round to closest (to even on ties)
|
||||
);
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% filter coefficients
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
samplingFreq = 200e3;
|
||||
attenStop = 60;
|
||||
attenPass = 1;
|
||||
freqPass = 20e3;
|
||||
freqStop = 30e3;
|
||||
|
||||
LowPassSpecObj = fdesign.lowpass('Fp,Fst,Ap,Ast', freqPass, freqStop,...
|
||||
attenPass, attenStop, samplingFreq);
|
||||
|
||||
% Display all available methods
|
||||
filterMenu = designmethods(LowPassSpecObj);
|
||||
disp(filterMenu);
|
||||
menuChoice = input('Choose a method(Enter a number):');
|
||||
while(menuChoice < 1 || menuChoice > length(filterMenu))
|
||||
disp(['Invalid choice, choose between 1 and ',num2str(length(filterMenu))]);
|
||||
menuChoice = input('Choose a method(Enter a number):');
|
||||
end
|
||||
|
||||
% what are the design options for the chosen method
|
||||
LowPassDesignOpts = designopts(LowPassSpecObj, char(filterMenu(menuChoice)))
|
||||
|
||||
% Design the filter using the user specified method and min order
|
||||
LowPassFilt = design(LowPassSpecObj, char(filterMenu(menuChoice)))
|
||||
|
||||
% Display the filter
|
||||
% fvtool(LowPassFilt);
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% Build the MEX function
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Filter parameters
|
||||
N = length(LowPassFilt.Numerator);
|
||||
x = fi(zeros(sizeOfInput,1),S,W,Q,'fimath',F);
|
||||
c = fi(LowPassFilt.Numerator,S,W,Q, 'fimath', F);
|
||||
C = coder.Constant(c);
|
||||
|
||||
% For the 32-bit FIR we want the input to be Q31 but the output to be
|
||||
% Q30, so for each product there will be a scaling of 0.5
|
||||
if W == 32
|
||||
yisd = fi(zeros(sizeOfInput,1),S,W,Q-1,'DataType','Fixed','fimath',F);
|
||||
else
|
||||
yisd = fi(zeros(sizeOfInput,1),S,W,Q,'DataType','Fixed','fimath',F);
|
||||
end
|
||||
|
||||
buildInstrumentedMex fir_m ...
|
||||
-o fir_fixed ...
|
||||
-args {x, C, yisd}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% Test Bench 1
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
t = linspace(0,1,sizeOfInput); % Time vector from 0 to 1 second
|
||||
n = 0 : sizeOfInput-1;
|
||||
f1 = 20e3; f2 = 40e3; f3 = 45e3; % Frequencies of the inputs
|
||||
fs = samplingFreq; % Add two sine waves together
|
||||
k1 = f1/fs; k2 = f2/fs; k3 = f3/fs;
|
||||
xmulti = 0.5*(sin(2*pi*k1.*n)+sin(2*pi*k2.*n)+sin(2*pi*k3.*n));
|
||||
x(:) = xmulti; % Cast the input to fixed-point
|
||||
|
||||
% Running the MEX function
|
||||
ymulti = fir_fixed(x,yisd);
|
||||
|
||||
% Plot the output
|
||||
clf
|
||||
plot(t,x,'c',t,ymulti,'bo-')
|
||||
title('Filter')
|
||||
legend('Input','Fixed Point Output')
|
||||
figure(gcf); drawnow;
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% Write the input/output/coeffs vectors to file
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
X = reshape(x, sizeOfInput/8, 8);
|
||||
if W == 16
|
||||
S_X = sprintf(['%10d, %10d, %10d, %10d, %10d, %10d,',...
|
||||
'%10d, %10d, \n'], (X.int));
|
||||
else
|
||||
S_X = sprintf(['%14d, %14d, %14d, %14d, %14d, %14d,',...
|
||||
'%14d, %14d, \n'], (X.int));
|
||||
end
|
||||
fid = fopen('data_input.txt', 'w');
|
||||
fprintf(fid, ['// f1 =',num2str(f1),', f2 = ',num2str(f2),...
|
||||
', f3 = ',num2str(f3),' fs = ',num2str(samplingFreq),'\n']);
|
||||
fprintf(fid, S_X);
|
||||
fclose(fid);
|
||||
|
||||
Y = reshape(ymulti, sizeOfInput/8, 8);
|
||||
if W == 16
|
||||
S_Y = sprintf(['%10d, %10d, %10d, %10d, %10d, %10d,',...
|
||||
'%10d, %10d, \n'], (Y.int));
|
||||
else
|
||||
S_Y = sprintf(['%14d, %14d, %14d, %14d, %14d, %14d,',...
|
||||
'%14d, %14d, \n'], (Y.int));
|
||||
end
|
||||
fid = fopen('data_output.txt', 'w');
|
||||
fprintf(fid, S_Y);
|
||||
fclose(fid);
|
||||
|
||||
C = c(end:-1:1);
|
||||
if W == 16
|
||||
S_C = sprintf(['%10d, %10d, %10d, %10d, %10d, %10d,',...
|
||||
'%10d, %10d, \n'], (C.int));
|
||||
else
|
||||
S_C = sprintf(['%14d, %14d, %14d, %14d, %14d, %14d,',...
|
||||
'%14d, %14d, \n'], (C.int));
|
||||
end
|
||||
fid = fopen('coeffs.txt', 'w');
|
||||
fprintf(fid, [...
|
||||
'// Fs = ',num2str(samplingFreq ),'\n',...
|
||||
'// Fst = ',num2str(attenStop ),'\n',...
|
||||
'// Fp = ',num2str(attenPass ),'\n',...
|
||||
'// Ap = ',num2str(freqPass ),'\n',...
|
||||
'// Ast = ',num2str(freqStop ),'\n']);
|
||||
fprintf(fid, S_C);
|
||||
fclose(fid);
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% The filter funtion
|
||||
% \param x , the input vector
|
||||
% \param c , the coefficients
|
||||
% \param y, the filtered output (specified here so that the mex generation
|
||||
% will create a reference to y, allowing us to set its data type
|
||||
% outside the function)
|
||||
% \return y, the filtered output
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
function y = fir_m(x, c, y)
|
||||
N = length(x); L = length(c); k = 1;
|
||||
for i = 1 : N
|
||||
for j = 1 : min(i, L)
|
||||
y(i) = y(i) + x(i - j + 1) * c(j);
|
||||
end
|
||||
end
|
||||
end
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
a) Run the script "C28xFixedPointLib_FIR.m" in MATLAB
|
||||
b) It will ask you to choose between 16 and 32-bit operation, choose the first
|
||||
option
|
||||
c) It will then request the size of the input - this is used during the test phase
|
||||
when it will generate a test signal of this size
|
||||
d) Find and alter these values per your needs
|
||||
samplingFreq
|
||||
attenStop
|
||||
attenPass
|
||||
freqPass
|
||||
freqStop
|
||||
e) The script will list out the different design methods available and ask for a
|
||||
choice. It then proceeds to generate a low pass filter that matches these
|
||||
constraints using the fdesign.lowpass(). The user may choose to implement a
|
||||
different filter: bandpass, bandstop or highpass using the fdesign class with
|
||||
the appropriate arguments (please see the help menu in MATLAB for more details
|
||||
on what parameters are required for the different class objects)\
|
||||
f) It will then create a mex function that takes the input, applies the filter
|
||||
and generates the output. It proceeds to write these arrays, in the chosen fixed
|
||||
point format, to data_input.txt, coeffs.txt and data_output.txt respectively.
|
||||
g) You may use the coeffs.txt file in your code as follows
|
||||
const int16_t coeffs[SIZE] = {
|
||||
#include "coeffs.txt"
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// Fs = 200000
|
||||
// Fst = 60
|
||||
// Fp = 1
|
||||
// Ap = 20000
|
||||
// Ast = 30000
|
||||
46, 76, 83, 22, -122, -318, -481, -500,
|
||||
-304, 78, 497, 724, 563, -19, -822, -1438,
|
||||
-1401, -405, 1518, 3948, 6190, 7534, 7534, 6190,
|
||||
3948, 1518, -405, -1401, -1438, -822, -19, 563,
|
||||
724, 497, 78, -304, -500, -481, -318, -122,
|
||||
22, 83, 76, 46,
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
// f1 =20000, f2 = 40000, f3 = 45000 fs = 200000
|
||||
0, 32767, 30275, -8646, -15582, 11585, 19207, -13390,
|
||||
-32768, -22649, 16384, 27775, 9630, -1486, 7303, 11585,
|
||||
-3678, -20550, -20149, -9030, 0, 9030, 20149, 20550,
|
||||
3678, -11585, -7303, 1486, -9630, -27775, -16384, 22649,
|
||||
32767, 13390, -19207, -11585, 15582, 8646, -30275, -32768,
|
||||
0, 32767, 30275, -8646, -15582, 11585, 19207, -13390,
|
||||
-32768, -22649, 16384, 27775, 9630, -1486, 7303, 11585,
|
||||
-3678, -20550, -20149, -9030, 0, 9030, 20149, 20550,
|
||||
3678, -11585, -7303, 1486, -9630, -27775, -16384, 22649,
|
||||
32767, 13390, -19207, -11585, 15582, 8646, -30275, -32768,
|
||||
0, 32767, 30275, -8646, -15582, 11585, 19207, -13390,
|
||||
-32768, -22649, 16384, 27775, 9630, -1486, 7303, 11585,
|
||||
-3678, -20550, -20149, -9030, 0, 9030, 20149, 20550,
|
||||
3678, -11585, -7303, 1486, -9630, -27775, -16384, 22649,
|
||||
32767, 13390, -19207, -11585, 15582, 8646, -30275, -32768,
|
||||
0, 32767, 30275, -8646, -15582, 11585, 19207, -13390,
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
0, 46, 119, 141, 57, -144, -422, -698,
|
||||
-822, -660, -148, 579, 1205, 1364, 818, -382,
|
||||
-1802, -2701, -2260, 26, 4036, 8886, 13112, 15117,
|
||||
13752, 8887, 1655, -5819, -11096, -12300, -8869, -1851,
|
||||
6290, 12549, 14472, 11160, 3691, -5268, -12424, -15046,
|
||||
-12073, -4549, 4714, 12214, 15103, 12280, 4846, -4389,
|
||||
-11982, -15132, -12697, -5711, 3056, 10233, 13118, 10714,
|
||||
4017, -4356, -11147, -13726, -11081, -4226, 4226, 11081,
|
||||
13726, 11147, 4356, -4017, -10714, -13118, -10233, -3056,
|
||||
5711, 12697, 15132, 11982, 4389, -4846, -12280, -15103,
|
||||
-12214, -4668, 4668, 12214, 15103, 12280, 4846, -4389,
|
||||
-11982, -15132, -12697, -5711, 3056, 10233, 13118, 10714,
|
||||
4017, -4356, -11147, -13726, -11081, -4226, 4226, 11081,
|
||||
13726, 11147, 4356, -4017, -10714, -13118, -10233, -3056,
|
||||
5711, 12697, 15132, 11982, 4389, -4846, -12280, -15103,
|
||||
-12214, -4668, 4668, 12214, 15103, 12280, 4846, -4389,
|
||||
+220
@@ -0,0 +1,220 @@
|
||||
//#############################################################################
|
||||
//! \file $FOLDER_EXAMPLES$/$DEVICE$_FixedPoint_FIR16_Alt/fir16d_alt.c
|
||||
//!
|
||||
//! \brief Alternate 16-bit FIR Filter Example
|
||||
//!
|
||||
//! \date Aug 12, 2014
|
||||
//!
|
||||
//! This example shows an alternate 16-bit FIR implementation. The alternate
|
||||
//! version can have up to 2^16 or 65536 filter taps.
|
||||
//! The header structure of 16 bit filter is shown as follows:
|
||||
//!
|
||||
//! typedef struct {
|
||||
//! int32_t *coeff_ptr;
|
||||
//! int32_t * dbuffer_ptr;
|
||||
//! int cbindex;
|
||||
//! int order;
|
||||
//! int input;
|
||||
//! int output;
|
||||
//! void (*init)(void *);
|
||||
//! void (*calc)(void *);
|
||||
//! }FIR16;
|
||||
//!
|
||||
//! Users can also use default templates defined within fir.h to initialize
|
||||
//! the FIR16 header structure.
|
||||
//!
|
||||
//! FIR16 fir= FIR16_ALT_DEFAULTS;
|
||||
//!
|
||||
//! The MATLAB Filter Design and Analysis Tool (FDATool) is a useful tool
|
||||
//! for designing filters and generating fixed point coefficients. Refer
|
||||
//! to the appendix of the Fixed Point DSP Libray User's Guide for more
|
||||
//! information.
|
||||
//!
|
||||
//! \b Watch \b Variables
|
||||
//! - fir FIR16 object
|
||||
//!
|
||||
//! In CCS, you can invoke the "SetupDebugEnv.js" script from the
|
||||
//! Scripting console to have these variables set up in the Watch window
|
||||
//! and create graphs to show the input/output vectors
|
||||
//
|
||||
// Group: C2000
|
||||
// Target Family: C28x
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright: Copyright (C) 2014-2024 Texas Instruments Incorporated -
|
||||
// http://www.ti.com/ ALL RIGHTS RESERVED $
|
||||
//#############################################################################
|
||||
|
||||
//*****************************************************************************
|
||||
// includes
|
||||
//*****************************************************************************
|
||||
#include "examples_setup.h"
|
||||
#include <filter.h>
|
||||
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
// Filter Symbolic Constants
|
||||
#define FIR_ORDER 43
|
||||
#define SIGNAL_LENGTH 128
|
||||
#define TOLERANCE (1L << 5) // 0.009765 in Q15
|
||||
|
||||
#if(FIR_ORDER & 0x01) // odd
|
||||
#define FIR_ORDER_REV (FIR_ORDER + 1) // even
|
||||
#else
|
||||
#define FIR_ORDER_REV (FIR_ORDER + 2) // even
|
||||
#endif
|
||||
|
||||
//*****************************************************************************
|
||||
// globals
|
||||
//*****************************************************************************
|
||||
// Create an Instance of FIR16 module and place the object in "firfilt" section
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(fir, "firfilt");
|
||||
#else
|
||||
#pragma DATA_SECTION("firfilt");
|
||||
#endif
|
||||
FIR16 fir= FIR16_ALT_DEFAULTS;
|
||||
|
||||
// Define the Delay buffer for the "FIR_ORDER"th order filter
|
||||
// and place it in "firldb" section. Since we define it as int32_t,
|
||||
// The size of the buffer is:
|
||||
// FIR_ORDER even -> (FIR_ORDER+1)/2+1 e.g. FIR_ORDER = 32, size = 17 dwords
|
||||
// odd -> (FIR_ORDER+1)/2 e.g. FIR_ORDER = 31, size = 16 dwords
|
||||
// For the alternate FIR implementation, the delay line buffer need
|
||||
// not be aligned to a specific boundary
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(dbuffer,"firldb");
|
||||
#else
|
||||
#pragma DATA_SECTION("firfilt");
|
||||
#endif
|
||||
int32_t dbuffer[(FIR_ORDER+1)/2];
|
||||
|
||||
// Input/output buffer
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(sigIn, "sigIn");
|
||||
#else
|
||||
#pragma DATA_SECTION("sigIn");
|
||||
#endif
|
||||
int16_t sigIn[SIGNAL_LENGTH] = {
|
||||
#include "data_input.txt"
|
||||
};
|
||||
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(sigOut, "sigOut");
|
||||
#else
|
||||
#pragma DATA_SECTION("sigOut");
|
||||
#endif
|
||||
int16_t sigOut[SIGNAL_LENGTH];
|
||||
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(goldOut, "sigOut");
|
||||
#else
|
||||
#pragma DATA_SECTION("sigOut");
|
||||
#endif
|
||||
int16_t goldOut[SIGNAL_LENGTH] = {
|
||||
#include "data_output.txt"
|
||||
};
|
||||
|
||||
// Error between computed output and MATLAB output
|
||||
int16_t err[SIGNAL_LENGTH];
|
||||
|
||||
// Define Constant Coefficient Array and place it in the "coefffilt"
|
||||
// section. You can either reorder the coefficients at run time (done
|
||||
// in this example) or just store them reordered.
|
||||
// Index LSW MSW
|
||||
// +---------+---------+
|
||||
// 0 | h(L-1) | h(L/2-1)|
|
||||
// 2 | h(L-2) | h(L/2-2)|
|
||||
// 4 | h(L-3) | h(L/2-3)|
|
||||
// 6 | h(L-4) | h(L/2-4)|
|
||||
// ... | ... | ... |
|
||||
// L/2-3 | h(L/2+2)| h(2) |
|
||||
// L/2-2 | h(L/2+1)| h(1) |
|
||||
// L/2-1 | h(L/2) | h(0) |
|
||||
// +---------+---------+
|
||||
// The size of the array is:
|
||||
// FIR_ORDER even -> (FIR_ORDER+1)+1 e.g. FIR_ORDER = 32, size = 34 words
|
||||
// odd -> (FIR_ORDER+1) e.g. FIR_ORDER = 31, size = 32 words
|
||||
// The reason being that we use the DMAC operation which will multiply
|
||||
// the coefficients in 32-bit chunks, we don't want an odd size coefficient
|
||||
// buffer and risk corrupting the delay line
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(coeff, "coefffilt");
|
||||
#else
|
||||
#pragma DATA_SECTION("coefffilt");
|
||||
#endif
|
||||
const int16_t coeff[FIR_ORDER+1] = {
|
||||
#include "coeffs.txt"
|
||||
};
|
||||
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(revCoeff, "coefffilt");
|
||||
#else
|
||||
#pragma DATA_SECTION("coefffilt");
|
||||
#endif
|
||||
int16_t revCoeff[FIR_ORDER+2];
|
||||
|
||||
// Start of main()
|
||||
int main(void)
|
||||
{
|
||||
//Locals
|
||||
uint32_t i, pass = 0, fail = 0;
|
||||
|
||||
#ifdef _FLASH
|
||||
FIXPT_DSP_initFlash();
|
||||
#endif //_FLASH
|
||||
FIXPT_DSP_initSystemClocks();
|
||||
FIXPT_DSP_initEpie();
|
||||
|
||||
// if the order of the coefficients is even, you will have
|
||||
// an odd number of taps; zero out the location right after the
|
||||
// last tap
|
||||
if((FIR_ORDER & 0x01) == 0){
|
||||
revCoeff[FIR_ORDER_REV-1] = 0;
|
||||
}
|
||||
// Reorder the coefficients
|
||||
// FIR_ORDER even -> (FIR_ORDER+1)+1 e.g. FIR_ORDER = 32, size = 34 words
|
||||
// odd -> (FIR_ORDER+1) e.g. FIR_ORDER = 31, size = 32 words
|
||||
for(i = 0; i < FIR_ORDER + 1; i = i + 2){
|
||||
revCoeff[FIR_ORDER_REV-i-1] = coeff[i/2+FIR_ORDER_REV/2];
|
||||
revCoeff[FIR_ORDER_REV-i-2] = coeff[i/2];
|
||||
}
|
||||
|
||||
// Initialize FIR16 object
|
||||
fir.order = FIR_ORDER;
|
||||
fir.dbuffer_ptr = &dbuffer[0];
|
||||
fir.coeff_ptr = (int32_t *)&revCoeff[0];
|
||||
fir.init(&fir);
|
||||
|
||||
// FIR calculation
|
||||
for(i = 0; i < SIGNAL_LENGTH; i++){
|
||||
fir.input = sigIn[i]; // Q15 format
|
||||
fir.calc(&fir);
|
||||
sigOut[i]=fir.output;
|
||||
}
|
||||
|
||||
// Error checking
|
||||
for(i = 0; i < SIGNAL_LENGTH; i++){
|
||||
err[i] = abs(sigOut[i] - goldOut[i]);
|
||||
if(err[i] > TOLERANCE){
|
||||
fail++;
|
||||
}else{
|
||||
pass++;
|
||||
}
|
||||
}
|
||||
|
||||
//asm(" ESTOP0");
|
||||
for(;;);
|
||||
|
||||
// code should never reach this pointer
|
||||
return 1;
|
||||
|
||||
} /* End: main() */
|
||||
|
||||
|
||||
//###########################################################################
|
||||
// End of File
|
||||
//###########################################################################
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?ccsproject version="1.0"?>
|
||||
<projectOptions>
|
||||
<deviceFamily value="C2000"/>
|
||||
<isTargetManual value="false"/>
|
||||
</projectOptions>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?eclipse-cdt version="2.0"?>
|
||||
|
||||
<cdtproject id="org.eclipse.cdt.managedbuilder.core.managedMake">
|
||||
<extension id="org.eclipse.cdt.managedbuilder.core.ManagedBuildManager" point="org.eclipse.cdt.core.ScannerInfoProvider"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<data>
|
||||
<item id="org.eclipse.cdt.core.pathentry">
|
||||
<pathentry kind="src" path=""/>
|
||||
<pathentry kind="out" path=""/>
|
||||
<pathentry kind="con" path="org.eclipse.cdt.managedbuilder.MANAGED_CONTAINER"/>
|
||||
<pathentry kind="con" path="com.ti.ccstudio.managedbuild.core.CCS_CONTAINER"/>
|
||||
</item>
|
||||
</data>
|
||||
</cdtproject>
|
||||
@@ -0,0 +1,191 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?>
|
||||
|
||||
<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1167455395">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1167455395" moduleId="org.eclipse.cdt.core.settings" name="RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_TO_FIXEDPTLIB" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/>
|
||||
<stringMacro name="INSTALLROOT_2833X" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../../../device_support/f2833x"/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="2833x_FixedPoint_FIR32" buildProperties="" description="RAM build configuration" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1167455395" name="RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1167455395.1253047008" name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain.153769356" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.1803218541">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.448593104" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS320C28XX.TMS320F28335"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=28335_RAM_lnk.cmd"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts2800_ml.lib"/>
|
||||
<listOptionValue builtIn="false" value="IS_ELF=false"/>
|
||||
<listOptionValue builtIn="false" value="PROJECT_KIND=com.ti.ccstudio.managedbuild.core.ProjectKind_Executable"/>
|
||||
<listOptionValue builtIn="false" value="IS_ASSEMBLY_ONLY=false"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1338287242" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="6.2.5" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug.1781999459" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug.669042836" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug.97019494" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL.1443521914" name="Use large memory model (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY.1045999036" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.164382883" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT.276640197" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.446899883" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH.179017660" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/common/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/examples/common""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING.509689798" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE.795329530" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="RAM"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS.827808068" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS.1402447526" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS.473348520" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS.279756959" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.1803218541" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE.1873787149" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE" value="0x300" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE.286014860" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE" value=""2833x_FixedPoint_FIR32.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE.302674299" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE" value=""2833x_FixedPoint_FIR32.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles.659707005" name="[Deprecated] Generated Linker Command files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""$(GEN_CMDS_QUOTED)""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY.1238814190" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value="c28x_fixedpoint_dsp_library.lib"/>
|
||||
<listOptionValue builtIn="false" value=""rts2800_ml.lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH.1684860463" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO.426277592" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO" value=""2833x_FixedPoint_FIR32_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE.740686034" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE" value="RAM" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS.844746847" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS.1502014991" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS.1122402354" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1167455395.121862166">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1167455395.121862166" moduleId="org.eclipse.cdt.core.settings" name="_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_TO_FIXEDPTLIB" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/>
|
||||
<stringMacro name="INSTALLROOT_2833X" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../../../device_support/f2833x"/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="2833x_FixedPoint_FIR32" buildProperties="" description="_FLASH build configuration" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1167455395.121862166" name="_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1167455395.121862166." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain.1670737568" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.1803218541">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.462566843" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS320C28XX.TMS320F28335"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=28335_RAM_lnk.cmd"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts2800_ml.lib"/>
|
||||
<listOptionValue builtIn="false" value="IS_ELF=false"/>
|
||||
<listOptionValue builtIn="false" value="PROJECT_KIND=com.ti.ccstudio.managedbuild.core.ProjectKind_Executable"/>
|
||||
<listOptionValue builtIn="false" value="IS_ASSEMBLY_ONLY=false"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.880785786" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="6.2.5" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug.816399617" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug.1416979273" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug.1590327398" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL.1185370290" name="Use large memory model (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY.1640681125" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.666595647" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT.1521277976" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.968617334" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH.1581050269" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/common/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/examples/common""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING.1440932916" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE.1082252248" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS.1308644943" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS.1579887092" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS.302073226" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS.1580150477" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.109195362" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE.1758741793" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE" value="0x300" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE.1177905282" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE" value=""2833x_FixedPoint_FIR32.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE.1089856321" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE" value=""2833x_FixedPoint_FIR32.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles.1420329856" name="[Deprecated] Generated Linker Command files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""$(GEN_CMDS_QUOTED)""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY.1568818630" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value="c28x_fixedpoint_dsp_library.lib"/>
|
||||
<listOptionValue builtIn="false" value=""rts2800_ml.lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH.1220937277" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO.1897385758" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO" value=""2833x_FixedPoint_FIR32_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE.1135504905" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE" value="_FLASH" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS.1797250736" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS.243587648" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS.1731928173" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="2833x_FixedPoint_FIR32.com.ti.ccstudio.buildDefinitions.C2000.ProjectType.1269517115" name="C2000" projectType="com.ti.ccstudio.buildDefinitions.C2000.ProjectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
||||
<project-mappings>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
</project-mappings>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration"/>
|
||||
</cproject>
|
||||
@@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>2833x_FixedPoint_FIR32</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>DSP2833x_ADC_cal.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_ADC_cal.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_Adc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_Adc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_CodeStartBranch.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_CodeStartBranch.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_CpuTimers.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_CpuTimers.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_DBGIER.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_DBGIER.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_DefaultIsr.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_DefaultIsr.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_GlobalVariableDefs.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/headers/source/DSP2833x_GlobalVariableDefs.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_Headers_nonBIOS.cmd</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/headers/cmd/DSP2833x_Headers_nonBIOS.cmd</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_PieCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_PieCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_PieVect.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_PieVect.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_SysCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_SysCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_usDelay.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_usDelay.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F28335_FIXPT_FIR_lnk.cmd</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_TO_FIXEDPTLIB/cmd/F28335_FIXPT_FIR_lnk.cmd</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>examples_setup.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_TO_FIXEDPTLIB/examples/common/examples_setup.c</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>INSTALLROOT_2833X</name>
|
||||
<value>$%7BPARENT-6-PROJECT_LOC%7D/device_support/f2833x</value>
|
||||
</variable>
|
||||
<variable>
|
||||
<name>INSTALLROOT_TO_FIXEDPTLIB</name>
|
||||
<value>$%7BPARENT-2-PROJECT_LOC%7D</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
BIN
Binary file not shown.
+5
@@ -0,0 +1,5 @@
|
||||
//Add watch window variables
|
||||
expRemoveAll()
|
||||
expAdd("fir", getNatural())
|
||||
|
||||
openAnalysisView('Dual Time','C:/Users/a0272561/Repositories/cs30_controlsuite/libs/dsp/FixedPointLib/version/examples/2833x_FixedPoint_FIR32/FIR32_IN_OUT.graphProp')
|
||||
+115
@@ -0,0 +1,115 @@
|
||||
% // TI File $Revision: /main/3 $
|
||||
% // Checkin $Date: November 1, 2010 13:05:07 $
|
||||
% // =====================================================================================
|
||||
% // This software is licensed for use with Texas Instruments C28x
|
||||
% // family DSCs. This license was provided to you prior to installing
|
||||
% // the software. You may review this license by consulting a copy of
|
||||
% // the agreement in the doc directory of this library.
|
||||
% //======================================================================================
|
||||
% //
|
||||
% // FILE: FixedPointFIR32.m
|
||||
% //
|
||||
% // TITLE: DSP2833x Device Fixed Point FIR16 Test Program.
|
||||
% //
|
||||
% //
|
||||
% // ASSUMPTIONS:
|
||||
% //
|
||||
% // This matlab code is reference code for debugging FixedPoint DSP library
|
||||
% // 16 bit FIR module and example project 2833x_FixedPoint_FIR16.
|
||||
% //
|
||||
% //
|
||||
% //
|
||||
% // Watch Variables:
|
||||
% //
|
||||
% // x_raw_sig Input signal (float)
|
||||
% // fir_lpfxx_Q31 FIR filter coefficients (Q31)
|
||||
% // x_Q31 Input signal in Q31 format
|
||||
% // result Filtered signal (Q30)
|
||||
% //
|
||||
% //######################################################################################
|
||||
% //
|
||||
% //
|
||||
% //
|
||||
%// C2000Ware v5.04.00.00
|
||||
%//Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
|
||||
%//
|
||||
%// Redistribution and use in source and binary forms, with or without
|
||||
%// modification, are permitted provided that the following conditions
|
||||
%// are met:
|
||||
%//
|
||||
%// Redistributions of source code must retain the above copyright
|
||||
%// notice, this list of conditions and the following disclaimer.
|
||||
%//
|
||||
%// Redistributions in binary form must reproduce the above copyright
|
||||
%// notice, this list of conditions and the following disclaimer in the
|
||||
%// documentation and/or other materials provided with the
|
||||
%// distribution.
|
||||
%//
|
||||
%// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
%// its contributors may be used to endorse or promote products derived
|
||||
%// from this software without specific prior written permission.
|
||||
%//
|
||||
%// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
%// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
%// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
%// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
%// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
%// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
%// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
%// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
%// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
%// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
%// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
%//$
|
||||
% //######################################################################################
|
||||
|
||||
clear all
|
||||
close all
|
||||
|
||||
disp('==============================================================');
|
||||
disp('==============================================================');
|
||||
disp('this is Matlab version of C28x Fixed Point FIR32 code');
|
||||
disp('The result is stored in array result Q30');
|
||||
disp('The signal is stored in array x_raw_sig (float)');
|
||||
disp('The signal in Q31 format is stored in array x_Q31');
|
||||
disp('==============================================================');
|
||||
|
||||
RadStep = 0.1963495408494;
|
||||
|
||||
N=input('Please enter signal length N =');
|
||||
halfSize=N-1;
|
||||
|
||||
Rad=[0:RadStep:(halfSize)*RadStep];
|
||||
|
||||
Rx=sin(Rad)+cos(Rad*2.3567);
|
||||
Ix=0*(cos(Rad*8.345) + sin(Rad*5.789));
|
||||
|
||||
x=Rx+j*Ix;
|
||||
x_raw_sig=x/2;
|
||||
|
||||
x_Q31=2^31*x/2;
|
||||
|
||||
fir_lpf6_Q31=[-173028710, 422295164, 1025797365, 1025797365, 422295164, -173028710];
|
||||
fir_lpf32_Q31=[-2013465, -3972436, 6056023, 8015159, -12191477, -16239507,22805854, 29416457, -39784147, -51018844, 68331981, 89804355,-125125486, -182784383, 316867161, 964016297, 964016297, 316867161,-182784383, -125125486, 89804355, 68331981, -51018844, -39784147,29416457, 22805854, -16239507, -12191477, 8015159, 6056023,-3972436, -2013465];
|
||||
|
||||
result=conv(fir_lpf32_Q31,x_Q31)/2^32;
|
||||
|
||||
plot(result)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+165
@@ -0,0 +1,165 @@
|
||||
//#############################################################################
|
||||
//! \file $FOLDER_EXAMPLES$/$DEVICE$_FixedPoint_FIR32/fir32d.c
|
||||
//!
|
||||
//! \brief 32-bit FIR Filter Example
|
||||
//! \author Vishal Coelho
|
||||
//!
|
||||
//! \date Aug 12, 2014
|
||||
//!
|
||||
//! This examples shows how to implement a 32-bit FIR filter using the optimized
|
||||
//! FIR library routines. This version of the FIR filter has a limitation of 128
|
||||
//! taps (filter order max 127). If a higher order filter is required, refer to the
|
||||
//! FIR32_Alt example.
|
||||
//! The structure of 32 bit filter is shown as follows:
|
||||
//!
|
||||
//! typedef struct {
|
||||
//! long *coeff_ptr;
|
||||
//! long * dbuffer_ptr;
|
||||
//! int cbindex;
|
||||
//! int order;
|
||||
//! long input;
|
||||
//! long output;
|
||||
//! void (*init)(void *);
|
||||
//! void (*calc)(void *);
|
||||
//! }FIR32;
|
||||
//!
|
||||
//! Users can also use default templates defined within fir.h to initialize
|
||||
//! the FIR32 header structure.
|
||||
//!
|
||||
//! FIR32 fir= FIR32_DEFAULTS;
|
||||
//!
|
||||
//! The MATLAB Filter Design and Analysis Tool (FDATool) is a useful tool
|
||||
//! for designing filters and generating fixed point coefficients. Refer
|
||||
//! to the appendix of the Fixed Point DSP Libray User's Guide for more
|
||||
//! information.
|
||||
//!
|
||||
//! \b Watch \b Variables
|
||||
//! - fir FIR32 object
|
||||
//!
|
||||
//! In CCS, you can invoke the "SetupDebugEnv.js" script from the
|
||||
//! Scripting console to have these variables set up in the Watch window
|
||||
//! and create graphs to show the input/output vectors
|
||||
//
|
||||
// Group: C2000
|
||||
// Target Family: C28x
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright: Copyright (C) 2014-2024 Texas Instruments Incorporated -
|
||||
// http://www.ti.com/ ALL RIGHTS RESERVED $
|
||||
//#############################################################################
|
||||
|
||||
//*****************************************************************************
|
||||
// includes
|
||||
//*****************************************************************************
|
||||
#include "examples_setup.h"
|
||||
#include <filter.h>
|
||||
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
// Filter Symbolic Constants
|
||||
#define FIR_ORDER 43
|
||||
#define SIGNAL_LENGTH 128
|
||||
|
||||
//*****************************************************************************
|
||||
// globals
|
||||
//*****************************************************************************
|
||||
// Create an Instance of FIR32 module and place the object in "firfilt" section
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(fir, "firfilt");
|
||||
#else
|
||||
#pragma DATA_SECTION("firfilt");
|
||||
#endif
|
||||
FIR32 fir= FIR32_DEFAULTS;
|
||||
|
||||
// Define the Delay buffer for the "FIR_ORDER"th order filter
|
||||
// and place it in "firldb" section.
|
||||
// Its size should be FIR_ORDER+1
|
||||
// The delay line buffer must be aligned to a 256 word boundary
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(dbuffer,"firldb");
|
||||
#else
|
||||
#pragma DATA_SECTION("firfilt");
|
||||
#endif
|
||||
int32_t dbuffer[FIR_ORDER+1];
|
||||
|
||||
// Input/output buffer
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(sigIn, "sigIn");
|
||||
#else
|
||||
#pragma DATA_SECTION("sigIn");
|
||||
#endif
|
||||
int32_t sigIn[SIGNAL_LENGTH];
|
||||
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(sigOut, "sigOut");
|
||||
#else
|
||||
#pragma DATA_SECTION("sigOut");
|
||||
#endif
|
||||
int32_t sigOut[SIGNAL_LENGTH];
|
||||
|
||||
// Define Constant Coefficient Array and place it in the "coefffilt"
|
||||
// section. The size of the array is FIR_ORDER+1
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(coeff, "coefffilt");
|
||||
#else
|
||||
#pragma DATA_SECTION("coefffilt");
|
||||
#endif
|
||||
const int32_t coeff[FIR_ORDER+1] = FIR32_LPF32_TEST;
|
||||
|
||||
int main(void)
|
||||
{
|
||||
// Locals
|
||||
int32_t xn = 0, yn = 0;
|
||||
float RadStep = 0.1963495408494f;
|
||||
float Rad = 0.0f;
|
||||
uint32_t i = 0;
|
||||
|
||||
#ifdef _FLASH
|
||||
FIXPT_DSP_initFlash();
|
||||
#endif //_FLASH
|
||||
FIXPT_DSP_initSystemClocks();
|
||||
FIXPT_DSP_initEpie();
|
||||
|
||||
// Initialize FIR32 object
|
||||
fir.order = FIR_ORDER;
|
||||
fir.dbuffer_ptr = dbuffer;
|
||||
fir.coeff_ptr =(int32_t *)coeff;
|
||||
fir.init(&fir);
|
||||
|
||||
// Clean up input/output buffer
|
||||
for(i=0; i < SIGNAL_LENGTH; i++){
|
||||
sigIn[i] =0;
|
||||
sigOut[i] =0;
|
||||
}
|
||||
|
||||
for(i=0; i < SIGNAL_LENGTH; i++){
|
||||
xn=(long)(2147483648*(sin(Rad) + cos(Rad*2.3567))/2); //Q31
|
||||
// Impulse function
|
||||
//if(i == 0){
|
||||
// xn = (1 << 31);
|
||||
//}else{
|
||||
// xn = 0;
|
||||
//}
|
||||
sigIn[i] = xn; //Input data buffer
|
||||
fir.input = xn; //Input data
|
||||
fir.calc(&fir); //FIR convolution operation
|
||||
yn = fir.output; //Output data
|
||||
sigOut[i] = yn; //Output data buffer
|
||||
Rad = Rad + RadStep; //Update simulated signal parameter
|
||||
}
|
||||
|
||||
//asm(" ESTOP0");
|
||||
for(;;);
|
||||
|
||||
// code should never reach this pointer
|
||||
return 1;
|
||||
|
||||
} /* End: main() */
|
||||
|
||||
|
||||
//###########################################################################
|
||||
// End of File
|
||||
//###########################################################################
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?ccsproject version="1.0"?>
|
||||
<projectOptions>
|
||||
<deviceFamily value="C2000"/>
|
||||
<isTargetManual value="false"/>
|
||||
</projectOptions>
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?eclipse-cdt version="2.0"?>
|
||||
|
||||
<cdtproject id="org.eclipse.cdt.managedbuilder.core.managedMake">
|
||||
<extension id="org.eclipse.cdt.managedbuilder.core.ManagedBuildManager" point="org.eclipse.cdt.core.ScannerInfoProvider"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<data>
|
||||
<item id="org.eclipse.cdt.core.pathentry">
|
||||
<pathentry kind="src" path=""/>
|
||||
<pathentry kind="out" path=""/>
|
||||
<pathentry kind="con" path="org.eclipse.cdt.managedbuilder.MANAGED_CONTAINER"/>
|
||||
<pathentry kind="con" path="com.ti.ccstudio.managedbuild.core.CCS_CONTAINER"/>
|
||||
</item>
|
||||
</data>
|
||||
</cdtproject>
|
||||
@@ -0,0 +1,195 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?>
|
||||
|
||||
<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317" moduleId="org.eclipse.cdt.core.settings" name="RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_TO_FIXEDPTLIB" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/>
|
||||
<stringMacro name="INSTALLROOT_2833X" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../../../device_support/f2833x"/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="2833x_FixedPoint_FIR32_Alt_Alt" buildProperties="" description="RAM build configuration" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317" name="RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317.327083807" name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain.1676395359" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.139208857">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1512894819" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS320C28XX.TMS320F28335"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=28335_RAM_lnk.cmd"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts2800_ml.lib"/>
|
||||
<listOptionValue builtIn="false" value="IS_ELF=false"/>
|
||||
<listOptionValue builtIn="false" value="PROJECT_KIND=com.ti.ccstudio.managedbuild.core.ProjectKind_Executable"/>
|
||||
<listOptionValue builtIn="false" value="IS_ASSEMBLY_ONLY=false"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1439939768" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="6.2.5" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug.1228428871" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug.1543415991" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug.1014186289" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL.1276024401" name="Use large memory model (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY.409452695" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.150373748" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT.577633857" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.388627654" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH.568035091" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/common/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/examples/common""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING.1374230148" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.KEEP_ASM.516393193" name="Keep the generated assembly language (.asm) file (--keep_asm, -k)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.KEEP_ASM" value="false" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SOURCE_INTERLIST.920490890" name="Source interlist" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SOURCE_INTERLIST" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SOURCE_INTERLIST._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE.2143286477" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="RAM"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS.1972770834" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS.1936690688" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS.1305145091" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS.1979537973" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.139208857" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE.1298858410" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE" value="0x300" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE.777182326" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE" value=""2833x_FixedPoint_FIR32_Alt_Alt.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE.965462428" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE" value=""2833x_FixedPoint_FIR32_Alt_Alt.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles.971167039" name="[Deprecated] Generated Linker Command files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""$(GEN_CMDS_QUOTED)""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY.715544849" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value="c28x_fixedpoint_dsp_library.lib"/>
|
||||
<listOptionValue builtIn="false" value=""rts2800_ml.lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH.589053542" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO.1008002930" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO" value=""2833x_FixedPoint_FIR32_Alt_Alt_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE.1725348011" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE" value="RAM" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS.1225799143" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS.247167082" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS.612960073" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317.322212496">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317.322212496" moduleId="org.eclipse.cdt.core.settings" name="_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_TO_FIXEDPTLIB" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/>
|
||||
<stringMacro name="INSTALLROOT_2833X" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../../../device_support/f2833x"/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="2833x_FixedPoint_FIR32_Alt_Alt" buildProperties="" description="_FLASH build configuration" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317.322212496" name="_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1630116317.322212496." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain.2127523566" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.139208857">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.765535351" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS320C28XX.TMS320F28335"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=28335_RAM_lnk.cmd"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts2800_ml.lib"/>
|
||||
<listOptionValue builtIn="false" value="IS_ELF=false"/>
|
||||
<listOptionValue builtIn="false" value="PROJECT_KIND=com.ti.ccstudio.managedbuild.core.ProjectKind_Executable"/>
|
||||
<listOptionValue builtIn="false" value="IS_ASSEMBLY_ONLY=false"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1398695314" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="6.2.5" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug.782700588" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug.1015462835" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug.319997838" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL.917844962" name="Use large memory model (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY.796639155" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.1092302339" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT.722849946" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.394709945" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH.2116409796" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/common/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/examples/common""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING.987759539" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.KEEP_ASM.1970407119" name="Keep the generated assembly language (.asm) file (--keep_asm, -k)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.KEEP_ASM" value="false" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SOURCE_INTERLIST.2145733690" name="Source interlist" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SOURCE_INTERLIST" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SOURCE_INTERLIST._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE.1018783488" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS.1903303264" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS.1891870607" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS.77390549" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS.460302157" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.1873598770" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE.45362741" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE" value="0x300" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE.821199107" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE" value=""2833x_FixedPoint_FIR32_Alt_Alt.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE.840125733" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE" value=""2833x_FixedPoint_FIR32_Alt_Alt.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles.1565642492" name="[Deprecated] Generated Linker Command files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""$(GEN_CMDS_QUOTED)""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY.1095458337" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value="c28x_fixedpoint_dsp_library.lib"/>
|
||||
<listOptionValue builtIn="false" value=""rts2800_ml.lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH.576721544" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO.605020996" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO" value=""2833x_FixedPoint_FIR32_Alt_Alt_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE.1479379744" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE" value="_FLASH" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS.8197789" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS.1880828162" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS.1591780174" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="2833x_FixedPoint_FIR32_Alt_Alt.com.ti.ccstudio.buildDefinitions.C2000.ProjectType.2025933334" name="C2000" projectType="com.ti.ccstudio.buildDefinitions.C2000.ProjectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
||||
<project-mappings>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
</project-mappings>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration"/>
|
||||
</cproject>
|
||||
@@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>2833x_FixedPoint_FIR32_Alt</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>DSP2833x_ADC_cal.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_ADC_cal.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_Adc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_Adc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_CodeStartBranch.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_CodeStartBranch.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_CpuTimers.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_CpuTimers.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_DBGIER.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_DBGIER.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_DefaultIsr.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_DefaultIsr.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_GlobalVariableDefs.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/headers/source/DSP2833x_GlobalVariableDefs.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_Headers_nonBIOS.cmd</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/headers/cmd/DSP2833x_Headers_nonBIOS.cmd</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_PieCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_PieCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_PieVect.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_PieVect.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_SysCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_SysCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_usDelay.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_usDelay.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F28335_FIXPT_FIR_lnk.cmd</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_TO_FIXEDPTLIB/cmd/F28335_FIXPT_FIR_lnk.cmd</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>examples_setup.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_TO_FIXEDPTLIB/examples/common/examples_setup.c</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>INSTALLROOT_2833X</name>
|
||||
<value>$%7BPARENT-6-PROJECT_LOC%7D/device_support/f2833x</value>
|
||||
</variable>
|
||||
<variable>
|
||||
<name>INSTALLROOT_TO_FIXEDPTLIB</name>
|
||||
<value>$%7BPARENT-2-PROJECT_LOC%7D</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
BIN
Binary file not shown.
+5
@@ -0,0 +1,5 @@
|
||||
//Add watch window variables
|
||||
expRemoveAll()
|
||||
expAdd("fir", getNatural())
|
||||
|
||||
openAnalysisView('Dual Time','C:/Users/a0272561/Repositories/cs30_controlsuite/libs/dsp/FixedPointLib/version/examples/2833x_FixedPoint_FIR32_Alt/FIR32_ALT_IN_OUT.graphProp')
|
||||
+188
@@ -0,0 +1,188 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Fixed Point Finite Impulse Response Filter
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%//! \brief 16/32-bit FIR filter
|
||||
%//!
|
||||
%//! \author Vishal Coelho
|
||||
%//!
|
||||
%//! \details 16/32 bit fixed point filter that replicates
|
||||
%//! the operation of the FIR16(32) filter in the fixed point
|
||||
%//! library. Will be used to test the output of the asm filter
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% Basics of fimath
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Table taken from MATLAB R2013b help doc
|
||||
%+-------------------------------------------------------------------------------------------+
|
||||
%| |A |B |Sum = A+B |Prod = A*B |
|
||||
%+-------------------------------------------------------------------------------------------+
|
||||
%|Format |fi(vA,s1,w1,f1)|fi(vB,s2,w2,f2)|- |- |
|
||||
%|Sign |s1 |s2 |s1||s2 |s1||s2 |
|
||||
%|Integer bits |I1 = w1-f1-s1 |I2= w2-f2-s2 |max(I1 , I2) + 1 |(w1+w2)-(f1+f2) |
|
||||
%|Fraction bits|f1 |f2 |max(f1 , f 2) + 1 |f1 + f2 |
|
||||
%|Total bits |w1 |w2 |1+max(I1,I2)+1+max(f1,f2)+1 |w1 + w2 |
|
||||
%+-------------------------------------------------------------------------------------------+
|
||||
clc
|
||||
clear all
|
||||
close all
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% User Inputs
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
W = input('Do you want \n 1. 16-bit\n 2. 32-bit FIR\n operation? :');
|
||||
S = 1; % signed
|
||||
if(W == 1)
|
||||
W = 16; Q = 15;
|
||||
elseif(W == 2)
|
||||
W = 32; Q = 31;
|
||||
else
|
||||
disp('Value out of range, default to 1\n');
|
||||
W = 16; Q = 15;
|
||||
end
|
||||
sizeOfInput = input('Size of input? ');
|
||||
while(sizeOfInput <= 0 || sizeOfInput > 65536)
|
||||
disp('Invalid: ');
|
||||
sizeOfInput = input('Size of input? ');
|
||||
end
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% Specify the Fixed Point Math Object
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
FIPREF_STATE = get(fipref);
|
||||
reset(fipref)
|
||||
% Specify the preferences for the fi objects
|
||||
P = fipref(...
|
||||
'NumberDisplay', 'RealWorldValue', ...
|
||||
'NumericTypeDisplay', 'full', ...
|
||||
'FimathDisplay', 'full'... %MATLAB displays custom and default fi objects info
|
||||
);
|
||||
% Specifying fimath object allows you to control bit growth from successive
|
||||
% operations and tells MATLAB how arithmetic operations should be handled
|
||||
F = fimath(...
|
||||
'SumMode', 'SpecifyPrecision',...
|
||||
'SumWordLength', W,...
|
||||
'SumFractionLength', Q,...
|
||||
'ProductMode', 'SpecifyPrecision',...
|
||||
'ProductWordLength', W, ...
|
||||
'ProductFractionLength', Q, ...
|
||||
'RoundingMethod', 'Convergent' ... %round to closest (to even on ties)
|
||||
);
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% filter coefficients
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
samplingFreq = 200e3;
|
||||
attenStop = 60;
|
||||
attenPass = 1;
|
||||
freqPass = 20e3;
|
||||
freqStop = 30e3;
|
||||
|
||||
LowPassSpecObj = fdesign.lowpass('Fp,Fst,Ap,Ast', freqPass, freqStop,...
|
||||
attenPass, attenStop, samplingFreq);
|
||||
|
||||
% Display all available methods
|
||||
filterMenu = designmethods(LowPassSpecObj);
|
||||
disp(filterMenu);
|
||||
menuChoice = input('Choose a method(Enter a number):');
|
||||
while(menuChoice < 1 || menuChoice > length(filterMenu))
|
||||
disp(['Invalid choice, choose between 1 and ',num2str(length(filterMenu))]);
|
||||
menuChoice = input('Choose a method(Enter a number):');
|
||||
end
|
||||
|
||||
% what are the design options for the chosen method
|
||||
LowPassDesignOpts = designopts(LowPassSpecObj, char(filterMenu(menuChoice)))
|
||||
|
||||
% Design the filter using the user specified method and min order
|
||||
LowPassFilt = design(LowPassSpecObj, char(filterMenu(menuChoice)))
|
||||
|
||||
% Display the filter
|
||||
% fvtool(LowPassFilt);
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% Build the MEX function
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Filter parameters
|
||||
N = length(LowPassFilt.Numerator);
|
||||
x = fi(zeros(sizeOfInput,1),S,W,Q,'fimath',F);
|
||||
c = fi(LowPassFilt.Numerator,S,W,Q, 'fimath', F);
|
||||
C = coder.Constant(c);
|
||||
|
||||
% For the 32-bit FIR we want the input to be Q31 but the output to be
|
||||
% Q30, so for each product there will be a scaling of 0.5
|
||||
if W == 32
|
||||
yisd = fi(zeros(sizeOfInput,1),S,W,Q-1,'DataType','Fixed','fimath',F);
|
||||
else
|
||||
yisd = fi(zeros(sizeOfInput,1),S,W,Q,'DataType','Fixed','fimath',F);
|
||||
end
|
||||
|
||||
buildInstrumentedMex fir_m ...
|
||||
-o fir_fixed ...
|
||||
-args {x, C, yisd}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% Test Bench 1
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
t = linspace(0,1,sizeOfInput); % Time vector from 0 to 1 second
|
||||
n = 0 : sizeOfInput-1;
|
||||
f1 = 20e3; f2 = 40e3; f3 = 45e3; % Frequencies of the inputs
|
||||
fs = samplingFreq; % Add two sine waves together
|
||||
k1 = f1/fs; k2 = f2/fs; k3 = f3/fs;
|
||||
xmulti = 0.5*(sin(2*pi*k1.*n)+sin(2*pi*k2.*n)+sin(2*pi*k3.*n));
|
||||
x(:) = xmulti; % Cast the input to fixed-point
|
||||
|
||||
% Running the MEX function
|
||||
ymulti = fir_fixed(x,yisd);
|
||||
|
||||
% Plot the output
|
||||
clf
|
||||
plot(t,x,'c',t,ymulti,'bo-')
|
||||
title('Filter')
|
||||
legend('Input','Fixed Point Output')
|
||||
figure(gcf); drawnow;
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% Write the input/output/coeffs vectors to file
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
X = reshape(x, sizeOfInput/8, 8);
|
||||
if W == 16
|
||||
S_X = sprintf(['%10d, %10d, %10d, %10d, %10d, %10d,',...
|
||||
'%10d, %10d, \n'], (X.int));
|
||||
else
|
||||
S_X = sprintf(['%14d, %14d, %14d, %14d, %14d, %14d,',...
|
||||
'%14d, %14d, \n'], (X.int));
|
||||
end
|
||||
fid = fopen('data_input.txt', 'w');
|
||||
fprintf(fid, ['// f1 =',num2str(20e3),', f2 = ',num2str(40e3),...
|
||||
', f3 = ',num2str(45e3),' fs = ',num2str(samplingFreq),'\n']);
|
||||
fprintf(fid, S_X);
|
||||
fclose(fid);
|
||||
|
||||
Y = reshape(ymulti, sizeOfInput/8, 8);
|
||||
if W == 16
|
||||
S_Y = sprintf(['%10d, %10d, %10d, %10d, %10d, %10d,',...
|
||||
'%10d, %10d, \n'], (Y.int));
|
||||
else
|
||||
S_Y = sprintf(['%14d, %14d, %14d, %14d, %14d, %14d,',...
|
||||
'%14d, %14d, \n'], (Y.int));
|
||||
end
|
||||
fid = fopen('data_output.txt', 'w');
|
||||
fprintf(fid, S_Y);
|
||||
fclose(fid);
|
||||
|
||||
C = c(end:-1:1);
|
||||
if W == 16
|
||||
S_C = sprintf(['%10d, %10d, %10d, %10d, %10d, %10d,',...
|
||||
'%10d, %10d, \n'], (C.int));
|
||||
else
|
||||
S_C = sprintf(['%14d, %14d, %14d, %14d, %14d, %14d,',...
|
||||
'%14d, %14d, \n'], (C.int));
|
||||
end
|
||||
fid = fopen('coeffs.txt', 'w');
|
||||
fprintf(fid, [...
|
||||
'// Fs = ',num2str(samplingFreq ),'\n',...
|
||||
'// Fst = ',num2str(attenStop ),'\n',...
|
||||
'// Fp = ',num2str(attenPass ),'\n',...
|
||||
'// Ap = ',num2str(freqPass ),'\n',...
|
||||
'// Ast = ',num2str(freqStop ),'\n']);
|
||||
fprintf(fid, S_C);
|
||||
fclose(fid);
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% The filter funtion
|
||||
% \param x , the input vector
|
||||
% \param c , the coefficients
|
||||
% \param y, the filtered output (specified here so that the mex generation
|
||||
% will create a reference to y, allowing us to set its data type
|
||||
% outside the function)
|
||||
% \return y, the filtered output
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
function y = fir_m(x, c, y)
|
||||
N = length(x); L = length(c); k = 1;
|
||||
for i = 1 : N
|
||||
for j = 1 : min(i, L)
|
||||
y(i) = y(i) + x(i - j + 1) * c(j);
|
||||
end
|
||||
end
|
||||
end
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
a) Run the script "C28xFixedPointLib_FIR.m" in MATLAB
|
||||
b) It will ask you to choose between 16 and 32-bit operation, choose the first
|
||||
option
|
||||
c) It will then request the size of the input - this is used during the test phase
|
||||
when it will generate a test signal of this size
|
||||
d) Find and alter these values per your needs
|
||||
samplingFreq
|
||||
attenStop
|
||||
attenPass
|
||||
freqPass
|
||||
freqStop
|
||||
e) The script will list out the different design methods available and ask for a
|
||||
choice. It then proceeds to generate a low pass filter that matches these
|
||||
constraints using the fdesign.lowpass(). The user may choose to implement a
|
||||
different filter: bandpass, bandstop or highpass using the fdesign class with
|
||||
the appropriate arguments (please see the help menu in MATLAB for more details
|
||||
on what parameters are required for the different class objects)\
|
||||
f) It will then create a mex function that takes the input, applies the filter
|
||||
and generates the output. It proceeds to write these arrays, in the chosen fixed
|
||||
point format, to data_input.txt, coeffs.txt and data_output.txt respectively.
|
||||
g) You may use the coeffs.txt file in your code as follows
|
||||
const int32_t coeffs[SIZE] = {
|
||||
#include "coeffs.txt"
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// Fs = 200000
|
||||
// Fst = 60
|
||||
// Fp = 1
|
||||
// Ap = 20000
|
||||
// Ast = 30000
|
||||
3033491, 5007568, 5444575, 1466157, -8004159, -20868675, -31498813, -32749015,
|
||||
-19927254, 5132136, 32555031, 47420087, 36921072, -1254816, -53875775, -94212070,
|
||||
-91821960, -26570918, 99492000, 258706175, 405645761, 493749663, 493749663, 405645761,
|
||||
258706175, 99492000, -26570918, -91821960, -94212070, -53875775, -1254816, 36921072,
|
||||
47420087, 32555031, 5132136, -19927254, -32749015, -31498813, -20868675, -8004159,
|
||||
1466157, 5444575, 5007568, 3033491,
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
// f1 =20000, f2 = 40000, f3 = 45000 fs = 200000
|
||||
0, 2147483647, 1984123239, -566651421, -1021189159, 759250125, 1258734933, -877528137,
|
||||
-2147483648, -1484348540, 1073741824, 1820288995, 631129609, -97409038, 478615834, 759250125,
|
||||
-241070059, -1346770520, -1320514296, -591796487, 0, 591796487, 1320514296, 1346770520,
|
||||
241070059, -759250125, -478615834, 97409038, -631129609, -1820288995, -1073741824, 1484348540,
|
||||
2147483647, 877528137, -1258734933, -759250125, 1021189159, 566651421, -1984123239, -2147483648,
|
||||
0, 2147483647, 1984123239, -566651421, -1021189159, 759250125, 1258734933, -877528137,
|
||||
-2147483648, -1484348540, 1073741824, 1820288995, 631129609, -97409038, 478615834, 759250125,
|
||||
-241070059, -1346770520, -1320514296, -591796487, 0, 591796487, 1320514296, 1346770520,
|
||||
241070059, -759250125, -478615834, 97409038, -631129609, -1820288995, -1073741824, 1484348540,
|
||||
2147483647, 877528137, -1258734933, -759250125, 1021189159, 566651421, -1984123239, -2147483648,
|
||||
0, 2147483647, 1984123239, -566651421, -1021189159, 759250125, 1258734933, -877528137,
|
||||
-2147483648, -1484348540, 1073741824, 1820288995, 631129609, -97409038, 478615834, 759250125,
|
||||
-241070059, -1346770520, -1320514296, -591796487, 0, 591796487, 1320514296, 1346770520,
|
||||
241070059, -759250125, -478615834, 97409038, -631129609, -1820288995, -1073741824, 1484348540,
|
||||
2147483647, 877528137, -1258734933, -759250125, 1021189159, 566651421, -1984123239, -2147483648,
|
||||
0, 2147483647, 1984123239, -566651421, -1021189159, 759250125, 1258734933, -877528137,
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
0, 1516746, 3905150, 4635388, 1866356, -4697460, -13845682, -22872314,
|
||||
-26954496, -21624767, -4858620, 18937904, 39477890, 44708478, 26796878, -12495686,
|
||||
-59057787, -88462138, -74063675, 841358, 132170556, 291098470, 429672776, 495315786,
|
||||
450566998, 291229176, 54223633, -190665082, -363539427, -403088479, -290615776, -60747236,
|
||||
206060074, 411285968, 474271600, 365768690, 120917047, -172712016, -407052088, -492972756,
|
||||
-395651426, -149193298, 154615200, 400286814, 494839116, 402354628, 158866332, -143789360,
|
||||
-392723188, -495896366, -416144590, -187122170, 100225128, 335324255, 429885356, 351043740,
|
||||
131607299, -142685770, -365292852, -449725640, -363145229, -138574308, 138574306, 363145228,
|
||||
449725638, 365292848, 142685770, -131607298, -351043740, -429885356, -335324257, -100225128,
|
||||
187122170, 416144587, 495896370, 392723186, 143789363, -158866334, -402354628, -494839112,
|
||||
-400286814, -153098448, 153098454, 400286814, 494839116, 402354628, 158866332, -143789360,
|
||||
-392723188, -495896366, -416144590, -187122170, 100225128, 335324255, 429885356, 351043740,
|
||||
131607299, -142685770, -365292852, -449725640, -363145229, -138574308, 138574306, 363145228,
|
||||
449725638, 365292848, 142685770, -131607298, -351043740, -429885356, -335324257, -100225128,
|
||||
187122170, 416144587, 495896370, 392723186, 143789363, -158866334, -402354628, -494839112,
|
||||
-400286814, -153098448, 153098454, 400286814, 494839116, 402354628, 158866332, -143789360,
|
||||
+201
@@ -0,0 +1,201 @@
|
||||
//#############################################################################
|
||||
//! \file $FOLDER_EXAMPLES$/$DEVICE$_FixedPoint_FIR32_Alt/fir32d_alt.c
|
||||
//!
|
||||
//! \brief Alternate 32-bit FIR Filter Example
|
||||
//!
|
||||
//! \date Aug 12, 2014
|
||||
//!
|
||||
//! This module shows an alternate 32-bit FIR implementation. The alternate
|
||||
//! version can have upto 2^16 or 65536 filter taps.
|
||||
//! The header structure of 32 bit filter is shown as follows:
|
||||
//!
|
||||
//! typedef struct {
|
||||
//! int32_t *coeff_ptr;
|
||||
//! int32_t * dbuffer_ptr;
|
||||
//! int cbindex;
|
||||
//! int order;
|
||||
//! int input;
|
||||
//! int output;
|
||||
//! void (*init)(void *);
|
||||
//! void (*calc)(void *);
|
||||
//! }FIR32;
|
||||
//!
|
||||
//! Users can also use default templates defined within fir.h to initialize
|
||||
//! the FIR32 header structure.
|
||||
//!
|
||||
//! FIR32 fir= FIR32_ALT_DEFAULTS;
|
||||
//!
|
||||
//! The MATLAB Filter Design and Analysis Tool (FDATool) is a useful tool
|
||||
//! for designing filters and generating fixed point coefficients. Refer
|
||||
//! to the appendix of the Fixed Point DSP Libray User's Guide for more
|
||||
//! information.
|
||||
//!
|
||||
//! \b Watch \b Variables
|
||||
//! - fir FIR32 object
|
||||
//!
|
||||
//! In CCS, you can invoke the "SetupDebugEnv.js" script from the
|
||||
//! Scripting console to have these variables set up in the Watch window
|
||||
//! and create graphs to show the input/output vectors
|
||||
//
|
||||
// Group: C2000
|
||||
// Target Family: C28x
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright: Copyright (C) 2014-2024 Texas Instruments Incorporated -
|
||||
// http://www.ti.com/ ALL RIGHTS RESERVED $
|
||||
//#############################################################################
|
||||
|
||||
//*****************************************************************************
|
||||
// includes
|
||||
//*****************************************************************************
|
||||
#include "examples_setup.h"
|
||||
#include <filter.h>
|
||||
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
// Filter Symbolic Constants
|
||||
#define FIR_ORDER 43
|
||||
#define FIR_ORDER_REV FIR_ORDER
|
||||
#define SIGNAL_LENGTH 128
|
||||
#define TOLERANCE (1UL << 20) // 0.009765 in Q31
|
||||
|
||||
//*****************************************************************************
|
||||
// globals
|
||||
//*****************************************************************************
|
||||
// Create an Instance of FIR32 module and place the object in "firfilt" section
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(fir, "firfilt");
|
||||
#else
|
||||
#pragma DATA_SECTION("firfilt");
|
||||
#endif
|
||||
FIR32 fir= FIR32_ALT_DEFAULTS;
|
||||
|
||||
// Define the Delay buffer for the "FIR_ORDER"th order filter
|
||||
// and place it in "firldb" section.
|
||||
// Its size should be FIR_ORDER+1
|
||||
// For the alternate FIR implementation, the delay line buffer need
|
||||
// not be aligned to a specific boundary
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(dbuffer,"firldb");
|
||||
#else
|
||||
#pragma DATA_SECTION("firfilt");
|
||||
#endif
|
||||
int32_t dbuffer[FIR_ORDER+1];
|
||||
|
||||
// Input/output buffer
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(sigIn, "sigIn");
|
||||
#else
|
||||
#pragma DATA_SECTION("sigIn");
|
||||
#endif
|
||||
int32_t sigIn[SIGNAL_LENGTH] = {
|
||||
#include "data_input.txt"
|
||||
};
|
||||
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(sigOut, "sigOut");
|
||||
#else
|
||||
#pragma DATA_SECTION("sigOut");
|
||||
#endif
|
||||
int32_t sigOut[SIGNAL_LENGTH];
|
||||
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(goldOut, "sigOut");
|
||||
#else
|
||||
#pragma DATA_SECTION("sigOut");
|
||||
#endif
|
||||
int32_t goldOut[SIGNAL_LENGTH] = {
|
||||
#include "data_output.txt"
|
||||
};
|
||||
|
||||
// Error between computed output and MATLAB output
|
||||
int32_t err[SIGNAL_LENGTH];
|
||||
|
||||
// Define Constant Coefficient Array and place it in the "coefffilt"
|
||||
// section. You can either reverse the order of the coefficients at
|
||||
// run time (done in this example) or just store them in reversed order.
|
||||
// Index
|
||||
// +---------+
|
||||
// 0 | h(L-1) |
|
||||
// 2 | h(L-2) |
|
||||
// 4 | h(L-3) |
|
||||
// 6 | h(L-4) |
|
||||
// ... | ... |
|
||||
// L-3 | h(2) |
|
||||
// L-2 | h(1) |
|
||||
// L-1 | h(0) |
|
||||
// +---------+
|
||||
// The size of the array is FIR_ORDER+1
|
||||
//
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(coeff, "coefffilt");
|
||||
#else
|
||||
#pragma DATA_SECTION("coefffilt");
|
||||
#endif
|
||||
const int32_t coeff[FIR_ORDER+1] = {
|
||||
#include "coeffs.txt"
|
||||
};
|
||||
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(revCoeff, "coefffilt");
|
||||
#else
|
||||
#pragma DATA_SECTION("coefffilt");
|
||||
#endif
|
||||
int32_t revCoeff[FIR_ORDER+1];
|
||||
|
||||
// Start of main()
|
||||
int main( void )
|
||||
{
|
||||
// Locals
|
||||
uint32_t i, pass = 0, fail = 0;
|
||||
|
||||
|
||||
#ifdef _FLASH
|
||||
FIXPT_DSP_initFlash();
|
||||
#endif //_FLASH
|
||||
FIXPT_DSP_initSystemClocks();
|
||||
FIXPT_DSP_initEpie();
|
||||
|
||||
// Reorder the coefficients
|
||||
for(i = 0; i < FIR_ORDER_REV + 1; i++){
|
||||
revCoeff[FIR_ORDER_REV-i] = coeff[i];
|
||||
}
|
||||
|
||||
// Initialize FIR32 object
|
||||
fir.order = FIR_ORDER;
|
||||
fir.dbuffer_ptr = &dbuffer[0];
|
||||
fir.coeff_ptr = (int32_t *)&revCoeff[0];
|
||||
fir.init(&fir);
|
||||
|
||||
// FIR calculation
|
||||
for(i = 0; i < SIGNAL_LENGTH; i++){
|
||||
fir.input = sigIn[i]; // Q31 format
|
||||
fir.calc(&fir);
|
||||
sigOut[i]=fir.output; // Q30 format
|
||||
}
|
||||
|
||||
// Error checking
|
||||
for(i = 0; i < SIGNAL_LENGTH; i++){
|
||||
err[i] = abs(sigOut[i] - goldOut[i]);
|
||||
if(err[i] > TOLERANCE){
|
||||
fail++;
|
||||
}else{
|
||||
pass++;
|
||||
}
|
||||
}
|
||||
|
||||
//asm(" ESTOP0");
|
||||
for(;;);
|
||||
|
||||
// code should never reach this pointer
|
||||
return 1;
|
||||
|
||||
} /* End: main() */
|
||||
|
||||
|
||||
//###########################################################################
|
||||
// End of File
|
||||
//###########################################################################
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?ccsproject version="1.0"?>
|
||||
<projectOptions>
|
||||
<deviceFamily value="C2000"/>
|
||||
<isTargetManual value="false"/>
|
||||
</projectOptions>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?eclipse-cdt version="2.0"?>
|
||||
|
||||
<cdtproject id="org.eclipse.cdt.managedbuilder.core.managedMake">
|
||||
<extension id="org.eclipse.cdt.managedbuilder.core.ManagedBuildManager" point="org.eclipse.cdt.core.ScannerInfoProvider"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<data>
|
||||
<item id="org.eclipse.cdt.core.pathentry">
|
||||
<pathentry kind="src" path=""/>
|
||||
<pathentry kind="out" path=""/>
|
||||
<pathentry kind="con" path="org.eclipse.cdt.managedbuilder.MANAGED_CONTAINER"/>
|
||||
<pathentry kind="con" path="com.ti.ccstudio.managedbuild.core.CCS_CONTAINER"/>
|
||||
</item>
|
||||
</data>
|
||||
</cdtproject>
|
||||
@@ -0,0 +1,191 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?>
|
||||
|
||||
<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1253599303">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1253599303" moduleId="org.eclipse.cdt.core.settings" name="RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_TO_FIXEDPTLIB" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/>
|
||||
<stringMacro name="INSTALLROOT_2833X" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../../../device_support/f2833x"/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="2833x_FixedPoint_IIR16" buildProperties="" description="RAM build configuration" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1253599303" name="RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1253599303.1181494236" name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain.1755911709" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.1617489975">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.282543612" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS320C28XX.TMS320F28335"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=28335_RAM_lnk.cmd"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts2800_ml.lib"/>
|
||||
<listOptionValue builtIn="false" value="IS_ELF=false"/>
|
||||
<listOptionValue builtIn="false" value="PROJECT_KIND=com.ti.ccstudio.managedbuild.core.ProjectKind_Executable"/>
|
||||
<listOptionValue builtIn="false" value="IS_ASSEMBLY_ONLY=false"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.609188980" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="6.2.5" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug.1951242723" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug.1131799880" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug.1628885679" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL.1511706772" name="Use large memory model (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY.721280147" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.249617827" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT.2131686012" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.382843165" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH.624670641" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/common/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/examples/common""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING.829957096" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE.1835497188" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="RAM"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS.1855358877" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS.963858395" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS.791933115" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS.1597283143" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.1617489975" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE.1468595469" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE" value="0x300" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE.416236827" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE" value=""2833x_FixedPoint_IIR16.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE.909556256" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE" value=""2833x_FixedPoint_IIR16.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles.977344640" name="[Deprecated] Generated Linker Command files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""$(GEN_CMDS_QUOTED)""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY.1679047704" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value="c28x_fixedpoint_dsp_library.lib"/>
|
||||
<listOptionValue builtIn="false" value=""rts2800_ml.lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH.1192335866" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO.1091963755" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO" value=""2833x_FixedPoint_IIR16_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE.1490026096" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE" value="RAM" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS.1457689063" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS.679214645" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS.2090529116" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1253599303.1599662775">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1253599303.1599662775" moduleId="org.eclipse.cdt.core.settings" name="_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_TO_FIXEDPTLIB" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/>
|
||||
<stringMacro name="INSTALLROOT_2833X" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../../../device_support/f2833x"/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="2833x_FixedPoint_IIR16" buildProperties="" description="_FLASH build configuration" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1253599303.1599662775" name="_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1253599303.1599662775." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain.574937357" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.1617489975">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.388430335" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS320C28XX.TMS320F28335"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=28335_RAM_lnk.cmd"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts2800_ml.lib"/>
|
||||
<listOptionValue builtIn="false" value="IS_ELF=false"/>
|
||||
<listOptionValue builtIn="false" value="PROJECT_KIND=com.ti.ccstudio.managedbuild.core.ProjectKind_Executable"/>
|
||||
<listOptionValue builtIn="false" value="IS_ASSEMBLY_ONLY=false"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1921656341" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="6.2.5" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug.345908893" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug.1359814120" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug.1210951878" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL.1837891316" name="Use large memory model (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY.803537056" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.1272747208" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT.1518596300" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.1224002829" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH.109747782" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/common/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/examples/common""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING.1297982521" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE.1865275133" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS.557374654" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS.394981206" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS.1509319658" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS.1871992968" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.1553602149" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE.196547709" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE" value="0x300" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE.557619315" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE" value=""2833x_FixedPoint_IIR16.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE.123342240" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE" value=""2833x_FixedPoint_IIR16.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles.1060526551" name="[Deprecated] Generated Linker Command files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""$(GEN_CMDS_QUOTED)""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY.922549449" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value="c28x_fixedpoint_dsp_library.lib"/>
|
||||
<listOptionValue builtIn="false" value=""rts2800_ml.lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH.1745972935" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO.174911689" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO" value=""2833x_FixedPoint_IIR16_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE.928669860" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE" value="_FLASH" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS.1099946170" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS.168784852" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS.994189699" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="2833x_FixedPoint_IIR16.com.ti.ccstudio.buildDefinitions.C2000.ProjectType.472453543" name="C2000" projectType="com.ti.ccstudio.buildDefinitions.C2000.ProjectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
||||
<project-mappings>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
</project-mappings>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration"/>
|
||||
</cproject>
|
||||
@@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>2833x_FixedPoint_IIR16</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>DSP2833x_ADC_cal.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_ADC_cal.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_Adc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_Adc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_CodeStartBranch.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_CodeStartBranch.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_CpuTimers.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_CpuTimers.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_DBGIER.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_DBGIER.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_DefaultIsr.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_DefaultIsr.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_GlobalVariableDefs.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/headers/source/DSP2833x_GlobalVariableDefs.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_Headers_nonBIOS.cmd</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/headers/cmd/DSP2833x_Headers_nonBIOS.cmd</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_PieCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_PieCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_PieVect.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_PieVect.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_SysCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_SysCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_usDelay.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_usDelay.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F28335_FIXPT_IIR5BIQ_lnk.cmd</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_TO_FIXEDPTLIB/cmd/F28335_FIXPT_IIR5BIQ_lnk.cmd</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>examples_setup.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_TO_FIXEDPTLIB/examples/common/examples_setup.c</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>INSTALLROOT_2833X</name>
|
||||
<value>$%7BPARENT-6-PROJECT_LOC%7D/device_support/f2833x</value>
|
||||
</variable>
|
||||
<variable>
|
||||
<name>INSTALLROOT_TO_FIXEDPTLIB</name>
|
||||
<value>$%7BPARENT-2-PROJECT_LOC%7D</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
BIN
Binary file not shown.
+5
@@ -0,0 +1,5 @@
|
||||
//Add watch window variables
|
||||
expRemoveAll()
|
||||
expAdd("iir", getNatural())
|
||||
|
||||
openAnalysisView('Dual Time','C:/Users/a0272561/Repositories/cs30_controlsuite/libs/dsp/FixedPointLib/version/examples/2833x_FixedPoint_IIR16/IIR16_IN_OUT.graphProp')
|
||||
+194
@@ -0,0 +1,194 @@
|
||||
% // TI File $Revision: /main/3 $
|
||||
% // Checkin $Date: November 1, 2010 13:05:07 $
|
||||
% // =====================================================================================
|
||||
% // This software is licensed for use with Texas Instruments C28x
|
||||
% // family DSCs. This license was provided to you prior to installing
|
||||
% // the software. You may review this license by consulting a copy of
|
||||
% // the agreement in the doc directory of this library.
|
||||
% //======================================================================================
|
||||
% //
|
||||
% // FILE: FixedPointIIR16.m
|
||||
% //
|
||||
% // TITLE: DSP2833x Device Fixed Point 16 Bit IIR Test Program
|
||||
% //
|
||||
% //
|
||||
% // ASSUMPTIONS:
|
||||
% //
|
||||
% // This matlab code is reference code for debugging FixedPoint DSP library
|
||||
% // function IIR32_calc and example project 2833x_FixedPoint_IIR16.
|
||||
% //
|
||||
% //
|
||||
% //
|
||||
% // Watch Variables:
|
||||
% //
|
||||
% // x_raw_sig Input signal (float)
|
||||
% // x_Q15 Input signal (Q15)
|
||||
% // B,A IIR filter coefficients array b,a
|
||||
% // filter_out_Q15 Filtered result using standard MATLAB filter function
|
||||
% // filer. It is used as reference to compare with
|
||||
% // the fixed point result. (Q15)
|
||||
% // x_output_final Output data by fixed point algorithm (Q15).
|
||||
% //
|
||||
% //######################################################################################
|
||||
% //
|
||||
% //
|
||||
% //
|
||||
%// C2000Ware v5.04.00.00
|
||||
%//Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
|
||||
%//
|
||||
%// Redistribution and use in source and binary forms, with or without
|
||||
%// modification, are permitted provided that the following conditions
|
||||
%// are met:
|
||||
%//
|
||||
%// Redistributions of source code must retain the above copyright
|
||||
%// notice, this list of conditions and the following disclaimer.
|
||||
%//
|
||||
%// Redistributions in binary form must reproduce the above copyright
|
||||
%// notice, this list of conditions and the following disclaimer in the
|
||||
%// documentation and/or other materials provided with the
|
||||
%// distribution.
|
||||
%//
|
||||
%// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
%// its contributors may be used to endorse or promote products derived
|
||||
%// from this software without specific prior written permission.
|
||||
%//
|
||||
%// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
%// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
%// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
%// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
%// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
%// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
%// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
%// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
%// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
%// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
%// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
%//$
|
||||
% //######################################################################################
|
||||
|
||||
clear all
|
||||
close all
|
||||
|
||||
disp('==============================================================');
|
||||
disp('input signal is stored as Q16 format');
|
||||
disp('==============================================================');
|
||||
disp('this is Matlab version of IIR16 code');
|
||||
disp('The result is stored in array x_output_final in Q15 format');
|
||||
disp('The signal is stored in array x_raw_sig');
|
||||
disp('The fixed point input signal is stored in x_Q15 in Q15 format');
|
||||
disp('==============================================================');
|
||||
|
||||
MAX_TAPS=5;
|
||||
|
||||
RadStep = 0.1963495408494;
|
||||
|
||||
N=input('Please enter signal length N =');
|
||||
halfSize=N-1;
|
||||
|
||||
Rad=[0:RadStep:(halfSize)*RadStep];
|
||||
|
||||
Rx=sin(Rad)+cos(Rad*2.3567);
|
||||
Ix=0*(cos(Rad*8.345) + sin(Rad*5.789));
|
||||
|
||||
x=Rx+j*Ix;
|
||||
x_raw_sig=x/2;
|
||||
|
||||
x_Q15=2^15*x/2;
|
||||
|
||||
B=[ 0.000176614401432267
|
||||
0.00123630081002587
|
||||
0.00370890243007761
|
||||
0.00618150405012935
|
||||
0.00618150405012935
|
||||
0.00370890243007761
|
||||
0.00123630081002587
|
||||
0.000176614401432267];
|
||||
|
||||
A=[ 1
|
||||
-3.84708594662977
|
||||
6.78600477287384
|
||||
-6.96288772960265
|
||||
4.44516236478943
|
||||
-1.75415688503484
|
||||
0.39441771610976
|
||||
-0.0388476491224433];
|
||||
|
||||
A=A';B=B';
|
||||
|
||||
filter_out_Q15=filter(B,A,x_Q15);
|
||||
|
||||
% good
|
||||
isos=[ 307 307 0 8192 -3794 0
|
||||
668 1335 668 8192 -7894 2159
|
||||
541 1082 541 8192 -8904 3483
|
||||
13364 26729 13364 8192 -10923 6131];
|
||||
|
||||
% isos=[ 2456 2456 0 8192 -7587 0
|
||||
% 1329 2658 1329 8192 -15789 4319
|
||||
% 1032 2064 1032 8192 -17808 6967
|
||||
% 7039 14079 7039 8192 -21846 12261];
|
||||
|
||||
% isos=[15468 30936 15468 16384 10598 4039];
|
||||
|
||||
isf=4398;
|
||||
nbiq=4;
|
||||
qfmat=13;
|
||||
|
||||
d=zeros(nbiq,3);
|
||||
taps=3;
|
||||
|
||||
for k=1:length(x_Q15)
|
||||
|
||||
accum=floor(x_Q15(k)*isf);
|
||||
|
||||
for j=1:nbiq
|
||||
|
||||
b_temp=isos(j,1:3);
|
||||
a_temp=isos(j,4:6);
|
||||
|
||||
for ii=2:taps
|
||||
accum=accum-floor(a_temp(ii)*d(j,ii));
|
||||
end
|
||||
|
||||
% d(j,1)=accum*2^3/2^16;
|
||||
d(j,1)=floor(accum/2^qfmat);
|
||||
|
||||
accum1=0;
|
||||
|
||||
for ii=1:taps
|
||||
accum1=accum1+floor(b_temp(ii)*d(j,ii));
|
||||
end
|
||||
|
||||
for ii=(taps-2+1):-1:1
|
||||
d(j,ii+1)=d(j,ii);
|
||||
end
|
||||
|
||||
accum=floor(accum1);
|
||||
|
||||
end
|
||||
|
||||
x_no_scale_biq_fixed(k)=(accum1)/2^qfmat; % direct I form high order implementation output
|
||||
|
||||
end
|
||||
|
||||
figure(1)
|
||||
plot(filter_out_Q15)
|
||||
peak1=max(filter_out_Q15);
|
||||
hold on
|
||||
peak2=max(x_no_scale_biq_fixed);
|
||||
plot(x_no_scale_biq_fixed,'r')
|
||||
|
||||
x_output_final=floor(x_no_scale_biq_fixed/2);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+246
@@ -0,0 +1,246 @@
|
||||
|
||||
Ni=500; % Number of impulses required for Impulse response
|
||||
FMAT=16; % 16 bit representation or 32 bit representation
|
||||
disp('ezIIR FILTER DESIGN SCRIPT');
|
||||
disp('Butterworth : 1');
|
||||
disp('Chebyshev(Type 1) : 2');
|
||||
disp('Chebyshev(Type 2) : 3');
|
||||
disp('Elliptic : 4');
|
||||
ftype=input('Select Any one of the above IIR Filter Type : ');
|
||||
disp('Low pass : 1');
|
||||
disp('High Pass : 2');
|
||||
disp('Band Pass : 3');
|
||||
disp('Band Stop : 4');
|
||||
fres=input('Select Any one of the above Response : ');
|
||||
fs=input('Enter the Sampling frequency : ');
|
||||
Rp=input('Enter the Pass band Ripples in dB(RP) : ');
|
||||
Rs=input('Enter the stop band Rippled in dB(RS) : ');
|
||||
Wp=input('Enter the pass band corner frequency(FP) : ');
|
||||
Ws=input('Enter the stop band corner frequency(FS) : ');
|
||||
fname=input('Enter the name of the file for coeff storage : ','s');
|
||||
|
||||
% Design the Filter
|
||||
if fres==1
|
||||
res='low';
|
||||
elseif fres==2
|
||||
res='high';
|
||||
elseif fres==3
|
||||
res='bandpass';
|
||||
elseif fres==4
|
||||
res='stop';
|
||||
end
|
||||
|
||||
Wp=Wp/(fs/2); % Normalise the frequency values
|
||||
Ws=Ws/(fs/2); % Normalise the frequency values
|
||||
|
||||
if ftype==1
|
||||
[N,Wn]=buttord(Wp,Ws,Rp,Rs);
|
||||
[Z,P,K]=butter(N,Wn,res);
|
||||
end
|
||||
|
||||
if ftype==2
|
||||
[N,Wn]=cheb1ord(Wp,Ws,Rp,Rs);
|
||||
[Z,P,K]=cheby1(N,Rp,Wn,res);
|
||||
end
|
||||
|
||||
if ftype==3
|
||||
[N,Wn]=cheb2ord(Wp,Ws,Rp,Rs);
|
||||
[Z,P,K]=cheby2(N,Rs,Wn,res);
|
||||
end
|
||||
|
||||
if ftype==4
|
||||
[N,Wn]=ellipord(Wp,Ws,Rp,Rs);
|
||||
[Z,P,K]=ellip(N,Rp,Rs,Wn,res);
|
||||
end
|
||||
|
||||
sos=zp2sos(Z,P,K); % Convert ZP to SOS
|
||||
ssos=sos; % Copy of SOS, will be used for scaling
|
||||
isos=ssos; % Copy of SOS, will be used for Q format Rep
|
||||
nbiq=size(sos,1); % Number of biquads(no of rows)
|
||||
dmag=zeros(1,nbiq); % Clear Peak manitude buffer for Delay node
|
||||
ymag=zeros(1,nbiq); % Clear Peak manitude buffer for Output node
|
||||
sf=zeros(1,nbiq); % Clear Scale Factor array
|
||||
|
||||
B=zeros(1,nbiq*3);
|
||||
A=zeros(1,nbiq*3);
|
||||
|
||||
% Obtain the peak magnitude at various nodes in Cascaded Biquad implementation
|
||||
for i=1:nbiq % Loop to find the peak magnitude in SOS nodes
|
||||
if i==1 % Obtain the peak magnitue at the first delay node
|
||||
num=[1 0 0];
|
||||
den=sos(1,4:6);
|
||||
h=impz(num,den,Ni);
|
||||
dmag(i)=sum(abs(h));
|
||||
end
|
||||
|
||||
if i~=1 % Obtain the peak magnitue at the delay node
|
||||
[num,den]=sos2tf(sos(1:i-1,:));
|
||||
den=conv(den,sos(i,4:6));
|
||||
h=impz(num,den,Ni);
|
||||
dmag(i)=sum(abs(h));
|
||||
end
|
||||
|
||||
[num,den]=sos2tf(sos(1:i,:)); % Obtain the peak magnitue at the biquad output node
|
||||
h=impz(num,den,Ni);
|
||||
ymag(i)=sum(abs(h));
|
||||
sf(i)=max(ymag(i),dmag(i));
|
||||
end
|
||||
|
||||
% Scale the B coeff of biquad to avoid overflow in the node
|
||||
|
||||
for i=2:nbiq
|
||||
scale=sf(i)/sf(i-1);
|
||||
ssos(i-1,1:3)=ssos(i-1,1:3)/scale;
|
||||
end
|
||||
|
||||
% Scale the 'b' coeff of last BIQUAD
|
||||
ssos(nbiq,1:3)=ssos(nbiq,1:3)*sf(nbiq);
|
||||
|
||||
% Determine the Q format for representing the coefficients & Input Scale factor
|
||||
maxcoeff=max(max(abs(ssos)));
|
||||
maxval=max(maxcoeff,1/sf(1)); % Modified from max(maxcoeff, sf(1)), Settu 27/12/2001
|
||||
qformat=FMAT-1;
|
||||
if(maxval>1)
|
||||
qformat=(FMAT-1)-ceil(log2(maxval));
|
||||
qscale=2^qformat;
|
||||
end
|
||||
|
||||
% Respresent the scaled second order section and ISF in appropriate number format
|
||||
isos=ssos*qscale;
|
||||
isos=round(isos);
|
||||
|
||||
isf=(1/sf(1))*qscale; % Represent the input scale factor in Fixed Point format
|
||||
isf=round(isf);
|
||||
|
||||
% Saturate the coefficient to maximum positive value
|
||||
for i=1:nbiq
|
||||
for j=1:6
|
||||
if isos(i,j)==2^(FMAT-1)
|
||||
isos(i,j)=(2^(FMAT-1))-1;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if isf==2^(FMAT-1) % Saturate to maximum positive value
|
||||
isf=(2^(FMAT-1))-1;
|
||||
end
|
||||
|
||||
% Open the file and store the scaled IIR filter coefficients and Input scale factor
|
||||
fid = fopen(fname,'w');
|
||||
|
||||
fprintf(fid,'#define IIR16_COEFF {\\');
|
||||
fprintf(fid,'\n');
|
||||
for i=1:nbiq
|
||||
fprintf(fid,'\t\t\t');
|
||||
bis=isos(i,1:3);
|
||||
bis=fliplr(bis);
|
||||
ais=isos(i,5:6);
|
||||
ais=-fliplr(ais); % Negate the 'a' coefficients
|
||||
fprintf(fid,'%d,',ais);
|
||||
fprintf(fid,'%d,',bis);
|
||||
fprintf(fid,'\\');
|
||||
fprintf(fid,'\n');
|
||||
end
|
||||
fseek(fid,-3,0);
|
||||
fprintf(fid,'}\n');
|
||||
fprintf(fid,'\n#define IIR16_ISF\t%d\n',isf);
|
||||
fprintf(fid,'#define IIR16_NBIQ\t%d\n',nbiq);
|
||||
fprintf(fid,'#define IIR16_QFMAT\t%d\n',qformat);
|
||||
fclose(fid);
|
||||
|
||||
% Display Q format of the IIR filter coefficients, No of biquads
|
||||
disp(' ');
|
||||
disp('Q format of the IIR filter coefficients:');
|
||||
disp(qformat);
|
||||
|
||||
disp('Input Scaling value:');
|
||||
disp(1/sf(1));
|
||||
|
||||
disp('Number of Biquads:');
|
||||
disp(nbiq);
|
||||
|
||||
% Plot the frequency response of the filter
|
||||
[B,A]=sos2tf(sos);
|
||||
[H,f]=freqz(B,A,512,fs);
|
||||
figure(1);
|
||||
subplot(2,1,1);
|
||||
plot(f,abs(H));
|
||||
grid;
|
||||
xlabel('Hertz');
|
||||
ylabel('Magnitude Response');
|
||||
subplot(2,1,2);
|
||||
plot(f,unwrap(angle(H))*180/pi);
|
||||
grid;
|
||||
xlabel('Hertz');
|
||||
ylabel('Phase (degrees)');
|
||||
figure(2);
|
||||
freqz(B,A,512,fs);
|
||||
|
||||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%
|
||||
% % Simulated signal generation
|
||||
%
|
||||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
RadStep = 0.1963495408494;
|
||||
|
||||
N=input('Please enter signal length N =');
|
||||
halfSize=N-1;
|
||||
|
||||
Rad=[0:RadStep:(halfSize)*RadStep];
|
||||
|
||||
Rx=sin(Rad)+cos(Rad*2.3567);
|
||||
Ix=0*(cos(Rad*8.345) + sin(Rad*5.789));
|
||||
|
||||
x=Rx+j*Ix;
|
||||
x_raw_sig=x/2;
|
||||
|
||||
x_Q15=2^15*x/2;
|
||||
|
||||
filter_out_Q15=filter(B,A,x_Q15);
|
||||
|
||||
d=zeros(nbiq,3);
|
||||
taps=3;
|
||||
|
||||
for k=1:length(x_Q15)
|
||||
|
||||
accum=floor(x_Q15(k)*isf);
|
||||
|
||||
for j=1:nbiq
|
||||
|
||||
b_temp=isos(j,1:3);
|
||||
a_temp=isos(j,4:6);
|
||||
|
||||
for ii=2:taps
|
||||
accum=accum-floor(a_temp(ii)*d(j,ii));
|
||||
end
|
||||
|
||||
% d(j,1)=accum*2^3/2^16;
|
||||
d(j,1)=floor(accum/2^qformat);
|
||||
|
||||
accum1=0;
|
||||
|
||||
for ii=1:taps
|
||||
accum1=accum1+floor(b_temp(ii)*d(j,ii));
|
||||
end
|
||||
|
||||
for ii=(taps-2+1):-1:1
|
||||
d(j,ii+1)=d(j,ii);
|
||||
end
|
||||
|
||||
accum=floor(accum1);
|
||||
|
||||
end
|
||||
|
||||
x_no_scale_biq_fixed(k)=(accum1)/2^qformat; % direct I form high order implementation output
|
||||
|
||||
end
|
||||
|
||||
figure(4)
|
||||
plot(filter_out_Q15)
|
||||
peak1=max(filter_out_Q15);
|
||||
hold on
|
||||
peak2=max(x_no_scale_biq_fixed);
|
||||
plot(x_no_scale_biq_fixed,'r')
|
||||
|
||||
x_output_final=floor(x_no_scale_biq_fixed/2);
|
||||
+180
@@ -0,0 +1,180 @@
|
||||
//#############################################################################
|
||||
//! \file $FOLDER_EXAMPLES$/$DEVICE$_FixedPoint_IIR16/iir16d.c
|
||||
//!
|
||||
//! \brief 16-bit IIR Filter Example
|
||||
//!
|
||||
//! \date Aug 12, 2014
|
||||
//!
|
||||
//! This examples shows how to implement a 16-bit IIR filter using the optimized
|
||||
//! IIR library routines. The IIR structure is as follows:
|
||||
//!
|
||||
//! typedef struct {
|
||||
//! void (*init)(void *);
|
||||
//! void (*calc)(void *);
|
||||
//! int *coeff_ptr;
|
||||
//! int *dbuffer_ptr;
|
||||
//! int nbiq;
|
||||
//! int input;
|
||||
//! int isf;
|
||||
//! int qfmat;
|
||||
//! int output;
|
||||
//! }IIR5BIQ16;
|
||||
//!
|
||||
//! Users can also use default templates defined within filter.h to initialize
|
||||
//! the IIR16 header structure.
|
||||
//!
|
||||
//! IIR16 iir= IIR16_DEFAULTS;
|
||||
//!
|
||||
//! The MATLAB Filter Design and Analysis Tool (FDATool) is a useful tool
|
||||
//! for designing filters and generating fixed point coefficients. Refer
|
||||
//! to the appendix of the Fixed Point DSP Libray User's Guide for more
|
||||
//! information.
|
||||
//! The eziir16.m MATLAB script ($FOLDER_EXAMPLES$/$DEVICE$_FixedPoint_IIR16/matlab/
|
||||
//! eziir16.m) can be used to generate the filter coefficients in a way as to prevent
|
||||
//! overflow of the output. Please refer to SPRA509 (Overflow Avoidance Techniques in
|
||||
//! Cascaded IIR Filter Implementations on the TMS320 DSP's) for a better understanding
|
||||
//! of what the process is. The script will generate a Q-format and Input Scaling Factor
|
||||
//! for the coefficients, QFMAT and ISF respectively, that will be used in the IIR5BIQ16
|
||||
//! object initialization.
|
||||
//!
|
||||
//! \b Watch \b Variables
|
||||
//! - iir IIR16 object
|
||||
//!
|
||||
//! In CCS, you can invoke the "SetupDebugEnv.js" script from the
|
||||
//! Scripting console to have these variables set up in the Watch window
|
||||
//! and create graphs to show the input/output vectors
|
||||
//
|
||||
// Group: C2000
|
||||
// Target Family: C28x
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright: Copyright (C) 2014-2024 Texas Instruments Incorporated -
|
||||
// http://www.ti.com/ ALL RIGHTS RESERVED $
|
||||
//#############################################################################
|
||||
|
||||
//*****************************************************************************
|
||||
// includes
|
||||
//*****************************************************************************
|
||||
#include "examples_setup.h"
|
||||
#include <filter.h>
|
||||
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
// Filter Symbolic Constants
|
||||
#define SIGNAL_LENGTH 100
|
||||
|
||||
//*****************************************************************************
|
||||
// globals
|
||||
//*****************************************************************************
|
||||
// Create an Instance of IIR5BIQD16 module and place the object in
|
||||
// "iirfilt" section
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(iir, "iirfilt");
|
||||
#else
|
||||
#pragma DATA_SECTION("iirfilt");
|
||||
#endif
|
||||
IIR5BIQ16 iir = IIR5BIQ16_DEFAULTS;
|
||||
|
||||
// Modify the delay buffer size to be commensurate with the number of biquads
|
||||
// in the filter. Size of the Delay buffer = 2*nbiq i.e. two delay elements
|
||||
// per biquad
|
||||
// Define the Delay buffer for the cascaded 6 biquad IIR filter and place it
|
||||
// in "iirfilt" section
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(dbuffer, "iirldb");
|
||||
#else
|
||||
#pragma DATA_SECTION("iirldb");
|
||||
#endif
|
||||
int dbuffer[2*IIR16_LPF_NBIQ];
|
||||
|
||||
// Input/output buffer
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(sigIn, "sigIn");
|
||||
#else
|
||||
#pragma DATA_SECTION("sigIn");
|
||||
#endif
|
||||
int16_t sigIn[SIGNAL_LENGTH];
|
||||
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(sigOut, "sigOut");
|
||||
#else
|
||||
#pragma DATA_SECTION("sigOut");
|
||||
#endif
|
||||
int16_t sigOut[SIGNAL_LENGTH];
|
||||
|
||||
// For each biquad there are 6 coefficients: a0, a1, a2, b0, b0, b2.
|
||||
// a0 is always 1, therefore, we need 5 coefficients for each biquad
|
||||
// xn------>(x)--->(+)--------------->yn
|
||||
// | ^ ^ |
|
||||
// | | |q4 |
|
||||
// | b(0) (z) |
|
||||
// | ^ |
|
||||
// | |q3 |
|
||||
// |-->(x)--->(+)<-----(x)---|
|
||||
// | ^ ^ ^ |
|
||||
// | | |q2 | |
|
||||
// | b(1) (z) a(1) |
|
||||
// | ^ |
|
||||
// | |q1 |
|
||||
// --->(x)--->(+)<-----(x)----
|
||||
// ^ ^
|
||||
// | |
|
||||
// b(2) a(2)
|
||||
// Size of the coefficient array = 5 * nbiq
|
||||
const int coeff[5*IIR16_LPF_NBIQ] = IIR16_LPF_COEFF;
|
||||
|
||||
|
||||
// Start of main()
|
||||
int main(void)
|
||||
{
|
||||
// Locals
|
||||
int32_t xn = 0, yn = 0;
|
||||
float RadStep = 0.1963495408494f;
|
||||
float Rad = 0.0f;
|
||||
uint32_t i = 0;
|
||||
|
||||
#ifdef _FLASH
|
||||
FIXPT_DSP_initFlash();
|
||||
#endif //_FLASH
|
||||
FIXPT_DSP_initSystemClocks();
|
||||
FIXPT_DSP_initEpie();
|
||||
|
||||
for(i=0; i < SIGNAL_LENGTH; i++){
|
||||
sigIn[i] =0;
|
||||
sigOut[i] =0;
|
||||
}
|
||||
|
||||
|
||||
// IIR Filter Initialization
|
||||
iir.dbuffer_ptr = (int16_t *)dbuffer;
|
||||
iir.coeff_ptr = (int16_t *)coeff;
|
||||
iir.qfmat = IIR16_LPF_QFMAT;
|
||||
iir.nbiq = IIR16_LPF_NBIQ;
|
||||
iir.isf = IIR16_LPF_ISF;
|
||||
iir.init(&iir);
|
||||
|
||||
for(i=0; i < SIGNAL_LENGTH; i++){
|
||||
xn = (int)(32768*(sin(Rad) + cos(Rad*2.3567))/2); //Q15
|
||||
sigIn[i] = xn;
|
||||
iir.input = xn;
|
||||
iir.calc(&iir);
|
||||
yn = iir.output;
|
||||
sigOut[i] = yn;
|
||||
Rad = Rad + RadStep;
|
||||
}
|
||||
|
||||
//asm(" ESTOP0");
|
||||
for(;;);
|
||||
|
||||
// code should never reach this pointer
|
||||
return 1;
|
||||
|
||||
} /* End: main() */
|
||||
|
||||
|
||||
//###########################################################################
|
||||
// End of File
|
||||
//###########################################################################
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?ccsproject version="1.0"?>
|
||||
<projectOptions>
|
||||
<deviceFamily value="C2000"/>
|
||||
<isTargetManual value="false"/>
|
||||
</projectOptions>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?eclipse-cdt version="2.0"?>
|
||||
|
||||
<cdtproject id="org.eclipse.cdt.managedbuilder.core.managedMake">
|
||||
<extension id="org.eclipse.cdt.managedbuilder.core.ManagedBuildManager" point="org.eclipse.cdt.core.ScannerInfoProvider"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<data>
|
||||
<item id="org.eclipse.cdt.core.pathentry">
|
||||
<pathentry kind="src" path=""/>
|
||||
<pathentry kind="out" path=""/>
|
||||
<pathentry kind="con" path="org.eclipse.cdt.managedbuilder.MANAGED_CONTAINER"/>
|
||||
<pathentry kind="con" path="com.ti.ccstudio.managedbuild.core.CCS_CONTAINER"/>
|
||||
</item>
|
||||
</data>
|
||||
</cdtproject>
|
||||
@@ -0,0 +1,194 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?>
|
||||
|
||||
<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.978373441">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.978373441" moduleId="org.eclipse.cdt.core.settings" name="RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_TO_FIXEDPTLIB" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/>
|
||||
<stringMacro name="INSTALLROOT_2833X" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../../../device_support/f2833x"/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="2833x_FixedPoint_IIR32" buildProperties="" description="RAM build configuration" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.978373441" name="RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.978373441.1210709408" name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain.1731601662" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.1574755850">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1612003568" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS320C28XX.TMS320F28335"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts2800_ml.lib"/>
|
||||
<listOptionValue builtIn="false" value="IS_ELF=false"/>
|
||||
<listOptionValue builtIn="false" value="PROJECT_KIND=com.ti.ccstudio.managedbuild.core.ProjectKind_Executable"/>
|
||||
<listOptionValue builtIn="false" value="IS_ASSEMBLY_ONLY=false"/>
|
||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=28335_RAM_lnk.cmd"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1885410142" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="6.2.5" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug.450000199" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug.1521677033" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug.337437269" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL.1712609775" name="Use large memory model (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY.1528006560" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.590686577" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT.519819398" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH.463964264" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/common/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/examples/common""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.1878859222" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE.656087405" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="RAM"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING.1617026371" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS.1937046057" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS.97854740" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS.1135848726" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS.626206009" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.1574755850" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE.1643075200" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE" value="0x300" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE.2079427389" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE" value=""2833x_FixedPoint_IIR32.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE.1177402000" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE" value=""2833x_FixedPoint_IIR32.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles.1421695763" name="[Deprecated] Generated Linker Command files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""$(GEN_CMDS_QUOTED)""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY.1484624360" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value="c28x_fixedpoint_dsp_library.lib"/>
|
||||
<listOptionValue builtIn="false" value=""rts2800_ml.lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH.1554149858" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE.1022530669" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE" value="RAM" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO.1191068344" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO" value=""2833x_FixedPoint_IIR32_linkInfo.xml"" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS.1133211110" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS.986970540" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS.121850270" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
<sourceEntries>
|
||||
<entry excluding="28335_RAM_lnk.cmd" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
|
||||
</sourceEntries>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.978373441.1255240280">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.978373441.1255240280" moduleId="org.eclipse.cdt.core.settings" name="_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_TO_FIXEDPTLIB" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/>
|
||||
<stringMacro name="INSTALLROOT_2833X" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../../../device_support/f2833x"/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="2833x_FixedPoint_IIR32" buildProperties="" description="_FLASH build configuration" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.978373441.1255240280" name="_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.978373441.1255240280." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain.1111615399" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.550253436">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1430782307" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS320C28XX.TMS320F28335"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=28335_RAM_lnk.cmd"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts2800_ml.lib"/>
|
||||
<listOptionValue builtIn="false" value="IS_ELF=false"/>
|
||||
<listOptionValue builtIn="false" value="PROJECT_KIND=com.ti.ccstudio.managedbuild.core.ProjectKind_Executable"/>
|
||||
<listOptionValue builtIn="false" value="IS_ASSEMBLY_ONLY=false"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.235145517" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="6.2.5" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug.231753850" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug.969221650" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug.440582175" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL.110761383" name="Use large memory model (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY.227261507" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.106900918" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT.1603288564" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.99263295" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH.1172768505" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/common/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/examples/common""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING.610240837" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE.155044229" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS.388038025" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS.1222538111" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS.1579768018" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS.1591012011" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.1315878452" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE.2141302724" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE" value="0x300" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE.2058405331" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE" value=""2833x_FixedPoint_IIR32.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE.1423844074" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE" value=""2833x_FixedPoint_IIR32.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles.536139671" name="[Deprecated] Generated Linker Command files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""$(GEN_CMDS_QUOTED)""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY.1711722247" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value="c28x_fixedpoint_dsp_library.lib"/>
|
||||
<listOptionValue builtIn="false" value=""rts2800_ml.lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH.1889156958" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO.1110502481" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO" value=""2833x_FixedPoint_IIR32_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE.19499481" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE" value="_FLASH" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS.1821517402" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS.430280743" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS.561341967" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="2833x_FixedPoint_IIR32.com.ti.ccstudio.buildDefinitions.C2000.ProjectType.78671653" name="C2000" projectType="com.ti.ccstudio.buildDefinitions.C2000.ProjectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
||||
<project-mappings>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
</project-mappings>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration"/>
|
||||
</cproject>
|
||||
@@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>2833x_FixedPoint_IIR32</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>DSP2833x_ADC_cal.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_ADC_cal.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_Adc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_Adc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_CodeStartBranch.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_CodeStartBranch.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_CpuTimers.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_CpuTimers.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_DBGIER.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_DBGIER.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_DefaultIsr.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_DefaultIsr.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_GlobalVariableDefs.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/headers/source/DSP2833x_GlobalVariableDefs.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_Headers_nonBIOS.cmd</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/headers/cmd/DSP2833x_Headers_nonBIOS.cmd</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_PieCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_PieCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_PieVect.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_PieVect.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_SysCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_SysCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_usDelay.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_usDelay.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F28335_FIXPT_IIR5BIQ_lnk.cmd</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_TO_FIXEDPTLIB/cmd/F28335_FIXPT_IIR5BIQ_lnk.cmd</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>examples_setup.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_TO_FIXEDPTLIB/examples/common/examples_setup.c</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>INSTALLROOT_2833X</name>
|
||||
<value>$%7BPARENT-6-PROJECT_LOC%7D/device_support/f2833x</value>
|
||||
</variable>
|
||||
<variable>
|
||||
<name>INSTALLROOT_TO_FIXEDPTLIB</name>
|
||||
<value>$%7BPARENT-2-PROJECT_LOC%7D</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
BIN
Binary file not shown.
+5
@@ -0,0 +1,5 @@
|
||||
//Add watch window variables
|
||||
expRemoveAll()
|
||||
expAdd("iir", getNatural())
|
||||
|
||||
openAnalysisView('Dual Time','C:/Users/a0272561/Repositories/cs30_controlsuite/libs/dsp/FixedPointLib/version/examples/2833x_FixedPoint_IIR32/IIR32_IN_OUT.graphProp')
|
||||
+183
@@ -0,0 +1,183 @@
|
||||
% // TI File $Revision: /main/3 $
|
||||
% // Checkin $Date: November 1, 2010 13:05:07 $
|
||||
% // =====================================================================================
|
||||
% // This software is licensed for use with Texas Instruments C28x
|
||||
% // family DSCs. This license was provided to you prior to installing
|
||||
% // the software. You may review this license by consulting a copy of
|
||||
% // the agreement in the doc directory of this library.
|
||||
% //======================================================================================
|
||||
% //
|
||||
% // FILE: FixedPointIIR32.m
|
||||
% //
|
||||
% // TITLE: DSP2833x Device Fixed Point 32 Bit IIR Test Program
|
||||
% //
|
||||
% //
|
||||
% // ASSUMPTIONS:
|
||||
% //
|
||||
% // This matlab code is reference code for debugging FixedPoint DSP library
|
||||
% // function IIR32_calc and example project 2833x_FixedPoint_IIR32.
|
||||
% //
|
||||
% //
|
||||
% //
|
||||
% // Watch Variables:
|
||||
% //
|
||||
% // x_raw_sig Input signal (float)
|
||||
% // x_Q31 Input signal (Q31)
|
||||
% // B,A IIR filter coefficients array b,a
|
||||
% // filter_out_Q31 Filtered result using standard MATLAB filter function
|
||||
% // filer. It is used as reference to compare with
|
||||
% // the fixed point result. (Q31)
|
||||
% // x_output_final Output data by fixed point algorithm (Q31).
|
||||
% //
|
||||
% //######################################################################################
|
||||
% //
|
||||
% //
|
||||
% //
|
||||
%// C2000Ware v5.04.00.00
|
||||
%//Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
|
||||
%//
|
||||
%// Redistribution and use in source and binary forms, with or without
|
||||
%// modification, are permitted provided that the following conditions
|
||||
%// are met:
|
||||
%//
|
||||
%// Redistributions of source code must retain the above copyright
|
||||
%// notice, this list of conditions and the following disclaimer.
|
||||
%//
|
||||
%// Redistributions in binary form must reproduce the above copyright
|
||||
%// notice, this list of conditions and the following disclaimer in the
|
||||
%// documentation and/or other materials provided with the
|
||||
%// distribution.
|
||||
%//
|
||||
%// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
%// its contributors may be used to endorse or promote products derived
|
||||
%// from this software without specific prior written permission.
|
||||
%//
|
||||
%// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
%// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
%// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
%// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
%// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
%// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
%// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
%// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
%// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
%// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
%// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
%//$
|
||||
% //######################################################################################
|
||||
|
||||
clear all
|
||||
close all
|
||||
|
||||
disp('==============================================================');
|
||||
disp('input signal is stored as Q31 format');
|
||||
disp('==============================================================');
|
||||
disp('this is Matlab version of IIR32 code');
|
||||
disp('The result is stored in array x_output_final in Q31 format');
|
||||
disp('The signal is stored in array x_raw_sig');
|
||||
disp('The fixed point input signal is stored in x_Q31 in Q31 format');
|
||||
disp('==============================================================');
|
||||
|
||||
MAX_TAPS=5;
|
||||
|
||||
RadStep = 0.1963495408494;
|
||||
|
||||
N=input('Please enter signal length N =');
|
||||
halfSize=N-1;
|
||||
|
||||
Rad=[0:RadStep:(halfSize)*RadStep];
|
||||
|
||||
Rx=sin(Rad)+cos(Rad*2.3567);
|
||||
Ix=0*(cos(Rad*8.345) + sin(Rad*5.789));
|
||||
|
||||
x=Rx+j*Ix;
|
||||
x_raw_sig=x/2;
|
||||
|
||||
x_Q31=2^31*x/2;
|
||||
|
||||
B=[ 0.000176614401432267
|
||||
0.00123630081002587
|
||||
0.00370890243007761
|
||||
0.00618150405012935
|
||||
0.00618150405012935
|
||||
0.00370890243007761
|
||||
0.00123630081002587
|
||||
0.000176614401432267];
|
||||
|
||||
A=[ 1
|
||||
-3.84708594662977
|
||||
6.78600477287384
|
||||
-6.96288772960265
|
||||
4.44516236478943
|
||||
-1.75415688503484
|
||||
0.39441771610976
|
||||
-0.0388476491224433];
|
||||
|
||||
A=A';B=B';
|
||||
|
||||
filter_out_Q31=filter(B,A,x_Q31);
|
||||
|
||||
% good
|
||||
isos=[ 20118017 20118017 0 536870912 -248624377 0
|
||||
43749199 87498398 43749199 536870912 -517372703 141524868
|
||||
35450657 70901314 35450657 536870912 -583544331 228291242
|
||||
875854244 1751708488 875854244 536870912 -715847129 401770939];
|
||||
|
||||
isf=288246535;
|
||||
|
||||
d=zeros(4,3);
|
||||
taps=3;
|
||||
|
||||
for k=1:length(x_Q31)
|
||||
|
||||
accum=floor(x_Q31(k)*isf/2^32);
|
||||
|
||||
for j=1:4
|
||||
|
||||
b_temp=isos(j,1:3);
|
||||
a_temp=isos(j,4:6);
|
||||
|
||||
for ii=2:taps
|
||||
accum=accum-ceil(a_temp(ii)*d(j,ii)/2^32);
|
||||
end
|
||||
|
||||
d(j,1)=floor(accum*2^3);
|
||||
|
||||
accum1=0;
|
||||
|
||||
for ii=1:taps
|
||||
accum1=accum1+floor(b_temp(ii)*d(j,ii)/2^32);
|
||||
end
|
||||
|
||||
for ii=(taps-2+1):-1:1
|
||||
d(j,ii+1)=d(j,ii);
|
||||
end
|
||||
|
||||
accum=floor(accum1);
|
||||
|
||||
end
|
||||
|
||||
x_no_scale_biq_fixed(k)=(accum1)*2^3; % direct I form high order implementation output
|
||||
|
||||
end
|
||||
|
||||
figure(1)
|
||||
plot(filter_out_Q31)
|
||||
peak1=max(filter_out_Q31);
|
||||
hold on
|
||||
peak2=max(x_no_scale_biq_fixed);
|
||||
plot(x_no_scale_biq_fixed,'r')
|
||||
|
||||
x_output_final=floor(x_no_scale_biq_fixed/2);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+252
@@ -0,0 +1,252 @@
|
||||
|
||||
Ni=500; % Number of impulses required for Impulse response
|
||||
FMAT=32; % 16 bit representation or 32 bit representation
|
||||
disp('ezIIR FILTER DESIGN SCRIPT');
|
||||
disp('Butterworth : 1');
|
||||
disp('Chebyshev(Type 1) : 2');
|
||||
disp('Chebyshev(Type 2) : 3');
|
||||
disp('Elliptic : 4');
|
||||
ftype=input('Select Any one of the above IIR Filter Type : ');
|
||||
disp('Low pass : 1');
|
||||
disp('High Pass : 2');
|
||||
disp('Band Pass : 3');
|
||||
disp('Band Stop : 4');
|
||||
fres=input('Select Any one of the above Response : ');
|
||||
fs=input('Enter the Sampling frequency : ');
|
||||
Rp=input('Enter the Pass band Ripples in dB(RP) : ');
|
||||
Rs=input('Enter the stop band Rippled in dB(RS) : ');
|
||||
Wp=input('Enter the pass band corner frequency(FP) : ');
|
||||
Ws=input('Enter the stop band corner frequency(FS) : ');
|
||||
fname=input('Enter the name of the file for coeff storage : ','s');
|
||||
|
||||
% Design the Filter
|
||||
if fres==1
|
||||
res='low';
|
||||
elseif fres==2
|
||||
res='high';
|
||||
elseif fres==3
|
||||
res='bandpass';
|
||||
elseif fres==4
|
||||
res='stop';
|
||||
end
|
||||
|
||||
Wp=Wp/(fs/2); % Normalise the frequency values
|
||||
Ws=Ws/(fs/2); % Normalise the frequency values
|
||||
|
||||
if ftype==1
|
||||
[N,Wn]=buttord(Wp,Ws,Rp,Rs);
|
||||
[Z,P,K]=butter(N,Wn,res);
|
||||
end
|
||||
|
||||
if ftype==2
|
||||
[N,Wn]=cheb1ord(Wp,Ws,Rp,Rs);
|
||||
[Z,P,K]=cheby1(N,Rp,Wn,res);
|
||||
end
|
||||
|
||||
if ftype==3
|
||||
[N,Wn]=cheb2ord(Wp,Ws,Rp,Rs);
|
||||
[Z,P,K]=cheby2(N,Rs,Wn,res);
|
||||
end
|
||||
|
||||
if ftype==4
|
||||
[N,Wn]=ellipord(Wp,Ws,Rp,Rs);
|
||||
[Z,P,K]=ellip(N,Rp,Rs,Wn,res);
|
||||
end
|
||||
|
||||
sos=zp2sos(Z,P,K); % Convert ZP to SOS
|
||||
ssos=sos; % Copy of SOS, will be used for scaling
|
||||
isos=ssos; % Copy of SOS, will be used for Q format Rep
|
||||
nbiq=size(sos,1); % Number of biquads(no of rows)
|
||||
dmag=zeros(1,nbiq); % Clear Peak manitude buffer for Delay node
|
||||
ymag=zeros(1,nbiq); % Clear Peak manitude buffer for Output node
|
||||
sf=zeros(1,nbiq); % Clear Scale Factor array
|
||||
|
||||
B=zeros(1,nbiq*3);
|
||||
A=zeros(1,nbiq*3);
|
||||
|
||||
% Obtain the peak magnitude at various nodes in Cascaded Biquad implementation
|
||||
for i=1:nbiq % Loop to find the peak magnitude in SOS nodes
|
||||
if i==1 % Obtain the peak magnitue at the first delay node
|
||||
num=[1 0 0];
|
||||
den=sos(1,4:6);
|
||||
h=impz(num,den,Ni);
|
||||
dmag(i)=sum(abs(h));
|
||||
end
|
||||
|
||||
if i~=1 % Obtain the peak magnitue at the delay node
|
||||
[num,den]=sos2tf(sos(1:i-1,:));
|
||||
den=conv(den,sos(i,4:6));
|
||||
h=impz(num,den,Ni);
|
||||
dmag(i)=sum(abs(h));
|
||||
end
|
||||
|
||||
[num,den]=sos2tf(sos(1:i,:)); % Obtain the peak magnitue at the biquad output node
|
||||
h=impz(num,den,Ni);
|
||||
ymag(i)=sum(abs(h));
|
||||
sf(i)=max(ymag(i),dmag(i));
|
||||
end
|
||||
|
||||
% Scale the B coeff of biquad to avoid overflow in the node
|
||||
|
||||
for i=2:nbiq
|
||||
scale=sf(i)/sf(i-1);
|
||||
ssos(i-1,1:3)=ssos(i-1,1:3)/scale;
|
||||
end
|
||||
|
||||
% Scale the 'b' coeff of last BIQUAD
|
||||
ssos(nbiq,1:3)=ssos(nbiq,1:3)*sf(nbiq);
|
||||
|
||||
% Determine the Q format for representing the coefficients & Input Scale factor
|
||||
maxcoeff=max(max(abs(ssos)));
|
||||
maxval=max(maxcoeff,1/sf(1)); % Modified from max(maxcoeff, sf(1)), Settu 27/12/2001
|
||||
qformat=FMAT-1;
|
||||
if(maxval>1)
|
||||
qformat=(FMAT-1)-ceil(log2(maxval));
|
||||
qscale=2^qformat;
|
||||
end
|
||||
|
||||
% Respresent the scaled second order section and ISF in appropriate number format
|
||||
isos=ssos*qscale;
|
||||
isos=round(isos);
|
||||
|
||||
isf=(1/sf(1))*qscale; % Represent the input scale factor in Fixed Point format
|
||||
isf=round(isf);
|
||||
|
||||
% Saturate the coefficient to maximum positive value
|
||||
for i=1:nbiq
|
||||
for j=1:6
|
||||
if isos(i,j)==2^(FMAT-1)
|
||||
isos(i,j)=(2^(FMAT-1))-1;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if isf==2^(FMAT-1) % Saturate to maximum positive value
|
||||
isf=(2^(FMAT-1))-1;
|
||||
end
|
||||
|
||||
% Open the file and store the scaled IIR filter coefficients and Input scale factor
|
||||
fid = fopen(fname,'w');
|
||||
|
||||
fprintf(fid,'#define IIR32_COEFF {\\');
|
||||
fprintf(fid,'\n');
|
||||
for i=1:nbiq
|
||||
fprintf(fid,'\t\t\t');
|
||||
bis=isos(i,1:3);
|
||||
bis=fliplr(bis);
|
||||
ais=isos(i,5:6);
|
||||
ais=-fliplr(ais); % Negate the 'a' coefficients
|
||||
fprintf(fid,'%d,',ais);
|
||||
fprintf(fid,'%d,',bis);
|
||||
fprintf(fid,'\\');
|
||||
fprintf(fid,'\n');
|
||||
end
|
||||
fseek(fid,-3,0);
|
||||
fprintf(fid,'}\n');
|
||||
fprintf(fid,'\n#define IIR32_ISF\t%d\n',isf);
|
||||
fprintf(fid,'#define IIR32_NBIQ\t%d\n',nbiq);
|
||||
fprintf(fid,'#define IIR32_QFMAT\t%d\n',qformat);
|
||||
fclose(fid);
|
||||
|
||||
% Display Q format of the IIR filter coefficients, No of biquads
|
||||
disp(' ');
|
||||
disp('Q format of the IIR filter coefficients:');
|
||||
disp(qformat);
|
||||
|
||||
disp('Input Scaling value:');
|
||||
disp(1/sf(1));
|
||||
|
||||
disp('Number of Biquads:');
|
||||
disp(nbiq);
|
||||
|
||||
% Plot the frequency response of the filter
|
||||
[B,A]=sos2tf(sos);
|
||||
[H,f]=freqz(B,A,512,fs);
|
||||
figure(1);
|
||||
subplot(2,1,1);
|
||||
plot(f,abs(H));
|
||||
grid;
|
||||
xlabel('Hertz');
|
||||
ylabel('Magnitude Response');
|
||||
subplot(2,1,2);
|
||||
plot(f,unwrap(angle(H))*180/pi);
|
||||
grid;
|
||||
xlabel('Hertz');
|
||||
ylabel('Phase (degrees)');
|
||||
figure(2);
|
||||
freqz(B,A,512,fs);
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% %
|
||||
% %
|
||||
% % SIGNAL WAVEFORM GENERATION
|
||||
% %
|
||||
% %
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
RadStep = 0.1963495408494;
|
||||
|
||||
N=input('Please enter signal length N =');
|
||||
halfSize=N-1;
|
||||
|
||||
Rad=[0:RadStep:(halfSize)*RadStep];
|
||||
|
||||
CFFTinBuf1=zeros(1,N);
|
||||
|
||||
Rx=sin(Rad)+cos(Rad*2.3567);
|
||||
Ix=0*(cos(Rad*8.345) + sin(Rad*5.789));
|
||||
|
||||
x=Rx+j*Ix;
|
||||
x_raw_sig=x/2;
|
||||
|
||||
x_Q31=2^31*x/2;
|
||||
|
||||
filter_out_Q31=filter(B,A,x_Q31);
|
||||
|
||||
d=zeros(nbiq,3);
|
||||
taps=3;
|
||||
|
||||
for k=1:length(x_Q31)
|
||||
|
||||
accum=floor(x_Q31(k)*isf/2^32);
|
||||
|
||||
for j=1:nbiq
|
||||
|
||||
b_temp=isos(j,1:3);
|
||||
a_temp=isos(j,4:6);
|
||||
|
||||
for ii=2:taps
|
||||
accum=accum-ceil(a_temp(ii)*d(j,ii)/2^32);
|
||||
end
|
||||
|
||||
d(j,1)=floor(accum*2^(32-qformat));
|
||||
|
||||
accum1=0;
|
||||
|
||||
for ii=1:taps
|
||||
accum1=accum1+floor(b_temp(ii)*d(j,ii)/2^32);
|
||||
end
|
||||
|
||||
for ii=(taps-2+1):-1:1
|
||||
d(j,ii+1)=d(j,ii);
|
||||
end
|
||||
|
||||
accum=floor(accum1);
|
||||
|
||||
end
|
||||
|
||||
x_no_scale_biq_fixed(k)=(accum1)*2^(32-qformat); % direct I form high order implementation output
|
||||
|
||||
end
|
||||
|
||||
figure(4)
|
||||
plot(filter_out_Q31)
|
||||
peak1=max(filter_out_Q31);
|
||||
hold on
|
||||
peak2=max(x_no_scale_biq_fixed);
|
||||
plot(x_no_scale_biq_fixed,'r')
|
||||
|
||||
x_output_final=floor(x_no_scale_biq_fixed/2);
|
||||
|
||||
|
||||
|
||||
+178
@@ -0,0 +1,178 @@
|
||||
//#############################################################################
|
||||
//! \file $FOLDER_EXAMPLES$/$DEVICE$_FixedPoint_IIR32/iir32d.c
|
||||
//!
|
||||
//! \brief 32-bit IIR Filter Example
|
||||
//!
|
||||
//! \date Aug 12, 2014
|
||||
//!
|
||||
//! This examples shows how to implement a 32-bit IIR filter using the optimized
|
||||
//! IIR library routines. The IIR structure is as follows:
|
||||
//!
|
||||
//! typedef struct {
|
||||
//! void (*init)(void *);
|
||||
//! void (*calc)(void *);
|
||||
//! long *coeff_ptr;
|
||||
//! long *dbuffer_ptr;
|
||||
//! long nbiq;
|
||||
//! long input;
|
||||
//! long isf;
|
||||
//! long output32;
|
||||
//! int output16;
|
||||
//! int qfmat;
|
||||
//! }IIR5BIQ32;
|
||||
//!
|
||||
//! Users can also use default templates defined within filter.h to initialize
|
||||
//! the IIR32 header structure.
|
||||
//!
|
||||
//! IIR32 iir= IIR32_DEFAULTS;
|
||||
//!
|
||||
//! The MATLAB Filter Design and Analysis Tool (FDATool) is a useful tool
|
||||
//! for designing filters and generating fixed point coefficients. Refer
|
||||
//! to the appendix of the Fixed Point DSP Libray User's Guide for more
|
||||
//! information.
|
||||
//! The eziir32.m MATLAB script ($FOLDER_EXAMPLES$/$DEVICE$_FixedPoint_IIR32/matlab/
|
||||
//! eziir32.m) can be used to generate the filter coefficients in a way as to prevent
|
||||
//! overflow of the output. Please refer to SPRA509 (Overflow Avoidance Techniques in
|
||||
//! Cascaded IIR Filter Implementations on the TMS320 DSP's) for a better understanding
|
||||
//! of what the process is. The script will generate a Q-format and Input Scaling Factor
|
||||
//! for the coefficients, QFMAT and ISF respectively, that will be used in the IIR5BIQ32
|
||||
//! object initialization.
|
||||
//!
|
||||
//! \b Watch \b Variables
|
||||
//! - iir IIR32 object
|
||||
//!
|
||||
//! In CCS, you can invoke the "SetupDebugEnv.js" script from the
|
||||
//! Scripting console to have these variables set up in the Watch window
|
||||
//! and create graphs to show the input/output vectors
|
||||
//
|
||||
// Group: C2000
|
||||
// Target Family: C28x
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright: Copyright (C) 2014-2024 Texas Instruments Incorporated -
|
||||
// http://www.ti.com/ ALL RIGHTS RESERVED $
|
||||
//#############################################################################
|
||||
|
||||
//*****************************************************************************
|
||||
// includes
|
||||
//*****************************************************************************
|
||||
#include "examples_setup.h"
|
||||
#include <filter.h>
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
// Filter Symbolic Constants
|
||||
#define SIGNAL_LENGTH 100
|
||||
|
||||
//*****************************************************************************
|
||||
// globals
|
||||
//*****************************************************************************
|
||||
// Create an Instance of IIR5BIQD32 module and place the object in
|
||||
// "iirfilt" section
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(iir, "iirfilt");
|
||||
#else
|
||||
#pragma DATA_SECTION("iirfilt");
|
||||
#endif
|
||||
IIR5BIQ32 iir = IIR5BIQ32_DEFAULTS;
|
||||
|
||||
// Modify the delay buffer size to be commensurate with the number of biquads
|
||||
// in the filter. Size of the Delay buffer = 2*nbiq i.e. two delay elements
|
||||
// per biquad, each element being 32-bits wide.
|
||||
// Define the Delay buffer for the cascaded 6 biquad IIR filter and place it
|
||||
// in "iirfilt" section
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(dbuffer, "iirldb");
|
||||
#else
|
||||
#pragma DATA_SECTION("iirldb");
|
||||
#endif
|
||||
int32_t dbuffer[2*IIR32_LPF_NBIQ];
|
||||
|
||||
// Input/output buffer
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(sigIn, "sigIn");
|
||||
#else
|
||||
#pragma DATA_SECTION("sigIn");
|
||||
#endif
|
||||
int32_t sigIn[SIGNAL_LENGTH];
|
||||
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(sigOut, "sigOut");
|
||||
#else
|
||||
#pragma DATA_SECTION("sigOut");
|
||||
#endif
|
||||
int32_t sigOut[SIGNAL_LENGTH];
|
||||
|
||||
// For each biquad there are 6 coefficients: a0, a1, a2, b0, b0, b2.
|
||||
// a0 is always 1, therefore, we need 5 coefficients for each biquad
|
||||
// xn------>(x)--->(+)--------------->yn
|
||||
// | ^ ^ |
|
||||
// | | |q4 |
|
||||
// | b(0) (z) |
|
||||
// | ^ |
|
||||
// | |q3 |
|
||||
// |-->(x)--->(+)<-----(x)---|
|
||||
// | ^ ^ ^ |
|
||||
// | | |q2 | |
|
||||
// | b(1) (z) a(1) |
|
||||
// | ^ |
|
||||
// | |q1 |
|
||||
// --->(x)--->(+)<-----(x)----
|
||||
// ^ ^
|
||||
// | |
|
||||
// b(2) a(2)
|
||||
// Size of the coefficient array = 5 * nbiq
|
||||
const int32_t coeff[5*IIR32_LPF_NBIQ] = IIR32_LPF_COEFF;
|
||||
|
||||
// Start of main()
|
||||
int main(void)
|
||||
{
|
||||
// Locals
|
||||
int32_t xn = 0, yn = 0;
|
||||
float RadStep = 0.1963495408494f;
|
||||
float Rad = 0.0f;
|
||||
uint32_t i = 0;
|
||||
|
||||
#ifdef _FLASH
|
||||
FIXPT_DSP_initFlash();
|
||||
#endif //_FLASH
|
||||
FIXPT_DSP_initSystemClocks();
|
||||
FIXPT_DSP_initEpie();
|
||||
|
||||
for(i=0; i < SIGNAL_LENGTH; i++){
|
||||
sigIn[i] =0;
|
||||
sigOut[i] =0;
|
||||
}
|
||||
|
||||
// IIR Filter Initialization
|
||||
iir.dbuffer_ptr = dbuffer;
|
||||
iir.coeff_ptr = (long *)coeff;
|
||||
iir.qfmat = IIR32_LPF_QFMAT;
|
||||
iir.nbiq = IIR32_LPF_NBIQ;
|
||||
iir.isf = IIR32_LPF_ISF;
|
||||
iir.init(&iir);
|
||||
|
||||
for(i=0; i < SIGNAL_LENGTH; i++){
|
||||
xn = (long)(2147483648*(sin(Rad) + cos(Rad*2.3567))/2); //Q31
|
||||
sigIn[i] = xn;
|
||||
iir.input = xn;
|
||||
iir.calc(&iir);
|
||||
yn = iir.output32;
|
||||
sigOut[i] = yn;
|
||||
Rad = Rad + RadStep;
|
||||
}
|
||||
|
||||
//asm(" ESTOP0");
|
||||
for(;;);
|
||||
|
||||
// code should never reach this pointer
|
||||
return 1;
|
||||
|
||||
} /* End: main() */
|
||||
|
||||
|
||||
//###########################################################################
|
||||
// End of File
|
||||
//###########################################################################
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?ccsproject version="1.0"?>
|
||||
<projectOptions>
|
||||
<deviceFamily value="C2000"/>
|
||||
<isTargetManual value="false"/>
|
||||
</projectOptions>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?eclipse-cdt version="2.0"?>
|
||||
|
||||
<cdtproject id="org.eclipse.cdt.managedbuilder.core.managedMake">
|
||||
<extension id="org.eclipse.cdt.managedbuilder.core.ManagedBuildManager" point="org.eclipse.cdt.core.ScannerInfoProvider"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<data>
|
||||
<item id="org.eclipse.cdt.core.pathentry">
|
||||
<pathentry kind="src" path=""/>
|
||||
<pathentry kind="out" path=""/>
|
||||
<pathentry kind="con" path="org.eclipse.cdt.managedbuilder.MANAGED_CONTAINER"/>
|
||||
<pathentry kind="con" path="com.ti.ccstudio.managedbuild.core.CCS_CONTAINER"/>
|
||||
</item>
|
||||
</data>
|
||||
</cdtproject>
|
||||
@@ -0,0 +1,191 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?>
|
||||
|
||||
<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1092231082">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1092231082" moduleId="org.eclipse.cdt.core.settings" name="RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_TO_FIXEDPTLIB" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/>
|
||||
<stringMacro name="INSTALLROOT_2833X" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../../../device_support/f2833x"/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="2833x_FixedPoint_RFFT" buildProperties="" description="RAM build configuration" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1092231082" name="RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1092231082.2113551069" name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain.1848535231" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.67285526">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1610329628" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS320C28XX.TMS320F28335"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=28335_RAM_lnk.cmd"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts2800_ml.lib"/>
|
||||
<listOptionValue builtIn="false" value="IS_ELF=false"/>
|
||||
<listOptionValue builtIn="false" value="PROJECT_KIND=com.ti.ccstudio.managedbuild.core.ProjectKind_Executable"/>
|
||||
<listOptionValue builtIn="false" value="IS_ASSEMBLY_ONLY=false"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1796586437" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="6.2.5" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug.2129718936" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug.864257065" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug.937970631" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL.1679285475" name="Use large memory model (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY.1611944009" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.1007205676" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT.1680874297" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.1853005990" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH.1887112414" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/common/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/examples/common""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING.904243987" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE.478983915" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="RAM"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS.128634917" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS.852484321" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS.2092533045" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS.188128853" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.67285526" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE.1460828670" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE" value="0x300" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE.358631398" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE" value=""2833x_FixedPoint_RFFT.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE.1057832174" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE" value=""2833x_FixedPoint_RFFT.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles.830940159" name="[Deprecated] Generated Linker Command files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""$(GEN_CMDS_QUOTED)""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY.806149307" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value="c28x_fixedpoint_dsp_library.lib"/>
|
||||
<listOptionValue builtIn="false" value=""rts2800_ml.lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH.588508375" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO.1311663183" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO" value=""2833x_FixedPoint_RFFT_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE.700837057" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE" value="RAM" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS.265045379" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS.463691752" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS.1446913071" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1092231082.2072106531">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1092231082.2072106531" moduleId="org.eclipse.cdt.core.settings" name="_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_TO_FIXEDPTLIB" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/>
|
||||
<stringMacro name="INSTALLROOT_2833X" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../../../device_support/f2833x"/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="2833x_FixedPoint_RFFT" buildProperties="" description="_FLASH build configuration" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1092231082.2072106531" name="_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.1092231082.2072106531." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain.1918474660" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.67285526">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.1908790308" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS320C28XX.TMS320F28335"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=28335_RAM_lnk.cmd"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts2800_ml.lib"/>
|
||||
<listOptionValue builtIn="false" value="IS_ELF=false"/>
|
||||
<listOptionValue builtIn="false" value="PROJECT_KIND=com.ti.ccstudio.managedbuild.core.ProjectKind_Executable"/>
|
||||
<listOptionValue builtIn="false" value="IS_ASSEMBLY_ONLY=false"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.318474348" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="6.2.5" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug.445531728" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug.137956551" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug.2136879261" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL.17752969" name="Use large memory model (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY.133662347" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.1195086162" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT.425326349" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.1126310849" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH.995588988" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/common/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/examples/common""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING.144596976" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE.634624637" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS.1525973081" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS.1812532645" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS.1125862011" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS.581187501" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.907581434" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE.513025730" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE" value="0x300" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE.725242994" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE" value=""2833x_FixedPoint_RFFT.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE.1321013906" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE" value=""2833x_FixedPoint_RFFT.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles.1515535862" name="[Deprecated] Generated Linker Command files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""$(GEN_CMDS_QUOTED)""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY.2077113270" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value="c28x_fixedpoint_dsp_library.lib"/>
|
||||
<listOptionValue builtIn="false" value=""rts2800_ml.lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH.1725198784" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO.172802952" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO" value=""2833x_FixedPoint_RFFT_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE.2116884587" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE" value="_FLASH" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS.1926515473" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS.2013795656" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS.1016488995" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="2833x_FixedPoint_RFFT.com.ti.ccstudio.buildDefinitions.C2000.ProjectType.2119992195" name="C2000" projectType="com.ti.ccstudio.buildDefinitions.C2000.ProjectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
||||
<project-mappings>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
</project-mappings>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration"/>
|
||||
</cproject>
|
||||
@@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>2833x_FixedPoint_RFFT</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>DSP2833x_ADC_cal.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_ADC_cal.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_Adc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_Adc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_CodeStartBranch.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_CodeStartBranch.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_CpuTimers.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_CpuTimers.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_DBGIER.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_DBGIER.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_DefaultIsr.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_DefaultIsr.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_GlobalVariableDefs.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/headers/source/DSP2833x_GlobalVariableDefs.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_Headers_nonBIOS.cmd</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/headers/cmd/DSP2833x_Headers_nonBIOS.cmd</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_PieCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_PieCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_PieVect.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_PieVect.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_SysCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_SysCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_usDelay.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_usDelay.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F28335_FIXPT_FFT_lnk.cmd</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_TO_FIXEDPTLIB/cmd/F28335_FIXPT_FFT_lnk.cmd</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>examples_setup.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_TO_FIXEDPTLIB/examples/common/examples_setup.c</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>INSTALLROOT_2833X</name>
|
||||
<value>$%7BPARENT-6-PROJECT_LOC%7D/device_support/f2833x</value>
|
||||
</variable>
|
||||
<variable>
|
||||
<name>INSTALLROOT_TO_FIXEDPTLIB</name>
|
||||
<value>$%7BPARENT-2-PROJECT_LOC%7D</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
BIN
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
//Add watch window variables
|
||||
expRemoveAll()
|
||||
expAdd("ipcbsrc", getNatural())
|
||||
expAdd("ipcb", getNatural())
|
||||
expAdd("rfft", getNatural())
|
||||
|
||||
openAnalysisView('Dual Time','C:/Users/a0272561/Repositories/cs30_controlsuite/libs/dsp/FixedPointLib/version/examples/2833x_FixedPoint_RFFT/RFFT_IN_OUT.graphProp')
|
||||
+373
@@ -0,0 +1,373 @@
|
||||
% // TI File $Revision: /main/3 $
|
||||
% // Checkin $Date: November 1, 2010 13:05:07 $
|
||||
% // =====================================================================================
|
||||
% // This software is licensed for use with Texas Instruments C28x
|
||||
% // family DSCs. This license was provided to you prior to installing
|
||||
% // the software. You may review this license by consulting a copy of
|
||||
% // the agreement in the doc directory of this library.
|
||||
% //======================================================================================
|
||||
% //
|
||||
% // FILE: FixedRFFTnoWin.m
|
||||
% //
|
||||
% // TITLE: DSP2833x Device Fixed Point Real FFT Test Program.
|
||||
% //
|
||||
% //
|
||||
% // ASSUMPTIONS:
|
||||
% //
|
||||
% // This matlab code is reference code for debugging FixedPoint DSP library
|
||||
% // module RFFT32 and example project 2833x_FixedPoint_RFFT.
|
||||
% //
|
||||
% //
|
||||
% //
|
||||
% // Watch Variables:
|
||||
% //
|
||||
% // x_raw_sig Input signal (float)
|
||||
% // Rx,Ix Bit-revesed real and imaginary part of signal
|
||||
% // (Q31)
|
||||
% // x_out_2nd 2nd Stage complex CFFT result
|
||||
% // X Stage 3 and up result (Q31)
|
||||
% // Magnitude_Fixed Spectrum magnitude (Q31)
|
||||
% // fft_float Normalized floating fft result represented as (Q30)
|
||||
% //
|
||||
% //######################################################################################
|
||||
% //
|
||||
% //
|
||||
% //
|
||||
%// C2000Ware v5.04.00.00
|
||||
%//Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
|
||||
%//
|
||||
%// Redistribution and use in source and binary forms, with or without
|
||||
%// modification, are permitted provided that the following conditions
|
||||
%// are met:
|
||||
%//
|
||||
%// Redistributions of source code must retain the above copyright
|
||||
%// notice, this list of conditions and the following disclaimer.
|
||||
%//
|
||||
%// Redistributions in binary form must reproduce the above copyright
|
||||
%// notice, this list of conditions and the following disclaimer in the
|
||||
%// documentation and/or other materials provided with the
|
||||
%// distribution.
|
||||
%//
|
||||
%// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
%// its contributors may be used to endorse or promote products derived
|
||||
%// from this software without specific prior written permission.
|
||||
%//
|
||||
%// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
%// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
%// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
%// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
%// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
%// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
%// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
%// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
%// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
%// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
%// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
%//$
|
||||
% //######################################################################################
|
||||
|
||||
clear all
|
||||
close all
|
||||
|
||||
disp('==============================================================');
|
||||
disp('input signal is stored as Q31 format');
|
||||
disp('result is the same as matlab function fft(x)/N as Q31 format');
|
||||
disp('==============================================================');
|
||||
disp('this is Matlab version of C28x Fixed Point RFFT code');
|
||||
disp('The result is stored in array X');
|
||||
disp('The signal is stored in array x_raw_sig');
|
||||
disp('fft_float stored the fft(x_raw_sig)/N in Q31 format');
|
||||
disp('Magnitude_Fixed in Q30 format');
|
||||
disp('==============================================================');
|
||||
|
||||
RadStep = 0.1963495408494;
|
||||
|
||||
stages=input('Please enter stages (>=3) =');
|
||||
N=2^stages;
|
||||
halfSize=N-1;
|
||||
|
||||
Rad=[0:RadStep:(halfSize)*RadStep];
|
||||
|
||||
even_idx=0:halfSize;
|
||||
odd_idx=even_idx+1;
|
||||
|
||||
CFFTinBuf1=zeros(1,N);
|
||||
|
||||
Rx=sin(Rad)+cos(Rad*2.3567);
|
||||
Ix=0*(cos(Rad*8.345) + sin(Rad*5.789));
|
||||
|
||||
x=Rx+j*Ix;
|
||||
x_raw_sig=x/2;
|
||||
|
||||
x_win=Rx.*hamming(N)';
|
||||
|
||||
fft_float=2^31*fft(x/2)/N;
|
||||
|
||||
%bit reverse algorithm
|
||||
for i=1:N
|
||||
dr(i) = bin2dec(fliplr(dec2bin(i-1,stages)))+1;
|
||||
end
|
||||
|
||||
dr_1=dr-1;
|
||||
Rx=2^31*x(dr)/2;
|
||||
Ix=2^31*Ix(dr)/2;
|
||||
|
||||
%stage 1 and 2
|
||||
for i=1:N/4
|
||||
idx=(i-1)*4+1;
|
||||
D0=Rx(idx+0);
|
||||
D1=Ix(idx+0);
|
||||
D2=Rx(idx+1);
|
||||
D3=Ix(idx+1);
|
||||
D4=Rx(idx+2);
|
||||
D5=Ix(idx+2);
|
||||
D6=Rx(idx+3);
|
||||
D7=Ix(idx+3);
|
||||
D0prime=((D0 + D2)+(D4 + D6))/4;
|
||||
D1prime=((D1 + D3)+(D5 + D7))/4;
|
||||
D2prime=((D0 - D2)+(D5 - D7))/4;
|
||||
D3prime=((D1 - D3)-(D4 - D6))/4;
|
||||
D4prime=((D0 + D2)-(D4 + D6))/4;
|
||||
D5prime=((D1 + D3)-(D5 + D7))/4;
|
||||
D6prime=((D0 - D2)-(D5 - D7))/4;
|
||||
D7prime=((D1 - D3)+(D4 - D6))/4;
|
||||
|
||||
x_out_2nd(idx+0)=D0prime+j*D1prime;
|
||||
x_out_2nd(idx+1)=D2prime+j*D3prime;
|
||||
x_out_2nd(idx+2)=D4prime+j*D5prime;
|
||||
x_out_2nd(idx+3)=D6prime+j*D7prime;
|
||||
|
||||
end
|
||||
|
||||
x_out=x_out_2nd;
|
||||
|
||||
x_out=[x_out,zeros(1,N*2)];
|
||||
|
||||
table_idx=0:N-1;
|
||||
cos_table=cos(2*pi*table_idx/N);
|
||||
sin_table=sin(2*pi*table_idx/N);
|
||||
coef_table=[sin_table(1:N/4),cos_table(1:N/2)];
|
||||
|
||||
CurrentInPtr=1;
|
||||
CurrentOutPtr=1;
|
||||
AR2=CurrentInPtr;
|
||||
AR3=CurrentInPtr;
|
||||
AR6=CurrentOutPtr;
|
||||
AR7=CurrentOutPtr;
|
||||
|
||||
%stage 3 and up
|
||||
%num_of_loop=stages-2;
|
||||
StagesCounter=stages-2;
|
||||
OuterCounter=N/8;
|
||||
CoefPtrInc=N/8;
|
||||
CoefPtr=0;
|
||||
CurrentSinPtr=CoefPtr;
|
||||
CurrentCosPtr=CoefPtr+N/4;
|
||||
InnerCounter=3;
|
||||
DataPtrInc=4;
|
||||
|
||||
AR5=CurrentSinPtr+1;
|
||||
AR4=CurrentCosPtr+1;
|
||||
|
||||
for k=1:StagesCounter
|
||||
|
||||
AR0=DataPtrInc;
|
||||
AR3=AR3+AR0;
|
||||
AR7=AR7+AR0;
|
||||
|
||||
AR0=CoefPtrInc;
|
||||
D2_1=real(x_out(AR3));%R1H=D2_1
|
||||
R1H=D2_1;
|
||||
|
||||
for m=1:OuterCounter
|
||||
|
||||
Cos_1=coef_table(AR4);
|
||||
R2H=Cos_1;
|
||||
AR4=AR4+AR0;
|
||||
|
||||
%R7H=D2_1*Cos_1;
|
||||
R7H=R1H*R2H;
|
||||
|
||||
D3_1=imag(x_out(AR3)); %R0H=D3_1
|
||||
R0H=D3_1;
|
||||
AR3=AR3+1;
|
||||
|
||||
Sin_1=coef_table(AR5);
|
||||
R3H=Sin_1;
|
||||
AR5=AR5+AR0;
|
||||
|
||||
%R6H=D3_1*Sin_1;
|
||||
R6H=R0H*R3H;
|
||||
%R5H=D2_1*Sin_1;
|
||||
R5H=R1H*R3H;
|
||||
|
||||
for i=1:InnerCounter
|
||||
|
||||
%R7H = (D2_1*Cos_1 + D3_1*Sin_1); %R7H=R7H+R6H
|
||||
R7H=R7H+R6H;
|
||||
|
||||
D2_2=real(x_out(AR3));%R1H=D2_2
|
||||
R1H=D2_2;
|
||||
|
||||
%R6H = D3_1*Cos_1;
|
||||
R6H=R0H*R2H;
|
||||
|
||||
D0_1=real(x_out(AR2));%R3H=D0_1
|
||||
R3H=D0_1;
|
||||
|
||||
%R4H=D0_1 + (D2_1*Cos_1 + D3_1*Sin_1);%R4H=R3H+R7H;
|
||||
R4H=R3H+R7H;
|
||||
|
||||
Cos_2=coef_table(AR4);
|
||||
R2H=Cos_2;
|
||||
AR4=AR4+AR0;
|
||||
|
||||
%R6H = (D3_1*Cos_1 - D2_1*Sin_1);%R6H=R6H-R5H;
|
||||
R6H=R6H-R5H;
|
||||
|
||||
D3_2=imag(x_out(AR3));%R0H
|
||||
R0H=D3_2;
|
||||
AR3=AR3+1;
|
||||
|
||||
D0_1prime=R4H;
|
||||
AR6;
|
||||
%X(AR6)=D0_1prime;
|
||||
|
||||
%R4H = D0_1 - (D2_1*Cos_1 + D3_1*Sin_1);%R4H=R3H-R7H;
|
||||
R4H=R3H-R7H;
|
||||
|
||||
D2_1prime=R4H;
|
||||
%X(AR7)=D2_1prime;
|
||||
|
||||
R7H = D2_2*Cos_2;
|
||||
|
||||
D1_1=imag(x_out(AR2));%R3H=D1_1
|
||||
R3H=D1_1;
|
||||
AR2=AR2+1;
|
||||
|
||||
%R4H = D1_1 + (D3_1*Cos_1 - D2_1*Sin_1);%R4H=R3H+R6H
|
||||
R4H=R3H+R6H;
|
||||
|
||||
%R5H = D1_1 - (D3_1*Cos_1 - D2_1*Sin_1);%R5H=R3H-R6H
|
||||
R5H=R3H-R6H;
|
||||
D2_1=real(x_out(AR3));
|
||||
R1H=D2_1;
|
||||
|
||||
Sin_2=coef_table(AR5);
|
||||
R3H=Sin_2;
|
||||
AR5=AR5+AR0;
|
||||
|
||||
%R6H = D3_2*Sin_2;%R6H=R0H*R3H
|
||||
R6H=R0H*R3H;
|
||||
|
||||
D1_1prime=R4H;
|
||||
X(AR6)=D0_1prime+j*D1_1prime;
|
||||
AR6=AR6+1;
|
||||
|
||||
D3_1prime=R5H;
|
||||
X(AR7)=D2_1prime+j*D3_1prime;
|
||||
AR7=AR7+1;
|
||||
|
||||
R5H = D2_2*Sin_2;
|
||||
|
||||
end
|
||||
|
||||
AR0=DataPtrInc;
|
||||
AR4=CurrentCosPtr+1;
|
||||
AR5=CurrentSinPtr+1;
|
||||
|
||||
%R7H = (D2_2*COS_2 + D3_2*SIN_2)
|
||||
R7H=R7H+R6H;
|
||||
|
||||
R6H=real(x_out(AR3));
|
||||
AR3=AR3-1;
|
||||
|
||||
% R6H = D3_2*COS_2
|
||||
R6H=R0H*R2H;
|
||||
|
||||
D0_2=real(x_out(AR2));
|
||||
R3H=D0_2;
|
||||
|
||||
%R4H = D0_2 + (D2_2*COS_2 + D3_2*SIN_2)
|
||||
R4H=R3H+R7H;
|
||||
|
||||
D0_2prime=R4H;
|
||||
%X(AR6)=D0_2prime
|
||||
|
||||
% R6H = (D3_2*COS_2 - D2_2*SIN_2)
|
||||
R6H=R6H-R5H;
|
||||
|
||||
R5H=imag(x_out(AR3));
|
||||
AR3 = AR3 + DataPtrInc+1;
|
||||
|
||||
% R4H = D0_2 - (D2_2*COS_2 + D3_2*SIN_2)
|
||||
R4H=R3H-R7H;
|
||||
D2_2prime=R4H;
|
||||
%X(AR7)=D2_2prime;
|
||||
|
||||
|
||||
D1_2=imag(x_out(AR2));
|
||||
R3H=D1_2;
|
||||
AR2=AR2+DataPtrInc+1;
|
||||
|
||||
% R4H = D1_2 + (D3_2*COS_2 - D2_2*SIN_2)
|
||||
R4H=R3H+R6H;
|
||||
|
||||
% R5H = D1_2 - (D3_2*COS_2 - D2_2*SIN_2)
|
||||
R5H=R3H-R6H;
|
||||
|
||||
AR3;
|
||||
D2_1=real(x_out(AR3));
|
||||
R1H=D2_1;
|
||||
%AR3=AR3+1;
|
||||
|
||||
D1_2prime=R4H;
|
||||
X(AR6)=D0_2prime+j*D1_2prime;
|
||||
AR6=AR6+DataPtrInc+1;
|
||||
|
||||
D3_2prime=R5H;
|
||||
X(AR7)=D2_2prime+j*D3_2prime;
|
||||
AR7=AR7+DataPtrInc+1;
|
||||
|
||||
AR0=CoefPtrInc;
|
||||
end
|
||||
X=X/2;
|
||||
x_out(1:length(X))=X;
|
||||
|
||||
DataPtrInc=DataPtrInc*2;
|
||||
CoefPtrInc=CoefPtrInc/2;
|
||||
|
||||
AR7=CurrentInPtr;
|
||||
AR3=CurrentOutPtr;
|
||||
AR6=CurrentInPtr;
|
||||
AR2=CurrentOutPtr;
|
||||
|
||||
InnerCounter=InnerCounter*2+1;
|
||||
|
||||
OuterCounter=OuterCounter/2;
|
||||
end
|
||||
|
||||
Magnitude=abs(X);
|
||||
Phase=angle(X);
|
||||
|
||||
Magnitude_Fixed=(abs(X)/2^16).^2;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,134 @@
|
||||
//#############################################################################
|
||||
//! \file $FOLDER_EXAMPLES$/$DEVICE$_Test_FixedPoint_RFFT/rfft.c
|
||||
//!
|
||||
//! \brief Real FFT (32-bit)
|
||||
//!
|
||||
//! \date Sep 15, 2014
|
||||
//!
|
||||
//! This example shows how to use the RFFT routines of the library including bit
|
||||
//! reversal, FFT initialization, calculation and the magnitude calculation.
|
||||
//! The RFFT module structure is as follows:
|
||||
//!
|
||||
//! typedef struct {
|
||||
//! long *ipcbptr;
|
||||
//! long *tfptr;
|
||||
//! int size;
|
||||
//! int nrstage;
|
||||
//! long *magptr;
|
||||
//! long *winptr;
|
||||
//! long peakmag;
|
||||
//! int peakfrq;
|
||||
//! int ratio;
|
||||
//! void (*init)(void *);
|
||||
//! void (*calc)(void *);
|
||||
//! void (*mag)(void *);
|
||||
//! void (*win)(void *);
|
||||
//! }RFFT32;
|
||||
//!
|
||||
//! \b Watch \b Variables
|
||||
//! - ipcbsrc Data input buffer. After the FFT calculation it becomes the
|
||||
//! Magnitude output buffer (Both are in Q31 format)
|
||||
//! - ipcb Data output buffer (Q31 format)
|
||||
//! - rfft CFFT32 object
|
||||
//!
|
||||
//! In CCS, you can invoke the "SetupDebugEnv.js" script from the
|
||||
//! Scripting console to have these variables set up in the Watch window
|
||||
//! and create graphs to show the input/output vectors
|
||||
//
|
||||
// Group: C2000
|
||||
// Target Family: C28x
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright: Copyright (C) 2014-2024 Texas Instruments Incorporated -
|
||||
// http://www.ti.com/ ALL RIGHTS RESERVED $
|
||||
//#############################################################################
|
||||
//*****************************************************************************
|
||||
// includes
|
||||
//*****************************************************************************
|
||||
#include "examples_setup.h"
|
||||
#include "fft.h"
|
||||
#include "fft_hamming_Q31.h"
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
#define FFT_SIZE 512
|
||||
|
||||
//*****************************************************************************
|
||||
// globals
|
||||
//*****************************************************************************
|
||||
// Create the FFT buffers, ipcb and ipcbsrc, in sections with the same name
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(ipcb, "FFTipcb");
|
||||
#else
|
||||
#pragma DATA_SECTION("FFTipcb");
|
||||
#endif
|
||||
int32_t ipcb[FFT_SIZE+2];
|
||||
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(ipcbsrc, "FFTipcbsrc");
|
||||
#else
|
||||
#pragma DATA_SECTION("FFTipcbsrc");
|
||||
#endif
|
||||
int32_t ipcbsrc[FFT_SIZE];
|
||||
|
||||
|
||||
// Declare and initialize the structure object.
|
||||
// Use the RFFT32_<n>P_DEFUALTS in the FFT header file if
|
||||
// unsure as to what values to program the object with.
|
||||
RFFT32 rfft = RFFT32_512P_DEFAULTS;
|
||||
|
||||
// Define window Co-efficient Array
|
||||
// Note: Windowing is not used in this example
|
||||
const long win[FFT_SIZE/2]=HAMMING512;
|
||||
|
||||
// Start of main()
|
||||
int main(void)
|
||||
{
|
||||
// Locals
|
||||
float RadStep = 0.1963495408494f;
|
||||
float Rad = 0.0f;
|
||||
uint32_t i = 0;
|
||||
|
||||
#ifdef _FLASH
|
||||
FIXPT_DSP_initFlash();
|
||||
#endif //_FLASH
|
||||
FIXPT_DSP_initSystemClocks();
|
||||
FIXPT_DSP_initEpie();
|
||||
|
||||
//Clean up input/output buffer
|
||||
for(i=0; i < (FFT_SIZE+2); i=i+2){
|
||||
ipcb[i] = 0;
|
||||
ipcb[i+1] = 0;
|
||||
}
|
||||
|
||||
//Simulated input signal
|
||||
for(i=0; i < FFT_SIZE; i++){
|
||||
ipcbsrc[i] = (long)(2147483648*(sin(Rad) + cos(Rad*2.3567))/2); //Q31
|
||||
Rad = Rad + RadStep;
|
||||
}
|
||||
|
||||
|
||||
RFFT32_brev(ipcbsrc, ipcb, FFT_SIZE); // real FFT bit reversing
|
||||
|
||||
rfft.ipcbptr = ipcb; // FFT computation buffer
|
||||
rfft.magptr = ipcbsrc; // Magnitude output buffer
|
||||
rfft.winptr = (long *)win; // Window coefficient array
|
||||
rfft.init(&rfft); // Twiddle factor pointer initialization
|
||||
|
||||
rfft.calc(&rfft); // Compute the FFT
|
||||
rfft.split(&rfft); // Post processing to get the correct spectrum
|
||||
rfft.mag(&rfft); // Q31 format (abs(ipcbsrc)/2^16).^2
|
||||
|
||||
//asm(" ESTOP0");
|
||||
for(;;);
|
||||
|
||||
// code should never reach this pointer
|
||||
return 1;
|
||||
|
||||
} // End: main()
|
||||
|
||||
//###########################################################################
|
||||
// End of File
|
||||
//###########################################################################
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?ccsproject version="1.0"?>
|
||||
<projectOptions>
|
||||
<deviceFamily value="C2000"/>
|
||||
<isTargetManual value="false"/>
|
||||
</projectOptions>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?eclipse-cdt version="2.0"?>
|
||||
|
||||
<cdtproject id="org.eclipse.cdt.managedbuilder.core.managedMake">
|
||||
<extension id="org.eclipse.cdt.managedbuilder.core.ManagedBuildManager" point="org.eclipse.cdt.core.ScannerInfoProvider"/>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<data>
|
||||
<item id="org.eclipse.cdt.core.pathentry">
|
||||
<pathentry kind="src" path=""/>
|
||||
<pathentry kind="out" path=""/>
|
||||
<pathentry kind="con" path="org.eclipse.cdt.managedbuilder.MANAGED_CONTAINER"/>
|
||||
<pathentry kind="con" path="com.ti.ccstudio.managedbuild.core.CCS_CONTAINER"/>
|
||||
</item>
|
||||
</data>
|
||||
</cdtproject>
|
||||
@@ -0,0 +1,191 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?>
|
||||
|
||||
<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule configRelations="2" moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.886220560">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.886220560" moduleId="org.eclipse.cdt.core.settings" name="RAM">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_TO_FIXEDPTLIB" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/>
|
||||
<stringMacro name="INSTALLROOT_2833X" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../../../device_support/f2833x"/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="2833x_FixedPoint_Win" buildProperties="" description="RAM Build Configuration" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.886220560" name="RAM" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.886220560.771380959" name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain.436597157" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.1004597806">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.617087003" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS320C28XX.TMS320F28335"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=28335_RAM_lnk.cmd"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts2800_ml.lib"/>
|
||||
<listOptionValue builtIn="false" value="IS_ELF=false"/>
|
||||
<listOptionValue builtIn="false" value="PROJECT_KIND=com.ti.ccstudio.managedbuild.core.ProjectKind_Executable"/>
|
||||
<listOptionValue builtIn="false" value="IS_ASSEMBLY_ONLY=false"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.74003103" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="6.2.5" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug.1288731381" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug.1307012892" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug.1272465390" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL.283740865" name="Use large memory model (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY.1213285856" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.1951532457" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT.103202836" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.473500986" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH.491630413" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/common/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/examples/common""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING.75233126" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE.1905297953" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="RAM"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS.590624960" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS.1434108234" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS.18419289" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS.279879513" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.1004597806" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE.2043631399" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE" value="0x300" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE.413504191" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE" value=""2833x_FixedPoint_Win.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE.50246875" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE" value=""2833x_FixedPoint_Win.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles.182666902" name="[Deprecated] Generated Linker Command files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""$(GEN_CMDS_QUOTED)""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY.761427753" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value="c28x_fixedpoint_dsp_library.lib"/>
|
||||
<listOptionValue builtIn="false" value=""rts2800_ml.lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH.462295084" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO.204232233" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO" value=""2833x_FixedPoint_Win_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE.2072198226" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE" value="_FLASH" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS.943739328" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS.1924516244" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS.1688751498" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.ti.ccstudio.buildDefinitions.C2000.Debug.886220560.1772201159">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.886220560.1772201159" moduleId="org.eclipse.cdt.core.settings" name="_FLASH">
|
||||
<macros>
|
||||
<stringMacro name="INSTALLROOT_TO_FIXEDPTLIB" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../.."/>
|
||||
<stringMacro name="INSTALLROOT_2833X" type="VALUE_PATH_DIR" value="${PROJECT_ROOT}/../../../../../../device_support/f2833x"/>
|
||||
</macros>
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="com.ti.ccstudio.binaryparser.CoffParser" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.CoffErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.LinkErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.ti.ccstudio.errorparser.AsmErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="out" artifactName="2833x_FixedPoint_Win" buildProperties="" description="_FLASH build configuration" id="com.ti.ccstudio.buildDefinitions.C2000.Debug.886220560.1772201159" name="_FLASH" parent="com.ti.ccstudio.buildDefinitions.C2000.Debug">
|
||||
<folderInfo id="com.ti.ccstudio.buildDefinitions.C2000.Debug.886220560.1772201159." name="/" resourcePath="">
|
||||
<toolChain id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain.1241022869" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.1004597806">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.698940254" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="DEVICE_CONFIGURATION_ID=TMS320C28XX.TMS320F28335"/>
|
||||
<listOptionValue builtIn="false" value="DEVICE_ENDIANNESS=little"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_FORMAT=COFF"/>
|
||||
<listOptionValue builtIn="false" value="CCS_MBS_VERSION=5.5.0"/>
|
||||
<listOptionValue builtIn="false" value="LINKER_COMMAND_FILE=28335_RAM_lnk.cmd"/>
|
||||
<listOptionValue builtIn="false" value="RUNTIME_SUPPORT_LIBRARY=rts2800_ml.lib"/>
|
||||
<listOptionValue builtIn="false" value="IS_ELF=false"/>
|
||||
<listOptionValue builtIn="false" value="PROJECT_KIND=com.ti.ccstudio.managedbuild.core.ProjectKind_Executable"/>
|
||||
<listOptionValue builtIn="false" value="IS_ASSEMBLY_ONLY=false"/>
|
||||
<listOptionValue builtIn="false" value="OUTPUT_TYPE=executable"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1218624164" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="6.2.5" valueType="string"/>
|
||||
<targetPlatform id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug.1829945706" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.targetPlatformDebug"/>
|
||||
<builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug.792096968" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.builderDebug"/>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug.918200733" name="C2000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.compilerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL.1181688715" name="Use large memory model (--large_memory_model, -ml)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.LARGE_MEMORY_MODEL" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY.1753613851" name="Unified memory (--unified_memory, -mt)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.UNIFIED_MEMORY" value="true" valueType="boolean"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.565703569" name="Processor version (--silicon_version, -v)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.SILICON_VERSION.28" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT.1195290549" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.FLOAT_SUPPORT._none" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.1047984481" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH.265877623" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.INCLUDE_PATH" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/headers/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_2833X}/common/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/examples/common""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING.1145353445" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DIAG_WARNING" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="225"/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE.1312198444" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compilerID.DEFINE" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="_FLASH"/>
|
||||
</option>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS.60088558" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__C_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS.2019598611" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__CPP_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS.1261077585" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS.1526363367" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.compiler.inputType__ASM2_SRCS"/>
|
||||
</tool>
|
||||
<tool id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug.935336566" name="C2000 Linker" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exe.linkerDebug">
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE.139002120" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.STACK_SIZE" value="0x300" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE.1072139310" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.OUTPUT_FILE" value=""2833x_FixedPoint_Win.out"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE.839200775" name="Input and output sections listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.MAP_FILE" value=""2833x_FixedPoint_Win.map"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles.1500588953" name="[Deprecated] Generated Linker Command files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.generatedLinkerCommandFiles" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""$(GEN_CMDS_QUOTED)""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY.331366222" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.LIBRARY" valueType="libs">
|
||||
<listOptionValue builtIn="false" value="c28x_fixedpoint_dsp_library.lib"/>
|
||||
<listOptionValue builtIn="false" value=""rts2800_ml.lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH.526430533" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.SEARCH_PATH" valueType="libPaths">
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/>
|
||||
<listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/>
|
||||
<listOptionValue builtIn="false" value=""${INSTALLROOT_TO_FIXEDPTLIB}/lib""/>
|
||||
</option>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO.433788099" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.XML_LINK_INFO" value=""2833x_FixedPoint_Win_linkInfo.xml"" valueType="string"/>
|
||||
<option id="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE.732780648" name="Pre-define preprocessor macro _name_ to _value_ (--define)" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.linkerID.DEFINE" value="_FLASH" valueType="string"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS.1210519031" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS.1394638562" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__CMD2_SRCS"/>
|
||||
<inputType id="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS.389235001" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C2000_6.2.exeLinker.inputType__GEN_CMDS"/>
|
||||
</tool>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="2833x_FixedPoint_Win.com.ti.ccstudio.buildDefinitions.C2000.ProjectType.120183226" name="C2000" projectType="com.ti.ccstudio.buildDefinitions.C2000.ProjectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.language.mapping">
|
||||
<project-mappings>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cHeader" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cSource" language="com.ti.ccstudio.core.TIGCCLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxHeader" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
<content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/>
|
||||
</project-mappings>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration"/>
|
||||
</cproject>
|
||||
@@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>2833x_FixedPoint_Win</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>com.ti.ccstudio.core.ccsNature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>DSP2833x_ADC_cal.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_ADC_cal.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_Adc.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_Adc.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_CodeStartBranch.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_CodeStartBranch.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_CpuTimers.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_CpuTimers.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_DBGIER.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_DBGIER.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_DefaultIsr.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_DefaultIsr.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_GlobalVariableDefs.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/headers/source/DSP2833x_GlobalVariableDefs.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_Headers_nonBIOS.cmd</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/headers/cmd/DSP2833x_Headers_nonBIOS.cmd</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_PieCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_PieCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_PieVect.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_PieVect.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_SysCtrl.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_SysCtrl.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>DSP2833x_usDelay.asm</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_2833X/common/source/DSP2833x_usDelay.asm</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>F28335_FIXPT_FFT_lnk.cmd</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_TO_FIXEDPTLIB/cmd/F28335_FIXPT_FFT_lnk.cmd</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>examples_setup.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>INSTALLROOT_TO_FIXEDPTLIB/examples/common/examples_setup.c</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>INSTALLROOT_2833X</name>
|
||||
<value>$%7BPARENT-6-PROJECT_LOC%7D/device_support/f2833x</value>
|
||||
</variable>
|
||||
<variable>
|
||||
<name>INSTALLROOT_TO_FIXEDPTLIB</name>
|
||||
<value>$%7BPARENT-2-PROJECT_LOC%7D</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
@@ -0,0 +1,8 @@
|
||||
//Add watch window variables
|
||||
expRemoveAll()
|
||||
expAdd("ipcbsrc", getNatural())
|
||||
expAdd("ipcb", getNatural())
|
||||
expAdd("rfft", getNatural())
|
||||
|
||||
openAnalysisView('Dual Time','C:/Users/a0272561/Repositories/cs30_controlsuite/libs/dsp/FixedPointLib/version/examples/2833x_FixedPoint_Win/WIN_IN_OUT.graphProp')
|
||||
openAnalysisView('Single Time','C:/Users/a0272561/Repositories/cs30_controlsuite/libs/dsp/FixedPointLib/version/examples/2833x_FixedPoint_Win/WIN_WINDOW.graphProp')
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
+125
@@ -0,0 +1,125 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% C2000 Fixed Point Window Generator
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%//! \brief Generate the sampling windows for the fixed point libraries
|
||||
%//!
|
||||
%//! \author Vishal Coelho
|
||||
%//!
|
||||
%//! \details This routine will generate the sampling windows to
|
||||
%//! be used in the C28x Fixed point library.
|
||||
%//!
|
||||
%//! The following windows are generated:
|
||||
%//! 1. barthannwin
|
||||
%//! 2. bartlett
|
||||
%//! 3. blackman
|
||||
%//! 4. blackmanharris
|
||||
%//! 5. bohmanwin
|
||||
%//! 6. chebwin
|
||||
%//! 7. flattopwin
|
||||
%//! 8. gausswin
|
||||
%//! 9. hamming
|
||||
%//! 10. hann
|
||||
%//! 11. kaiser
|
||||
%//! 12. nuttallwin
|
||||
%//! 13. parzenwin
|
||||
%//! 14. rectwin
|
||||
%//! 15. taylorwin
|
||||
%//! 16. triang
|
||||
%//! 17. tukeywin
|
||||
%//!
|
||||
%//! The size of the window equals the size of the FFT and can range
|
||||
%//! from 32 to 1024. The function iterates through the different windows,
|
||||
%//! creates them for N = 32 to 1024 and then writes to an appropriate
|
||||
%//! header file as #defines
|
||||
%//!
|
||||
%//! \param[in] Q_fmt Q-format for the window
|
||||
%//!
|
||||
function C28xFixedPointLib_Window_Generator(Q_fmt)
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Parse Arguments
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
if (Q_fmt < 0 || Q_fmt > 31)
|
||||
Q_fmt = 15; % Default Q format
|
||||
disp('Invalid Q format, defaulting to Q15\n');
|
||||
end
|
||||
Q = power(2,Q_fmt)-1; %multiply by (2^Q - 1) to get a Q number
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Routine
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
i = 5 : 12;
|
||||
N = 2.^i;
|
||||
|
||||
windows = ['barthannwin ';
|
||||
'bartlett ';
|
||||
'blackman ';
|
||||
'blackmanharris';
|
||||
'bohmanwin ';
|
||||
'chebwin ';
|
||||
'flattopwin ';
|
||||
'gausswin ';
|
||||
'hamming ';
|
||||
'hann ';
|
||||
'kaiser ';
|
||||
'nuttallwin ';
|
||||
'parzenwin ';
|
||||
'rectwin ';
|
||||
'taylorwin ';
|
||||
'triang ';
|
||||
'tukeywin '];
|
||||
|
||||
|
||||
for i = 1 : length(windows)
|
||||
|
||||
% Take the name of the window and split out the "win" part if it has
|
||||
% one to reveal the name of the window and then capitalize the first
|
||||
% letter of the name
|
||||
windowName = regexprep(windows(i,:), 'win', '');
|
||||
windowName = regexprep(windowName, '\s*', '');
|
||||
windowFilename = windowName;
|
||||
windowName(1) = upper(windowName(1));
|
||||
windowHandleName = regexprep(windows(i,:), '\s*', '');
|
||||
% Open a header file for the "window" and write the preamble
|
||||
filename = ['fft_', windowFilename,'_Q',num2str(Q_fmt),'.h'];
|
||||
FN_DEF = ['_',upper(strtok(filename,'.')),'_H_'];
|
||||
HEAD_string = ['//',repmat(sprintf('='), 1, 77),'\n'];
|
||||
fid = fopen(filename,'w');
|
||||
fprintf(fid,HEAD_string);
|
||||
fprintf(fid,['// ',windowName,' Window \n']);
|
||||
fprintf(fid,HEAD_string);
|
||||
fprintf(fid,['#ifndef ',FN_DEF,'\n']);
|
||||
fprintf(fid,['#define ',FN_DEF,'\n\n']);
|
||||
|
||||
% iterate through the different sizes i.e. N and generate the
|
||||
% #defines
|
||||
figure();
|
||||
for j = 1 : length(N)
|
||||
% Generate the ith window (with default options) of size N(j)
|
||||
W = window(windowHandleName, N(j));
|
||||
%plot each window
|
||||
subplot(length(N)/2, 2, j), plot(W);
|
||||
title([windowName,' Window, N = ', num2str(N(j))]);
|
||||
% Multiply by Q to convert to appropriate Q format and then
|
||||
% convert to integer
|
||||
W = int32(round(W.*Q));
|
||||
%Write this window to the file, we only write half the window,
|
||||
%since the windows are symmetric, the fft_win() uses this to
|
||||
% its advantage by walking across the array forwards and backwards
|
||||
fprintf(fid,['#define ',upper(windowName),num2str(N(j)),...
|
||||
' {\\\n']);
|
||||
W_str = sprintf('%14d, %14d, %14d, %14d, %14d, %14d, %14d, %14d, \\\\\n',...
|
||||
W(1:(N(j)/2)));
|
||||
fprintf(fid, W_str);
|
||||
fprintf(fid,'} \n\n');
|
||||
end
|
||||
|
||||
% Write out epilogue, close file
|
||||
fprintf(fid,['\n #endif // ',FN_DEF,'\n']);
|
||||
fprintf(fid,HEAD_string);
|
||||
fprintf(fid,'// End of File\n');
|
||||
fprintf(fid,HEAD_string);
|
||||
fclose(fid);
|
||||
end
|
||||
|
||||
%% End of File
|
||||
+354
@@ -0,0 +1,354 @@
|
||||
% // TI File $Revision: /main/3 $
|
||||
% // Checkin $Date: November 1, 2010 13:05:07 $
|
||||
% // =====================================================================================
|
||||
% // This software is licensed for use with Texas Instruments C28x
|
||||
% // family DSCs. This license was provided to you prior to installing
|
||||
% // the software. You may review this license by consulting a copy of
|
||||
% // the agreement in the doc directory of this library.
|
||||
% //======================================================================================
|
||||
% //
|
||||
% // FILE: FixedRFFTWin.m
|
||||
% //
|
||||
% // TITLE: DSP2833x Device Fixed Point Windowed Input Real FFT Test Program.
|
||||
% //
|
||||
% //
|
||||
% // ASSUMPTIONS:
|
||||
% //
|
||||
% // This matlab code is reference code for debugging FixedPoint DSP library
|
||||
% // function FFT32_win and example project 2833x_FixedPoint_Win.
|
||||
% //
|
||||
% //
|
||||
% //
|
||||
% // Watch Variables:
|
||||
% //
|
||||
% // x_raw_sig Input signal (float)
|
||||
% // Rx,Ix Bit-revesed real and imaginary part of signal
|
||||
% // (Q31)
|
||||
% // x_win/2 Windowed input signal with hamming 32 window
|
||||
% // x_out_2nd 2nd Stage FFT result
|
||||
% // X Stage 3 and up result (Q31)
|
||||
% // Magnitude_Fixed Spectrum magnitude (Q30)
|
||||
% // fft_float Normalized floating fft result represented as (Q31)
|
||||
% //
|
||||
% //######################################################################################
|
||||
% //
|
||||
% //
|
||||
% //
|
||||
%// C2000Ware v5.04.00.00
|
||||
%//Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com
|
||||
%//
|
||||
%// Redistribution and use in source and binary forms, with or without
|
||||
%// modification, are permitted provided that the following conditions
|
||||
%// are met:
|
||||
%//
|
||||
%// Redistributions of source code must retain the above copyright
|
||||
%// notice, this list of conditions and the following disclaimer.
|
||||
%//
|
||||
%// Redistributions in binary form must reproduce the above copyright
|
||||
%// notice, this list of conditions and the following disclaimer in the
|
||||
%// documentation and/or other materials provided with the
|
||||
%// distribution.
|
||||
%//
|
||||
%// Neither the name of Texas Instruments Incorporated nor the names of
|
||||
%// its contributors may be used to endorse or promote products derived
|
||||
%// from this software without specific prior written permission.
|
||||
%//
|
||||
%// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
%// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
%// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
%// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
%// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
%// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
%// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
%// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
%// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
%// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
%// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
%//$
|
||||
% //######################################################################################
|
||||
|
||||
clear all
|
||||
close all
|
||||
|
||||
disp('==============================================================');
|
||||
disp('input signal is stored as Q31 format');
|
||||
disp('result is the same as matlab function fft(x)/N as Q31 format');
|
||||
disp('==============================================================');
|
||||
disp('this is Matlab version of C28x Fixed PointCFFT code');
|
||||
disp('The result is stored in array X');
|
||||
disp('The signal is stored in array x_raw_sig');
|
||||
disp('fft_float stored the fft(x_raw_sig)/N in Q30 format');
|
||||
disp('Magnitude_Fixed in Q30 format');
|
||||
disp('==============================================================');
|
||||
|
||||
RadStep = 0.1963495408494;
|
||||
|
||||
stages=input('Please enter stages (>=3) =');
|
||||
N=2^stages;
|
||||
halfSize=N-1;
|
||||
|
||||
Rad=[0:RadStep:(halfSize)*RadStep];
|
||||
|
||||
even_idx=0:halfSize;
|
||||
odd_idx=even_idx+1;
|
||||
|
||||
CFFTinBuf1=zeros(1,N);
|
||||
|
||||
Rx=sin(Rad)+cos(Rad*2.3567);
|
||||
Ix=0*(cos(Rad*8.345) + sin(Rad*5.789));
|
||||
|
||||
x=Rx+j*Ix;
|
||||
x_raw_sig=x;
|
||||
|
||||
x_win=Rx.*hamming(N)';
|
||||
|
||||
fft_float=2^31*fft(x_win/2)/N;
|
||||
|
||||
%bit reverse algorithm
|
||||
for i=1:N
|
||||
dr(i) = bin2dec(fliplr(dec2bin(i-1,stages)))+1;
|
||||
end
|
||||
|
||||
dr_1=dr-1;
|
||||
Rx=2^31*x_win(dr)/2;
|
||||
Ix=2^31*Ix(dr)/2;
|
||||
|
||||
%stage 1 and 2
|
||||
for i=1:N/4
|
||||
idx=(i-1)*4+1;
|
||||
D0=Rx(idx+0);
|
||||
D1=Ix(idx+0);
|
||||
D2=Rx(idx+1);
|
||||
D3=Ix(idx+1);
|
||||
D4=Rx(idx+2);
|
||||
D5=Ix(idx+2);
|
||||
D6=Rx(idx+3);
|
||||
D7=Ix(idx+3);
|
||||
D0prime=((D0 + D2)+(D4 + D6))/4;
|
||||
D1prime=((D1 + D3)+(D5 + D7))/4;
|
||||
D2prime=((D0 - D2)+(D5 - D7))/4;
|
||||
D3prime=((D1 - D3)-(D4 - D6))/4;
|
||||
D4prime=((D0 + D2)-(D4 + D6))/4;
|
||||
D5prime=((D1 + D3)-(D5 + D7))/4;
|
||||
D6prime=((D0 - D2)-(D5 - D7))/4;
|
||||
D7prime=((D1 - D3)+(D4 - D6))/4;
|
||||
|
||||
x_out_2nd(idx+0)=D0prime+j*D1prime;
|
||||
x_out_2nd(idx+1)=D2prime+j*D3prime;
|
||||
x_out_2nd(idx+2)=D4prime+j*D5prime;
|
||||
x_out_2nd(idx+3)=D6prime+j*D7prime;
|
||||
|
||||
end
|
||||
|
||||
x_out=x_out_2nd;
|
||||
|
||||
x_out=[x_out,zeros(1,N*2)];
|
||||
|
||||
table_idx=0:N-1;
|
||||
cos_table=cos(2*pi*table_idx/N);
|
||||
sin_table=sin(2*pi*table_idx/N);
|
||||
coef_table=[sin_table(1:N/4),cos_table(1:N/2)];
|
||||
|
||||
CurrentInPtr=1;
|
||||
CurrentOutPtr=1;
|
||||
AR2=CurrentInPtr;
|
||||
AR3=CurrentInPtr;
|
||||
AR6=CurrentOutPtr;
|
||||
AR7=CurrentOutPtr;
|
||||
|
||||
%stage 3 and up
|
||||
%num_of_loop=stages-2;
|
||||
StagesCounter=stages-2;
|
||||
OuterCounter=N/8;
|
||||
CoefPtrInc=N/8;
|
||||
CoefPtr=0;
|
||||
CurrentSinPtr=CoefPtr;
|
||||
CurrentCosPtr=CoefPtr+N/4;
|
||||
InnerCounter=3;
|
||||
DataPtrInc=4;
|
||||
|
||||
AR5=CurrentSinPtr+1;
|
||||
AR4=CurrentCosPtr+1;
|
||||
|
||||
for k=1:StagesCounter
|
||||
|
||||
AR0=DataPtrInc;
|
||||
AR3=AR3+AR0;
|
||||
AR7=AR7+AR0;
|
||||
|
||||
AR0=CoefPtrInc;
|
||||
D2_1=real(x_out(AR3));%R1H=D2_1
|
||||
R1H=D2_1;
|
||||
|
||||
for m=1:OuterCounter
|
||||
|
||||
Cos_1=coef_table(AR4);
|
||||
R2H=Cos_1;
|
||||
AR4=AR4+AR0;
|
||||
|
||||
%R7H=D2_1*Cos_1;
|
||||
R7H=R1H*R2H;
|
||||
|
||||
D3_1=imag(x_out(AR3)); %R0H=D3_1
|
||||
R0H=D3_1;
|
||||
AR3=AR3+1;
|
||||
|
||||
Sin_1=coef_table(AR5);
|
||||
R3H=Sin_1;
|
||||
AR5=AR5+AR0;
|
||||
|
||||
%R6H=D3_1*Sin_1;
|
||||
R6H=R0H*R3H;
|
||||
%R5H=D2_1*Sin_1;
|
||||
R5H=R1H*R3H;
|
||||
|
||||
for i=1:InnerCounter
|
||||
|
||||
%R7H = (D2_1*Cos_1 + D3_1*Sin_1); %R7H=R7H+R6H
|
||||
R7H=R7H+R6H;
|
||||
|
||||
D2_2=real(x_out(AR3));%R1H=D2_2
|
||||
R1H=D2_2;
|
||||
|
||||
%R6H = D3_1*Cos_1;
|
||||
R6H=R0H*R2H;
|
||||
|
||||
D0_1=real(x_out(AR2));%R3H=D0_1
|
||||
R3H=D0_1;
|
||||
|
||||
%R4H=D0_1 + (D2_1*Cos_1 + D3_1*Sin_1);%R4H=R3H+R7H;
|
||||
R4H=R3H+R7H;
|
||||
|
||||
Cos_2=coef_table(AR4);
|
||||
R2H=Cos_2;
|
||||
AR4=AR4+AR0;
|
||||
|
||||
%R6H = (D3_1*Cos_1 - D2_1*Sin_1);%R6H=R6H-R5H;
|
||||
R6H=R6H-R5H;
|
||||
|
||||
D3_2=imag(x_out(AR3));%R0H
|
||||
R0H=D3_2;
|
||||
AR3=AR3+1;
|
||||
|
||||
D0_1prime=R4H;
|
||||
AR6;
|
||||
%X(AR6)=D0_1prime;
|
||||
|
||||
%R4H = D0_1 - (D2_1*Cos_1 + D3_1*Sin_1);%R4H=R3H-R7H;
|
||||
R4H=R3H-R7H;
|
||||
|
||||
D2_1prime=R4H;
|
||||
%X(AR7)=D2_1prime;
|
||||
|
||||
R7H = D2_2*Cos_2;
|
||||
|
||||
D1_1=imag(x_out(AR2));%R3H=D1_1
|
||||
R3H=D1_1;
|
||||
AR2=AR2+1;
|
||||
|
||||
%R4H = D1_1 + (D3_1*Cos_1 - D2_1*Sin_1);%R4H=R3H+R6H
|
||||
R4H=R3H+R6H;
|
||||
|
||||
%R5H = D1_1 - (D3_1*Cos_1 - D2_1*Sin_1);%R5H=R3H-R6H
|
||||
R5H=R3H-R6H;
|
||||
D2_1=real(x_out(AR3));
|
||||
R1H=D2_1;
|
||||
|
||||
Sin_2=coef_table(AR5);
|
||||
R3H=Sin_2;
|
||||
AR5=AR5+AR0;
|
||||
|
||||
%R6H = D3_2*Sin_2;%R6H=R0H*R3H
|
||||
R6H=R0H*R3H;
|
||||
|
||||
D1_1prime=R4H;
|
||||
X(AR6)=D0_1prime+j*D1_1prime;
|
||||
AR6=AR6+1;
|
||||
|
||||
D3_1prime=R5H;
|
||||
X(AR7)=D2_1prime+j*D3_1prime;
|
||||
AR7=AR7+1;
|
||||
|
||||
R5H = D2_2*Sin_2;
|
||||
|
||||
end
|
||||
|
||||
AR0=DataPtrInc;
|
||||
AR4=CurrentCosPtr+1;
|
||||
AR5=CurrentSinPtr+1;
|
||||
|
||||
%R7H = (D2_2*COS_2 + D3_2*SIN_2)
|
||||
R7H=R7H+R6H;
|
||||
|
||||
R6H=real(x_out(AR3));
|
||||
AR3=AR3-1;
|
||||
|
||||
% R6H = D3_2*COS_2
|
||||
R6H=R0H*R2H;
|
||||
|
||||
D0_2=real(x_out(AR2));
|
||||
R3H=D0_2;
|
||||
|
||||
%R4H = D0_2 + (D2_2*COS_2 + D3_2*SIN_2)
|
||||
R4H=R3H+R7H;
|
||||
|
||||
D0_2prime=R4H;
|
||||
%X(AR6)=D0_2prime
|
||||
|
||||
% R6H = (D3_2*COS_2 - D2_2*SIN_2)
|
||||
R6H=R6H-R5H;
|
||||
|
||||
R5H=imag(x_out(AR3));
|
||||
AR3 = AR3 + DataPtrInc+1;
|
||||
|
||||
% R4H = D0_2 - (D2_2*COS_2 + D3_2*SIN_2)
|
||||
R4H=R3H-R7H;
|
||||
D2_2prime=R4H;
|
||||
%X(AR7)=D2_2prime;
|
||||
|
||||
|
||||
D1_2=imag(x_out(AR2));
|
||||
R3H=D1_2;
|
||||
AR2=AR2+DataPtrInc+1;
|
||||
|
||||
% R4H = D1_2 + (D3_2*COS_2 - D2_2*SIN_2)
|
||||
R4H=R3H+R6H;
|
||||
|
||||
% R5H = D1_2 - (D3_2*COS_2 - D2_2*SIN_2)
|
||||
R5H=R3H-R6H;
|
||||
|
||||
AR3;
|
||||
D2_1=real(x_out(AR3));
|
||||
R1H=D2_1;
|
||||
%AR3=AR3+1;
|
||||
|
||||
D1_2prime=R4H;
|
||||
X(AR6)=D0_2prime+j*D1_2prime;
|
||||
AR6=AR6+DataPtrInc+1;
|
||||
|
||||
D3_2prime=R5H;
|
||||
X(AR7)=D2_2prime+j*D3_2prime;
|
||||
AR7=AR7+DataPtrInc+1;
|
||||
|
||||
AR0=CoefPtrInc;
|
||||
end
|
||||
X=X/2;
|
||||
x_out(1:length(X))=X;
|
||||
|
||||
DataPtrInc=DataPtrInc*2;
|
||||
CoefPtrInc=CoefPtrInc/2;
|
||||
|
||||
AR7=CurrentInPtr;
|
||||
AR3=CurrentOutPtr;
|
||||
AR6=CurrentInPtr;
|
||||
AR2=CurrentOutPtr;
|
||||
|
||||
InnerCounter=InnerCounter*2+1;
|
||||
|
||||
OuterCounter=OuterCounter/2;
|
||||
end
|
||||
|
||||
Magnitude=abs(X);
|
||||
Phase=angle(X);
|
||||
|
||||
Magnitude_Fixed=(abs(X)/2^16).^2;
|
||||
+137
@@ -0,0 +1,137 @@
|
||||
//#############################################################################
|
||||
//! \file $FOLDER_EXAMPLES$/$DEVICE$_Test_FixedPoint_RFFT/rfft.c
|
||||
//!
|
||||
//! \brief Real FFT (32-bit)
|
||||
//!
|
||||
//! \date Sep 15, 2014
|
||||
//!
|
||||
//! This example shows how to use the RFFT windowing routine of the library. It
|
||||
//! also shows the bit reversal, FFT initialization, calculation and the
|
||||
//! magnitude calculation. The RFFT module structure is as follows:
|
||||
//!
|
||||
//! typedef struct {
|
||||
//! long *ipcbptr;
|
||||
//! long *tfptr;
|
||||
//! int size;
|
||||
//! int nrstage;
|
||||
//! long *magptr;
|
||||
//! long *winptr;
|
||||
//! long peakmag;
|
||||
//! int peakfrq;
|
||||
//! int ratio;
|
||||
//! void (*init)(void *);
|
||||
//! void (*calc)(void *);
|
||||
//! void (*mag)(void *);
|
||||
//! void (*win)(void *);
|
||||
//! }RFFT32;
|
||||
//!
|
||||
//! \b Watch \b Variables
|
||||
//! - ipcbsrc Data input buffer. After the FFT calculation it becomes the
|
||||
//! Magnitude output buffer (Both are in Q31 format)
|
||||
//! - ipcb Data output buffer (Q31 format)
|
||||
//! - rfft CFFT32 object
|
||||
//!
|
||||
//! In CCS, you can invoke the "SetupDebugEnv.js" script from the
|
||||
//! Scripting console to have these variables set up in the Watch window
|
||||
//! and create graphs to show the input/output vectors
|
||||
//
|
||||
// Group: C2000
|
||||
// Target Family: C28x
|
||||
//
|
||||
//#############################################################################
|
||||
//
|
||||
//
|
||||
// $Copyright: Copyright (C) 2014-2024 Texas Instruments Incorporated -
|
||||
// http://www.ti.com/ ALL RIGHTS RESERVED $
|
||||
//#############################################################################
|
||||
//*****************************************************************************
|
||||
// includes
|
||||
//*****************************************************************************
|
||||
#include "examples_setup.h"
|
||||
#include "fft.h"
|
||||
#include "fft_hamming_Q31.h"
|
||||
|
||||
//*****************************************************************************
|
||||
// defines
|
||||
//*****************************************************************************
|
||||
#define FFT_SIZE 512
|
||||
|
||||
//*****************************************************************************
|
||||
// globals
|
||||
//*****************************************************************************
|
||||
// Create the FFT buffers, ipcb and ipcbsrc, in sections with the same name
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(ipcb, "FFTipcb");
|
||||
#else
|
||||
#pragma DATA_SECTION("FFTipcb");
|
||||
#endif
|
||||
int32_t ipcb[2*FFT_SIZE];
|
||||
|
||||
#ifndef __cplusplus
|
||||
#pragma DATA_SECTION(ipcbsrc, "FFTipcbsrc");
|
||||
#else
|
||||
#pragma DATA_SECTION("FFTipcbsrc");
|
||||
#endif
|
||||
int32_t ipcbsrc[2*FFT_SIZE];
|
||||
|
||||
// Declare and initialize the structure object.
|
||||
// Use the RFFT32_<n>P_DEFUALTS in the FFT header file if
|
||||
// unsure as to what values to program the object with.
|
||||
RFFT32 rfft = RFFT32_512P_DEFAULTS;
|
||||
|
||||
// Define window Co-efficient Array
|
||||
// Note: Windowing is not used in this example
|
||||
const long win[FFT_SIZE/2]=HAMMING512;
|
||||
|
||||
// Start of main()
|
||||
int main(void)
|
||||
{
|
||||
// Locals
|
||||
float RadStep = 0.1963495408494f;
|
||||
float Rad = 0.0f;
|
||||
uint32_t i = 0;
|
||||
|
||||
#ifdef _FLASH
|
||||
FIXPT_DSP_initFlash();
|
||||
#endif //_FLASH
|
||||
FIXPT_DSP_initSystemClocks();
|
||||
FIXPT_DSP_initEpie();
|
||||
|
||||
//Clean up input/output buffer
|
||||
for(i=0; i < (FFT_SIZE*2); i=i+2){
|
||||
ipcb[i] = 0;
|
||||
ipcb[i+1] = 0;
|
||||
}
|
||||
|
||||
//Simulated input signal
|
||||
for(i=0; i < FFT_SIZE; i++){
|
||||
ipcbsrc[i] = (long)(2147483648*(sin(Rad) + cos(Rad*2.3567))/2); //Q31
|
||||
Rad = Rad + RadStep;
|
||||
}
|
||||
|
||||
|
||||
RFFT32_brev(ipcbsrc, ipcb, FFT_SIZE); // real FFT bit reversing
|
||||
|
||||
rfft.ipcbptr = ipcb; // FFT computation buffer
|
||||
rfft.magptr = ipcbsrc; // Magnitude output buffer
|
||||
rfft.winptr = (long *)win; // Window coefficient array
|
||||
rfft.init(&rfft); // Twiddle factor pointer initialization
|
||||
|
||||
rfft.win(&rfft); // Window the input data. The windowing is
|
||||
// done after the input is ordered in bit-reversed
|
||||
// format
|
||||
rfft.calc(&rfft); // Compute the FFT
|
||||
|
||||
rfft.mag(&rfft); // Q31 format (abs(ipcbsrc)/2^16).^2
|
||||
|
||||
//asm(" ESTOP0");
|
||||
for(;;);
|
||||
|
||||
// code should never reach this pointer
|
||||
return 1;
|
||||
|
||||
} // End: main()
|
||||
|
||||
//###########################################################################
|
||||
// End of File
|
||||
//###########################################################################
|
||||
Loaded 100 of 14950 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user