David M. Alter
Texas Instruments, Inc.
September 29, 2008
----------------------------------
This code accompanies the Texas Instruments application report "Running an Application from
Internal Flash Memory on the TMS320F28xxx DSP," literature #SPRA958. The application report
can be downloaded from the TI website, www.ti.com.
Please read and understand the disclaimer contained in the file disclaimer.txt.
----------------------------------
These are example code projects for the eZdspF28335 board. They are complete with all needed
files. They have been built and tested using Code Composer Studio v3.3.81.5, C28x C-Compiler
v5.1.0, and DSP/BIOS v5.33. Test hardware was an eZdspF28335 development board with revision
0 silicon (initial silicon).
There are four projects:
F28335_example_BIOS_ram.pjt - DSP/BIOS project that runs from on-chip RAM
F28335_example_BIOS_flash.pjt - DSP/BIOS project that runs from on-chip FLASH
F28335_example_nonBIOS_ram.pjt - non-DSP/BIOS project that runs from on-chip RAM
F28335_example_nonBIOS_flash.pjt - non-DSP/BIOS project that runs from on-chip FLASH
These are just examples of DSP/BIOS and non-DSP/BIOS projects. They have only been given
brief tests, and no guarantees are made about their suitability or performance for
application useage.
The projects all do the following:
----------------------------------
1) Illustrates F28335 DSP initialization (in function main()). The PLL is configured for
x5 mode.
2) Toggles the GPIO32 pin to blink the LED on the eZdspF28335 board. In the non-DSP/BIOS
projects, this is done in the ADCINT ISR. In the DSP/BIOS projects, a periodic function
is used.
3) Configures the ADC to sample on ADCINA0 channel at a 50 kHz rate.
4) Services the ADC interrupt.
5) Sends out 2 kHz symmetric PWM on EPWM1A (muxed to GPIO0 pin).
6) Configures the enhanced capture unit ECAP1 (muxed to GPIO5 pin).
7) Services the capture unit #1 interrupt.
Things to know:
---------------
1) The .pjt project files can be found in the \projects directory. After compiling a
project, the .out file will be located in the \projects\Debug directory.
2) The \src directory contains code source files common to all projects. Note: not every
source file is used by all projects.
3) The \DSP2833x_headers\include directory contains include files from the DSP2833x
Peripherals Structures header file download. All four projects use these structures
to program the peripherals in C. The header file download is available from the TI
website, literature #SPRC530. Specifically, v1.20 of the header files has been used.
The contents of this directory are IDENTICAL to the same directory from the header file
download v1.20. In addition, the file DSP2833x_GlobalVariableDefs.c has been moved from
the \DSP2833x_headers\src directory of the header file download to the \src directory of
this project.
4a) If using the RAM examples, the F28335 on the eZdsp board needs to be configured for
"Jump to M0" bootmode. Check that switches 1, 2, 3, and 4 on dip-switch bank SW1 are
configured as:
SW1.1 = ON (CLOSED)
SW1.2 = ON (CLOSED)
SW1.3 = OFF (OPEN)
SW1.4 = ON (CLOSED)
If this does not seem to be working, check the reference manual for your eZdsp board to
confirm the dip=switch settings. Dip settings may have changed if the eZdsp board was
revised.
4b) If using the FLASH examples, the F28335 on the eZdsp board needs to be configured for
"Jump to Flash" bootmode. Check that switches 1, 2, 3, and 4 on dip-switch bank SW1 are
configured as:
SW1.1 = OFF (OPEN)
SW1.2 = OFF (OPEN)
SW1.3 = OFF (OPEN)
SW1.4 = OFF (OPEN)
If this does not seem to be working, check the reference manual for your eZdsp board to
confirm the dip=switch settings. Dip settings may have changed if the eZdsp board was
revised.
5) The ram example is linking sections in various places that may look unnecessary
(e.g., the section ramfuncs is loaded to one ram area, and copied to and run from
another ram area. On the surface, this look rather pointless. However, these things
were really done in preparation to build the flash project. In reality, a real embedded
system cannot run on ram alone. It must have non-volatile memory somewhere. Hence, in
the flash system, you will see the same sections being loaded to flash, but copied to and
run from ram.
6) The user will reach a point where he will need to modify the linker command file for
the project. The linking is actually controlled by three different files: user .cmd file,
DSP/BIOS generated .cmd file (for DSP/BIOS projects only), and the DSP280x header file .cmd.
The user .cmd file is named f28335_BIOS_ram.cmd, f28335_BIOS_flash.cmd, f28335_nonBIOS_ram.
cmd, or f28335_nonBIOS_flash.cmd, depending on which project is used. The DSP/BIOS
generated .cmd file is similarly named f28335_BIOS_ramcfg.cmd, f28335_BIOS_flashcfg.cmd,
f28335_nonBIOS_ramcfg.cmd, or f28335_nonBIOS_flashcfg.cmd. Finally, the DSP2833x header
file .cmd file is named either DSP2833x_Headers_BIOS.cmd or DSP280x_Headers_nonBIOS.cmd.
Be careful modifying the user .cmd file. For DSP/BIOS projects, the RAM and FLASH memory
has been defined in the DSP BIOS configuration tool (i.e., in the DSP/BIOS generated .cmd
file). The peripheral structure memory and other DSP2833x header file related sections is
defined in the DSP2833x header file .cmd file. There has not been too much attention given
to where everything is linked. The goal in writing this example code was simply to get it
to work correctly. The linking may need to be tuned to get better performance (e.g., to
avoid memory block access contention, or to better manage memory block utilization).
7) For non-DSP/BIOS projects, a complete set of interrupt service routines are defined
the file defaultISR_nonBIOS.c. Each interrupt is executed directly in its hardware ISR.
However, with the exception of the ADCINT and CAPINT1, each ISR actually executes an ESTOP0
instruction (emulation stop) to trap spurious interrupts during debug. Note that each ISR
is using the "interrupt" keyword which tells the compiler to perform a context save/restore
upon function entry/exit.
8) For DSP/BIOS projects, a complete set of (hardware) interrupt service routines are
defined in the file DefaultISR_BIOS.c. Each ISR can be hooked to the desired interrupt
using the HWI manager in the DSP/BIOS configuration tool. Also, the DSP/BIOS Interrupt
Dispatcher can be used to handle the context save/restore, which is why the ISRs are not
using the "interrupt" keyword (as in the non-DSP/BIOS case). In these examples, the
ECAP1_INT ISR is performed directly in the DefaultIsr.c file (as an example of reducing
latency), whereas the ADC interrupt function in DefaultIsr_BIOS.c posts a SWI to perform
the ADC routine. These are just examples. Note that the ECAP1_INT is still using the
DSP/BIOS dispatcher to perform context save/restore (as selected in the HWI manager
of the configuration tool). If absolute minimum latency is required (for some time
critical ISR), one could disable the interrupt dispatcher for that interrupt, and add
the "interrupt" keyword to the ISR function declaration. Note that doing so will preclude
the user for utilizing any DSP/BIOS functionality in that ISR.
------------ END OF FILE -------------------
没有合适的资源?快使用搜索试试~ 我知道了~
基于DSP28335永磁同步电机矢量控制程序仿真原理资料.zip
共290个文件
pdf:85个
h:57个
c:46个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 3 下载量 56 浏览量
2024-06-02
13:03:30
上传
评论 3
收藏 357.26MB ZIP 举报
温馨提示
DSP28335永磁同步电机项目设计PMSM仿真程序代码原理图辨识解析。源代码/Pdf原理图/份真/说明文档总计236MB。 CCS3.3的补丁包 DSP新的手册 示例 和参考设计setupCCSPlatinum v30322-28335TDS510USB V1.4 2010-02-04TDS510闻亭安装程序TMSF28335官方烧param newmotor.mPMSM2015.mdPMSMsvpwm net.rarTMS320F2812 CCSV3[1].3安装说明,pdf风机组电机控制程序库函数说明.pdf基于matlab.avi基于SVPWM的永磁同步电机参数在线辨识,doc空间矢量调制原理及实现.ppt实验程序说明文件,doc永磁同步电机调速系统原理图.pdf
资源推荐
资源详情
资源评论
收起资源包目录
基于DSP28335永磁同步电机矢量控制程序仿真原理资料.zip (290个子文件)
DelayUs.asm 2KB
DelayUs.asm 2KB
DelayUs.asm 2KB
Passwords.asm 2KB
Passwords.asm 2KB
Passwords.asm 2KB
CodeStartBranch.asm 2KB
CodeStartBranch.asm 2KB
CodeStartBranch.asm 2KB
SetDBGIER.asm 1KB
SetDBGIER.asm 1KB
SetDBGIER.asm 1021B
基于matlab.avi 71.54MB
DefaultIsr_nonBIOS.c 31KB
DefaultIsr_BIOS.c 29KB
DefaultIsr_nonBIOS.c 25KB
DefaultIsr_nonBIOS.c 23KB
DefaultIsr_BIOS.c 23KB
DefaultIsr_BIOS.c 21KB
DSP2833x_GlobalVariableDefs.c 11KB
Gpio.c 10KB
DSP280x_GlobalVariableDefs.c 10KB
PieVect_nonBIOS.c 9KB
PieVect_nonBIOS.c 9KB
PieVect_nonBIOS.c 9KB
Ev.c 8KB
DSP281x_GlobalVariableDefs.c 7KB
EPwm.c 6KB
EPwm.c 6KB
SysCtrl.c 6KB
Gpio.c 6KB
SysCtrl.c 6KB
Xintf.c 5KB
Gpio.c 5KB
Adc.c 4KB
Main_BIOS.c 4KB
Main_BIOS.c 4KB
Main_BIOS.c 4KB
Adc.c 4KB
Xintf.c 4KB
Adc.c 3KB
ECap.c 3KB
ECap.c 3KB
SysCtrl.c 3KB
PieCtrl_BIOS.c 2KB
PieCtrl_BIOS.c 2KB
PieCtrl_BIOS.c 2KB
PieCtrl_nonBIOS.c 2KB
PieCtrl_nonBIOS.c 2KB
PieCtrl_nonBIOS.c 2KB
Flash.c 2KB
Flash.c 2KB
Flash.c 2KB
Main_nonBIOS.c 2KB
Main_nonBIOS.c 2KB
Main_nonBIOS.c 2KB
Watchdog.c 2KB
Watchdog.c 2KB
Watchdog.c 2KB
Wtusb5102.cfg 40B
F2812_example_BIOS_ramcfg.cmd 11KB
F28335_example_BIOS_flashcfg.cmd 11KB
F28335_example_BIOS_ramcfg.cmd 10KB
F2812_example_BIOS_flashcfg.cmd 10KB
F2808_example_BIOS_flashcfg.cmd 10KB
F2808_example_BIOS_ramcfg.cmd 10KB
DSP2833x_Headers_nonBIOS.cmd 9KB
DSP2833x_Headers_BIOS.cmd 9KB
DSP280x_Headers_BIOS.cmd 8KB
DSP280x_Headers_nonBIOS.cmd 8KB
DSP281x_Headers_nonBIOS.cmd 5KB
DSP281x_Headers_BIOS.cmd 5KB
F28335_nonBIOS_flash.cmd 4KB
F2812_nonBIOS_flash.cmd 4KB
F28335_nonBIOS_ram.cmd 4KB
F2812_nonBIOS_ram.cmd 3KB
F2808_nonBIOS_flash.cmd 3KB
F2808_nonBIOS_ram.cmd 3KB
F28335_BIOS_flash.cmd 1KB
F2812_BIOS_flash.cmd 1KB
F2808_BIOS_flash.cmd 1KB
F2812_BIOS_ram.cmd 959B
F28335_BIOS_ram.cmd 943B
F2808_BIOS_ram.cmd 822B
WTUSB5102.dll 64KB
基于SVPWM的永磁同步电机参数在线辨识.doc 4.09MB
实验程序说明文件.doc 73KB
GPIO.doc 33KB
CCS_v3.3_SR10_80.exe 106.05MB
SR5_CCS_v3.3_SR_3.3.54.1.exe 90.76MB
setupCCSPlatinum_v30322.exe 17.45MB
C2000CodeGenerationTools5[1].0.0Beta2.exe 12.44MB
setup_C28XFPU_CSP_v3[1].3.1207.exe 5.75MB
F2823x_RevA_CSP.exe 5.47MB
Setup.exe 2.58MB
Setup.exe 2.58MB
C2000-2[1].00-SA-to-UA-TI-FLASH2X.EXE 2.4MB
TDS510USB_Setup(CCS4.0).exe 1.39MB
TDS510USB_Setup(CCS3.3).exe 1.14MB
TDS510USB_Setup(CCS3.3).exe 1.14MB
共 290 条
- 1
- 2
- 3
资源评论
- m0_740348502024-06-17内容与描述一致,超赞的资源,值得借鉴的内容很多,支持!
- jjjhshjsjsna2024-06-21支持这个资源,内容详细,主要是能解决当下的问题,感谢大佬分享~
- Iqsann2024-07-12内容与描述一致,超赞的资源,值得借鉴的内容很多,支持!
通信瓦工
- 粉丝: 370
- 资源: 6423
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功