文件名称:ADC0804程序 时序图
文件大小:69KB
文件格式:DOC
更新时间:2012-08-18 02:10:52
ADC 0804 程序
sbit RS=P2^0 ; //P1.0之代称为RS sbit RW=P2^1 ; //P1.1之代称为RW sbit E=P2^2 ; //P1.2之代称为E sbit ADCRD=P3 ^0 ; //设定P3.0为ADCRD的功能接脚 sbit ADCWR=P3 ^1 ; //设定P3.1为ADCWR的功能接脚 char code *keycode[]={"0","1","2","3","4","5","6","7","8","9"}; char code *ptr ; char code *digi[]={"DIGI:0.0000"}; int i,j,k,b[5],c=1; long a; //设定为长整数 void main() {