单相变频电源设计 - 原版 - 图文

发布时间 : 星期日 文章单相变频电源设计 - 原版 - 图文更新完毕开始阅读

附录

附录

附录一:软件代码

#include/*宏定义*/ #define uchar unsigned char #define uint unsigned int sbit DQ=P0^0;/*位定义*/ uchar temp;/*定义全局变量*/ /*函数申明*/

void init_ds18b20(void); void write_byte(uchar dat); uchar read_byte(void);

uchar readtemperature(void); void delay(uint t) {

while(t--); }

/*主函数*/ void main() {

while(1) {

temp=readtemperature();

/*EG8010输出频率可在在0~100HZ变化,1HZ=5V/100hz;此次我们假设输出频率在20~100HZ*/

if(temp<10) //停机;输出0V/0HZ P2=0x00;

if(temp>=10&temp<=19)

P2=0x28; //慢速;输出1V/20HZ else if(temp>=20&temp<=21) P2=0x3b; //1.5V/30hz else if(temp>=22&temp<=23)

P2=0x4f; //中速;输出2V/40hz else if(temp>=24&temp<=25)

P2=0x63; //2.5V/50hz else if(temp>=26&temp<=27)

39

电子科技大学成都学院本科毕业设计论文

P2=0x77; //较快;输出3V/60hz else if(temp>=28&temp<=29) P2=0x8b; //3.5V/70HZ else if(temp>=30&temp<=31)

P2=0x9e; //快;输出4V/80HZ else if(temp>=32&temp<=33)

P2=0xb2; //4.5V/90HZ else if(temp>=34&temp<=35)

P2=0xc5; //最快;输出5V/100HZ else if(temp>=36&temp<=40) P2=0xff;

//由于反馈电压不同所以输出P2=0xc5与0xff电压近似相同; } }

void init_ds18b20(void) {

uint n; DQ=1; delay(8); DQ=0;

delay(80); DQ=1; delay(8); n=DQ; delay(4); }

void write_byte(uchar dat) {

uchar i;

for(i=0;i<8;i++) {

DQ=0;

DQ=dat&0x01; delay(4); DQ=1;

dat=dat>>1; }

delay(4); }

uchar read_byte(void) {

40

附录

uchar i,value; for(i=0;i<8;i++) {

DQ=0;

value=value>>1; DQ=1; if(DQ)

value=value|0x80; delay(4); }

return value; }

uchar readtemperature(void) {

uint a,b;

init_ds18b20();

write_byte(0xcc);//跳过ROM; write_byte(0x44);//启动温度测量; delay(300);

init_ds18b20(); write_byte(0xcc);

write_byte(0xbe);//读DS1820温度暂存器命令写数据; a=read_byte(); b=read_byte(); b<<=4;

b+=(a&0xf0)>>4;

return b;//整数2^7~2^0; }

41

电子科技大学成都学院本科毕业设计论文

外文资料原文

The chapter mainly introduces the principle of PowerSmartTM

Variable

Frequency Speed-Regulating Device

Rated voltage of the inverter 6KV basic principles of :

Drive to 6KV example, discusses: 6KV inverter output voltage, each phase has six power units connected in series. Phase input voltage unit 600V, the output is single-phase 577V, the unit can be superimposed on each other in series with the output voltage of 3464V. When the inverter output frequency is 50HZ, the phase voltage is 13 ladder wave, as shown below. FIG UA1 ... UA6 6 respectively a power unit with an output voltage of the A -phase superposition of the inverter output voltage UA0. The figure shows a PWM control signal is generated using the phase A voltage reference UAr, a good approximation can be seen UA0 UAr. UAF for the A-phase output voltage of the fundamental component.

Since the midpoint of the inverter and the motor neutral point is not connected, the inverter output is actually as line voltage, the A -phase and B -phase output voltage generated UAB output line voltage up to 6000V, 25 staircase. As shown below, the output of the step waveform of the phase voltage and the line voltage, UAB not only the number of steps and having a sinusoidal waveform is multiplied, and thus the harmonic component and the dV/dt are small.

The three-phase inverter output voltage to the motor, the motor generates a current rotation of the motor's rated operating voltage and current as shown below, it is the result of a small amount of the measured waveform after the RC filter can be seen as the output voltage harmonic wave is small, the motor current is also very close to a sine wave .

42

联系合同范文客服:xxxxx#qq.com(#替换为@)