ADC0804ADC0801转换
#include
codeunsignedcharseg7code[10]={0x3f,0x06,0x5b,0x4f,
0x66,0x6d,0x7d,0x07,0x7f,0x6f};//显示段码
sbitint1=P3^3;//定义管脚功能
sbitcs=P3^2;
sbitwr=P3^6;
sbitrd=P3^7;
voidDelay(unsignedinttc)//显示延时程序
{while(tc!=0)
{unsignedinti;
下载地址
用户评论
对我来说用处不大
参考过,还不错