xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 119KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-14
  • 語言: C/C++
  • 標簽: proteu??電路??

資源簡介

通過51單片機實現功能秒表,采用proteus仿真,用c語言驅動,整個電路實現循環動態顯示數字 00~99。

資源截圖

代碼片段和文件信息

#include
#define?uchar?unsigned?char
#define?uint?unsigned?int

sbit?START=P2^0;
sbit?RST=P2^1;

uint?time;

uchar?code?table[]={0x3f0x060x5b0x4f
0x660x6d0x7d0x07
0x7f0x6f};

void?Delay(uint?ms)
{
????uint?ij;
for(i=ms;i>0;i--)
for(j=110;j>0;j--);

}

void?time0()?interrupt?1
{
????uchar?tt;
TH0=0x4c;
TL0=0x00;
tt++;
if(tt==20)
{
??time++;
if(time==99)
time=0;
tt=0;
}
}


void?Display(uchar?sum)
{
???uchar?shige;
?P0=0x00;
?P1=0x00;
?shi=table[sum/10];
?P0=shi;
?P1=0xfd;
?Delay(5);
?
?P0=0x00;
?P1=0x00;
?ge=table[sum%10];
?P0=ge;
?P1=0xfe;
?Delay(5);
?
}


void?Keyscan()
{

if(START==0)
{????
?????Delay(10);
?????????if(START==0)
????{
?????TR0=!TR0;
???????while(!START)?Display(time);
????}
}

if(RST==0)
{
?????Delay(10);
?????if(RST==0)
?????{
????????time=0;
????????TR0=0;
while(!RST)?Display(time);
?????}
}
}

void?main()
{

EA???=?1; ??????????????
ET0??=?1;

TMOD?=?0x01;
TH0??=?0x4c;?
TL0??=?0x00; ????????????????
TR0??=?0;

while(1)
{
Keyscan();
Display(time);
}


}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????1233??2018-11-25?15:23??期中大作業\qizhong.c

?????文件??????96260??2018-11-25?15:23??期中大作業\qizhong.DSN

?????文件????????782??2018-11-25?15:21??期中大作業\qizhong.hex

?????文件????????742??2018-11-25?17:07??期中大作業\qizhong.PWI

?????文件??????14048??2018-11-25?15:23??期中大作業\qizhong.uvproj

?????文件?????103439??2018-11-25?17:07??期中大作業\qizhong報告.docx

?????目錄??????????0??2019-03-06?18:26??期中大作業

-----------?---------??----------?-----??----

???????????????216504????????????????????7


評論

共有 條評論