全文预览

数字电压表的设计

上传者:蓝天 |  格式:doc  |  页数:12 |  大小:420KB

文档介绍
edigit[3]=temp%1000%100%10;//theonesplace?if(channel==0)?{?(0x80);?write_data('V');?write_data('1');?write_data('=');?write_data(num[digit[0]]);?write_data('.');?write_data(num[digit[1]]);?write_data(num[digit[2]]);?write_data(num[digit[3]]);?(0x80+0x08); if(DATA>0x40) { for(count=0;count<8;count++) { write_data(abnormal[count]); } beep=1; } else { for(count=0;count<8;count++) { write_data(normal[count]); } beep=0; }?}?if(channel==1)?{?(0x80+0x40);?write_data('V');?write_data('2');?write_data('=');?write_data(num[digit[0]]);?write_data('.');?write_data(num[digit[1]]);?write_data(num[digit[2]]);?write_data(num[digit[3]]);?(0x80+0x40+0x08); if(DATA>0x80) { for(count=0;count<8;count++) { write_data(abnormal[count]); } led=1; } else { for(count=0;count<8;count++) { write_data(normal[count]); }

收藏

分享

举报
下载此文档