使用单片机制作的数字电压表

[11-21 22:50:30]   来源:http://www.88dzw.com  电子小制作   阅读:8745

文章摘要: } } } void t0(void) interrupt 1 using 0 { CLK=~CLK; } void t1(void) interrupt 3 using 0 { TH1=(65536-4000)/256; TL1=(65536-4000)%6; P1=dispcode[dispbuf[dispcount]]; P2=dispbitcode[dispcount]; if(dispcount==7) { P1=P1 | 0x80; } dispcount++; if(dispcount==8)

使用单片机制作的数字电压表,标签:小制作,电子样本制作,http://www.88dzw.com
        }
    }
}
void t0(void) interrupt 1 using 0
{
  CLK=~CLK;
}
void t1(void) interrupt 3 using 0
{
  TH1=(65536-4000)/256;
  TL1=(65536-4000)%6;
  P1=dispcode[dispbuf[dispcount]];
  P2=dispbitcode[dispcount];
  if(dispcount==7)
    {
      P1=P1 | 0x80;
    }
  dispcount++;
  if(dispcount==8)
    {
      dispcount=0;
    } 
}

上一页  [1] [2] 


Tag:电子小制作小制作,电子样本制作电子制作 - 电子小制作

《使用单片机制作的数字电压表》相关文章