资源简介
f28335三相变频C语言程序
代码片段和文件信息
#include “DSP2833x_Device.h“ // DSP2833x Headerfile Include File
#include “DSP2833x_Examples.h“ // DSP2833x Examples Include File
#include “math.h“
// Prototype statements for functions found within this file.
//interrupt void adc_isr(void);
void adc_isr(void);
interrupt void ISRepwm1(void);
void EPwmSetup(void);
// Global variables used in this example:
Uint16 j=0LoopCount=0ConversionCount=0close=1;
Uint16 pppwm_cnt1=0pwm_cnt2=0pwm_cnt3=0i1=0;
float sinne[512]m=0.7a=170;
float sinne1[256];
Uint32 k=0nsy=0ay=0i=0;
//float Voltage3[256]Voltage4[256]Voltage5[256];//Voltage1[256]Voltage2[256]
float uu1u2u3u4u5uaubucuduqf=50;
float sum1=0pian2=1.5pian1=1.507bian=43U=10sum=0;
float ee1=0e2=0PIDPIDold=0.5Kp=0.0031Ki=0.001;
/********
- 上一篇:达内C++面试300题
- 下一篇:C语言实现老鼠走迷宫.zip
评论
共有 条评论