資源簡介
基于DSP28335的PWM程序,可發送6路PWM波,可調節占空比和死區時間,已經過驗證,具有很強的實用性,適合一般的開發者。

代碼片段和文件信息
//?TI?File?$Revision:?/main/8?$
//?Checkin?$Date:?August?10?2007???09:04:40?$
//###########################################################################
//
//?FILE:????Example_2833xEpwmDeadBand.c
//
//?title:???Check?PWM?deadband?generation
//
//?ASSUMPTIONS:
//
//????This?program?requires?the?DSP2833x?header?files.
//
//????Monitor?ePWM1?-?ePWM3?on?an?Oscilloscope?as?described
//????below.
//
//???????EPWM1A?is?on?GPIO0
//???????EPWM1B?is?on?GPIO1
//
//???????EPWM2A?is?on?GPIO2
//???????EPWM2B?is?on?GPIO3
//
//???????EPWM3A?is?on?GPIO4
//???????EPWM3B?is?on?GPIO5
//
//????As?supplied?this?project?is?configured?for?“boot?to?SARAM“
//????operation.??The?2833x?Boot?Mode?table?is?shown?below.
//????For?information?on?configuring?the?boot?mode?of?an?eZdsp
//????please?refer?to?the?documentation?included?with?the?eZdsp
//
//???????$Boot_Table:
//
//?????????GPIO87???GPIO86?????GPIO85???GPIO84
//??????????XA15?????XA14???????XA13?????XA12
//???????????PU???????PU?????????PU???????PU
//????????==========================================
//????????????1????????1??????????1????????1????Jump?to?Flash
//????????????1????????1??????????1????????0????SCI-A?boot
//????????????1????????1??????????0????????1????SPI-A?boot
//????????????1????????1??????????0????????0????I2C-A?boot
//????????????1????????0??????????1????????1????eCAN-A?boot
//????????????1????????0??????????1????????0????McBSP-A?boot
//????????????1????????0??????????0????????1????Jump?to?XINTF?x16
//????????????1????????0??????????0????????0????Jump?to?XINTF?x32
//????????????0????????1??????????1????????1????Jump?to?OTP
//????????????0????????1??????????1????????0????Parallel?GPIO?I/O?boot
//????????????0????????1??????????0????????1????Parallel?XINTF?boot
//????????????0????????1??????????0????????0????Jump?to?SARAM ????<-?“boot?to?SARAM“
//????????????0????????0??????????1????????1????Branch?to?check?boot?mode
//????????????0????????0??????????1????????0????Boot?to?flash?bypass?ADC?cal
//????????????0????????0??????????0????????1????Boot?to?SARAM?bypass?ADC?cal
//????????????0????????0??????????0????????0????Boot?to?SCI-A?bypass?ADC?cal
//??????????????????????????????????????????????Boot_Table_End$
//
//?DEscriptION:
//
//????This?example?configures?ePWM1?ePWM2?and?ePWM3?for:
//????-?Count?up/down
//????-?Deadband
//
//????3?Examples?are?included:
//????*?ePWM1:?Active?low?PWMs
//????*?ePWM2:?Active?low?complementary?PWMs
//????*?ePWM3:?Active?high?complementary?PWMs
//
//????Each?ePWM?is?configured?to?interrupt?on?the?3rd?zero?event
//????when?this?happens?the?deadband?is?modified?such?that
//????0?<=?DB?<=?DB_MAX.??That?is?the?deadband?will?move?up?and
//????down?between?0?and?the?maximum?value.
//
//
//????View?the?EPWM1A/B?EPWM2A/B?and?EPWM3A/B?waveforms
//????via?an?oscilloscope
//
//
//###########################################################################
//?$TI?Release:?DSP2833x?Header?Files?V1.
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????4787??2011-01-11?17:47??lab28-PWM_DEADBAND\cc_build_Debug.log
?????文件???????6955??2007-12-05?16:03??lab28-PWM_DEADBAND\cmd\28335_RAM_lnk.cmd
?????文件???????8595??2007-09-26?10:23??lab28-PWM_DEADBAND\cmd\DSP2833x_Headers_BIOS.cmd
?????文件???????8438??2007-09-21?11:09??lab28-PWM_DEADBAND\cmd\DSP2833x_Headers_nonBIOS.cmd
?????文件???????9033??2007-11-22?11:37??lab28-PWM_DEADBAND\cmd\F28335.cmd
?????文件?????119694??2011-01-11?17:46??lab28-PWM_DEADBAND\Debug\DEADBAND.obj
?????文件?????112199??2011-01-11?17:46??lab28-PWM_DEADBAND\Debug\DSP2833x_Adc.obj
?????文件???????1112??2011-01-11?17:46??lab28-PWM_DEADBAND\Debug\DSP2833x_ADC_cal.obj
?????文件???????1391??2011-01-11?17:46??lab28-PWM_DEADBAND\Debug\DSP2833x_CodeStartBranch.obj
?????文件?????113657??2011-01-11?17:46??lab28-PWM_DEADBAND\Debug\DSP2833x_CpuTimers.obj
?????文件???????1028??2011-01-11?17:46??lab28-PWM_DEADBAND\Debug\DSP2833x_DBGIER.obj
?????文件?????154722??2011-01-11?17:46??lab28-PWM_DEADBAND\Debug\DSP2833x_DefaultIsr.obj
?????文件?????115677??2011-01-11?17:46??lab28-PWM_DEADBAND\Debug\DSP2833x_EPwm.obj
?????文件?????121846??2011-01-11?17:46??lab28-PWM_DEADBAND\Debug\DSP2833x_GlobalVariableDefs.obj
?????文件?????112046??2011-01-11?17:46??lab28-PWM_DEADBAND\Debug\DSP2833x_Gpio.obj
?????文件?????112553??2011-01-11?17:47??lab28-PWM_DEADBAND\Debug\DSP2833x_PieCtrl.obj
?????文件?????119456??2011-01-11?17:47??lab28-PWM_DEADBAND\Debug\DSP2833x_PieVect.obj
?????文件?????116914??2011-01-11?17:47??lab28-PWM_DEADBAND\Debug\DSP2833x_SysCtrl.obj
?????文件???????1123??2011-01-11?17:47??lab28-PWM_DEADBAND\Debug\DSP2833x_usDelay.obj
?????文件?????114593??2011-01-11?17:47??lab28-PWM_DEADBAND\Debug\DSP2833x_Xintf.obj
?????文件??????28366??2011-01-11?17:47??lab28-PWM_DEADBAND\Debug\PWM_DEADBAND.map
?????文件?????163799??2011-01-11?17:47??lab28-PWM_DEADBAND\Debug\PWM_DEADBAND.out
?????文件???????1717??2011-01-11?17:47??lab28-PWM_DEADBAND\Debug.lkf
?????文件??????10465??2007-09-26?10:23??lab28-PWM_DEADBAND\include\DSP2833x_Adc.h
?????文件???????5870??2007-09-26?10:23??lab28-PWM_DEADBAND\include\DSP2833x_CpuTimers.h
?????文件???????6315??2007-09-26?10:23??lab28-PWM_DEADBAND\include\DSP2833x_DefaultIsr.h
?????文件???????2701??2007-09-26?10:23??lab28-PWM_DEADBAND\include\DSP2833x_DevEmu.h
?????文件???????5894??2009-12-03?10:04??lab28-PWM_DEADBAND\include\DSP2833x_Device.h
?????文件??????13320??2007-09-26?10:23??lab28-PWM_DEADBAND\include\DSP2833x_DMA.h
?????文件???????1993??2007-09-26?10:23??lab28-PWM_DEADBAND\include\DSP2833x_Dma_defines.h
............此處省略69個文件信息
評論
共有 條評論