内容发布更新时间 : 2025/4/21 9:55:43星期一 下面是文章的全部内容请认真阅读。
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*