基于MAX197的多通道压力数据采集系统
...硬件电路设计如图4所示。 740)this.width=740" border=undefined>图4 MAX197连接原理图 单片机数据采集程序设计如下:void scan(uchar channel){ //channel为通道数 uchar conword,low8,HIGH4,i; //定义变量 for(i=0;i<8;i++){ if(i>0)channel=channel>>1; if(channel&1){ conword=0x50+i; P12=1; XBYTE[0xE000]=conword; //读取数据 while(P...