• 大小: 13KB
    文件类型: .c
    金币: 1
    下载: 0 次
    发布日期: 2021-06-08
  • 语言: 其他
  • 标签: DSP  28335  SVPWM  三相  

资源简介

在ccs3.3上完成的DSP28335三相SVPWM程序

资源截图

代码片段和文件信息

// TI File $Revision: /main/8 $
// Checkin $Date: August 10 2007   09:04:53 $
//###########################################################################
//
// FILE:    Example_2833xEPwm3UpAQ.c
//
// title:   Action Qualifier Module Upcount mode.
//
// ASSUMPTIONS:
//
//     This program requires the DSP2833x header files.
//
//     Monitor the ePWM1 - ePWM3 pins on a 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 ePWM3 to produce an
//    waveform with independant modulation on EPWMxA and
//    EPWMxB.
//
//    The compare values CMPA and CMPB are modified within the ePWM‘s ISR
//
//    The TB counter is in upmode for this example.
//
//    View the EPWM1A/B EPWM2A/B and EPWM3A/B waveforms
//    via an oscilloscope
//
//
//###########################################################################
// $TI Release: DSP2833x Header Files V1.01 $
// $Release Date: September 26 2007 $
//###########################################################################


#include “DSP2833x_Device.h“     // DSP2833x Headerfile Include File
#includ

评论

共有 条评论