文件名称:SPWM
-
所属分类:
- 标签属性:
- 上传时间:2016-12-01
-
文件大小:213.36kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
为了验证仿真的情况,需要把仿真部分转换为代码。
对于逆变,产生相应的控制占空比一般有2种方式:
1.通过计算sin公式,实时计算出输出值,送入epwm发生器中。
其中分2种,一种是直接计算,这种方式在简单的境况下可以使用,但是考虑到计算量对DSP比较大,一般不采用。另外一种是使用TI公司提供的IQmaths函数库里的函数,可以极大减少运算时间。
2.离线读表法。
通过实验发现,如果调用IQMATH直接计算,需要60us。由于开关频率为10K,整个控制的时间限定在100us以内。直接读表,则时间在10us内。
若是要加上闭环控制获得比较好的效果,必然得采用离线读表方式。
-In order to verify the simulation situation, it is necessary to convert part of the simulation code. For the inverter to yield the corresponding duty cycle is controlled generally in two ways: 1. By calculating formula sin, real-time calculation of the output value, into epwm generator. Which divided into two kinds, one is directly calculated in this way in a simple situation can be used, but considering the amount of computation of DSP is relatively large, generally not used. Another is to use IQmaths function library functions provided by TI, can greatly reduce the computation time. 2. Offline reading table method. Experiments found that, if the call IQMATH direct calculation requires 60us. Since the switching frequency is 10K, the entire time-controlled limited to less than 100us. Direct meter reading, the time within 10us. If you want to add closed-loop control to get better results, must give way to off-line reading table.
对于逆变,产生相应的控制占空比一般有2种方式:
1.通过计算sin公式,实时计算出输出值,送入epwm发生器中。
其中分2种,一种是直接计算,这种方式在简单的境况下可以使用,但是考虑到计算量对DSP比较大,一般不采用。另外一种是使用TI公司提供的IQmaths函数库里的函数,可以极大减少运算时间。
2.离线读表法。
通过实验发现,如果调用IQMATH直接计算,需要60us。由于开关频率为10K,整个控制的时间限定在100us以内。直接读表,则时间在10us内。
若是要加上闭环控制获得比较好的效果,必然得采用离线读表方式。
-In order to verify the simulation situation, it is necessary to convert part of the simulation code. For the inverter to yield the corresponding duty cycle is controlled generally in two ways: 1. By calculating formula sin, real-time calculation of the output value, into epwm generator. Which divided into two kinds, one is directly calculated in this way in a simple situation can be used, but considering the amount of computation of DSP is relatively large, generally not used. Another is to use IQmaths function library functions provided by TI, can greatly reduce the computation time. 2. Offline reading table method. Experiments found that, if the call IQMATH direct calculation requires 60us. Since the switching frequency is 10K, the entire time-controlled limited to less than 100us. Direct meter reading, the time within 10us. If you want to add closed-loop control to get better results, must give way to off-line reading table.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SPWM/cc_build_Debug.log
SPWM/Debug/DSP28_DefaultIsr.obj
SPWM/Debug/DSP28_Ev.obj
SPWM/Debug/DSP28_GlobalVariableDefs.obj
SPWM/Debug/DSP28_Gpio.obj
SPWM/Debug/DSP28_PieCtrl.obj
SPWM/Debug/DSP28_PieVect.obj
SPWM/Debug/DSP28_SysCtrl.obj
SPWM/Debug/SPM.obj
SPWM/Debug/SPM.out
SPWM/Debug/SPWM.map
SPWM/Debug.lkf
SPWM/DSP28_Adc.h
SPWM/DSP28_CpuTimers.h
SPWM/DSP28_DefaultIsr.c
SPWM/DSP28_DefaultIsr.h
SPWM/DSP28_DevEmu.h
SPWM/DSP28_Device.h
SPWM/DSP28_ECan.h
SPWM/DSP28_Ev.c
SPWM/DSP28_Ev.h
SPWM/DSP28_GlobalPrototypes.h
SPWM/DSP28_Globalvariable.h
SPWM/DSP28_GlobalVariableDefs.c
SPWM/DSP28_Gpio.c
SPWM/DSP28_Gpio.h
SPWM/DSP28_Mcbsp.h
SPWM/DSP28_PieCtrl.c
SPWM/DSP28_PieCtrl.h
SPWM/DSP28_PieVect.c
SPWM/DSP28_PieVect.h
SPWM/DSP28_Sci.h
SPWM/DSP28_Spi.h
SPWM/DSP28_SysCtrl.c
SPWM/DSP28_SysCtrl.h
SPWM/DSP28_Xintf.h
SPWM/DSP28_XIntrupt.h
SPWM/EvPwm02.paf2
SPWM/EvPwm02.sbl
SPWM/SPM.c
SPWM/spm.CS_/FILE.CDX
SPWM/spm.CS_/FILE.DBF
SPWM/spm.CS_/FILE.FPT
SPWM/spm.CS_/SYMBOL.CDX
SPWM/spm.CS_/SYMBOL.DBF
SPWM/spm.CS_/SYMBOL.FPT
SPWM/spm.paf2
SPWM/spm.pjt
SPWM/spm.sbl
SPWM/SRAM.cmd
SPWM/Debug
SPWM/spm.CS_
SPWM
SPWM/Debug/DSP28_DefaultIsr.obj
SPWM/Debug/DSP28_Ev.obj
SPWM/Debug/DSP28_GlobalVariableDefs.obj
SPWM/Debug/DSP28_Gpio.obj
SPWM/Debug/DSP28_PieCtrl.obj
SPWM/Debug/DSP28_PieVect.obj
SPWM/Debug/DSP28_SysCtrl.obj
SPWM/Debug/SPM.obj
SPWM/Debug/SPM.out
SPWM/Debug/SPWM.map
SPWM/Debug.lkf
SPWM/DSP28_Adc.h
SPWM/DSP28_CpuTimers.h
SPWM/DSP28_DefaultIsr.c
SPWM/DSP28_DefaultIsr.h
SPWM/DSP28_DevEmu.h
SPWM/DSP28_Device.h
SPWM/DSP28_ECan.h
SPWM/DSP28_Ev.c
SPWM/DSP28_Ev.h
SPWM/DSP28_GlobalPrototypes.h
SPWM/DSP28_Globalvariable.h
SPWM/DSP28_GlobalVariableDefs.c
SPWM/DSP28_Gpio.c
SPWM/DSP28_Gpio.h
SPWM/DSP28_Mcbsp.h
SPWM/DSP28_PieCtrl.c
SPWM/DSP28_PieCtrl.h
SPWM/DSP28_PieVect.c
SPWM/DSP28_PieVect.h
SPWM/DSP28_Sci.h
SPWM/DSP28_Spi.h
SPWM/DSP28_SysCtrl.c
SPWM/DSP28_SysCtrl.h
SPWM/DSP28_Xintf.h
SPWM/DSP28_XIntrupt.h
SPWM/EvPwm02.paf2
SPWM/EvPwm02.sbl
SPWM/SPM.c
SPWM/spm.CS_/FILE.CDX
SPWM/spm.CS_/FILE.DBF
SPWM/spm.CS_/FILE.FPT
SPWM/spm.CS_/SYMBOL.CDX
SPWM/spm.CS_/SYMBOL.DBF
SPWM/spm.CS_/SYMBOL.FPT
SPWM/spm.paf2
SPWM/spm.pjt
SPWM/spm.sbl
SPWM/SRAM.cmd
SPWM/Debug
SPWM/spm.CS_
SPWM
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.