第一范文网 - 专业文章范例文档资料分享平台

高精度数控稳压电源设计报告 - 图文

来源:用户分享 时间:2025/8/19 12:06:43 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

AD_Init();

EX0=1; IT0=1; EA=1;

P3M1=0x00; P3M0=0x21;

FS = 0; RL1 = 0; RL2 = 0; RL3 = 0; RL4 = 0; ON = 0;

Step_flag = IU_Step[IU_flag];

// Pant(0xff,0xff); // Pant(0xf8,0x00); // // Pant(0X07,0xE0); // // Pant(0x00,0x1f); // Pant(0x00,0x00); //

LCD_CS =0; //

ChineseChar(20,10,2,colors[2],colors[4],1); // ChineseChar(38+14,10,2,colors[2],colors[4],2); // ChineseChar(38+46,10,2,colors[2],colors[4],3); // ChineseChar(70+46,10,2,colors[2],colors[4],4); // ChineseChar(102+46,10,2,colors[2],colors[4],5); // ChineseChar(134+46,10,2,colors[2],colors[4],6); //

U = Read_EEPROM(0x00); I = Read_EEPROM(0x02);

Temp = result(3);

sprintf(buffer,\

LCD_ShowString(0,50,M,colors[7],colors[4],buffer);

U_RL = ((U<<1)/100+2)>>1; if(U==0)U_RL=0;

if(U_RL>=0x0f)U_RL=0x0f; P1 = (P1&0x0F)|(U_RL<<4); write_da_U(U); write_da_I(I);

sprintf(buffer,\880);

LCD_ShowString(0,150,M,colors[5],colors[4],buffer); nI=sprintf(buffer,\

LCD_ShowString(240-nI*M,296,M,colors[5],colors[4],buffer);

while(1) {

if(IU_flag==0) {

U_RL = ((U<<1)/100+2)>>1; if(U==0)U_RL=0;

if(U_RL>=0x0f)U_RL=0x0f; P1 = (P1&0x0F)|(U_RL<<4);

write_da_I(I); write_da_U(U);

if(U<400)U_U = (float)U*0.02+0.052; else if(U<550)U_U = (float)U*0.02+0.06; else if(U<719)U_U = (float)U*0.02+0.065; else if(U<1200)U_U = (float)U*0.02+0.071; else if(U<1500)U_U = (float)U*0.02+0.083; else if(U<1585)U_U = (float)U*0.02+0.10; else U_U = (float)U*0.02+0.11;

if(U_U<10.000)sprintf(buffer,\ else sprintf(buffer,\

LCD_ShowString(0,100,M,colors[1],colors[4],buffer); nU=sprintf(buffer,\

LCD_ShowString(240-nU*M,296,M,colors[1],colors[4],buffer); }

if(IU_flag) {

write_da_U(U); write_da_I(I);

sprintf(buffer,\loat)I/880);

LCD_ShowString(0,150,M,colors[5],colors[4],buffer); nI=sprintf(buffer,\

LCD_ShowString(240-nI*M,296,M,colors[5],colors[4],buffer); }

if((AD_delay==1)&&(AD_flag==0)) {

U_buffer[i1]=AD_V(1); i1++;

if(i1==10)i1 = 0;

AD_delay=0; time_AD=0; AD_flag = 1; }

if((AD_delay==1)&&(AD_flag==1)) {

I_buffer[i2]=AD_V(2); i2++;

if(i2==10)i2 = 0;

AD_delay=0; time_AD=0; AD_flag = 0; }

if(time0>=200) {

time0=0;

for(i3=0;i3<10;i3++)ADV += U_buffer[i3]; ADV1=ADV; ADV2=ADV1; ADV3=ADV2;

ADV = (ADV1+ADV2/2.0+ADV3/4.0)/1.75; ADV /= 10.0;

ADV = ADV*20.00*2.048/65536.000+0.009;

}

}

if(ADV<10)sprintf(buffer,\ else sprintf(buffer,\

LCD_ShowString(0,200,M,colors[1],colors[4],buffer); ADV = 0; }

if(time3>=200) {

time3=0;

for(i3=0;i3<10;i3++)ADI += I_buffer[i3]; ADI1=ADI; ADI2=ADI1; ADI3=ADI2;

ADI = (ADI1+ADI2/2.0+ADI3/4.0)/1.75; ADI /= 10.0;

ADI = ADI*5.025*2.048/65536.000;

sprintf(buffer,\

LCD_ShowString(0,250,M,colors[5],colors[4],buffer); ADI = 0; }

if(time1>=1000) {

time1=0;

Temp = result(3);

sprintf(buffer,\

LCD_ShowString(0,50,M,colors[7],colors[4],buffer); if(Temp>=33.0)FS = 1;

else if(Temp<=28)FS = 0; Write_EEPROM(0x00,U,I); }

搜索更多关于: 高精度数控稳压电源设计报告 - 图文 的文档
高精度数控稳压电源设计报告 - 图文.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c284u675re33uh255bmo7_6.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top