freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

畢業(yè)設(shè)計論文-基于單片機(jī)的多路數(shù)據(jù)采集系統(tǒng)設(shè)計-資料下載頁

2025-06-01 21:49本頁面
  

【正文】 [8] 張毅坤 .單片微型計算機(jī)原理及應(yīng)用 [M].西安電子科技大學(xué)出版社 .1998 [9] 余錫存等 .單片機(jī)原理及接口技術(shù) [M].西安電子科技大學(xué)出版社 .2021 [10] Tang of Embedded Softcore Microprocessor in Data Acquisition Systemm [J].Information& 26 The Design of Multichannel Data Acquisition System Based on Single Chip Microputer Author: LuoYongqiang Major: Electronic Information Science and Technology Teacher: Shi Hongyu Title: instructor (Electronic Science Deparment of Huizhou University, Guangdong, Huizhou, 516007) Abstract There are many ways of data collection, along with the rapid development of technology, the application of SCM is continuously to the deepening, also drive data acquisition system change with each passing day update. The system USES the MSC 51 series microcontroller AT89C52 as the core device for data acquisition system design, through the AT89C52 control ADC0809 conversion of signal from analog to digital, and then the data feedback to AT89C52 to collect , at the same time, AT89C52 control LED digital tube display the simulation voltage values. This system of low cost, practical strong, and easy to use. Key words Data Acquisition Single Chip Microputer Design 27 附錄一 系統(tǒng)源程序 源程序 : *************** 主程序 *************** include define uchar unsigned char define uint unsigned int uchar code dispbitcode[]={0xef,0xf7,0xfb,0xfd,0xfe}。 uchar code dispcode[]={0x3f,0x06,0x5b,0x4f,0x66, 0x6d,0x7d,0x07,0x7f,0x6f,0x00}。 uchar dispbuf[5]={0,0,0,0,0}。 uchar getdata,data2,data3,data4。 uint R,datachanl,t1,y,flag。 sbit dula=P1^7。 sbit wela=P1^6。 sbit ST=P1^0。 sbit OE=P1^1。 sbit EOC=P1^2。 sbit S1=P3^7。 28 sbit S2=P3^6。 sbit AA=P1^3。 sbit BB=P1^4。 sbit CC=P1^5。 void start()。 void choosechanl()。 void adc0809()。 void init()。 void delay(uint z)。 void desplay(uchar,uchar,uchar,uchar,uchar)。 *************** 主函數(shù) *************** void main() { init()。 //程序初始化 while(1) { 29 choosechanl()。 start()。//啟動 AD 轉(zhuǎn)換函數(shù) choosechanl()。//通道選擇函數(shù) switch(R) { case 0:{AA=0。BB=0。CC=0。break。}。 case 1:{AA=1。BB=0。CC=0。break。}。 case 2:{AA=0。BB=1。CC=0。break。}。 case 3:{AA=1。BB=1。CC=0。break。}。 case 4:{AA=0。BB=0。CC=1。break。}。 case 5:{AA=1。BB=0。CC=1。break。}。 case 6:{AA=0。BB=1。CC=1。break。}。 case 7:{AA=1。BB=1。CC=1。break。}。 } datachanl=R。 if(flag==1) { adc0809()。//AD 轉(zhuǎn)換函數(shù) 30 } getdata=getdata*500/255。 data2=getdata/100。 data3=getdata/10%10。 data4=getdata%10。 desplay(datachanl,0,data2,data3,data4)。 } } *************** 初始化程序 *************** void init() { R=0。 flag=0。 P1=0x04。//IN0 } *************** 通道選擇程序 *************** 31 void choosechanl() { if(S1==0) { delay(5)。//按鍵消抖 if(S1==0) { while(!S1)。 R++。 if(R==8) { R=0。 } } } } *************** 32 啟動 AD 轉(zhuǎn)換程序 *************** void start() { if(S2==0) { delay(5)。 if(S2==0) { while(!S2)。 { flag=1。 } } } } *************** AD 轉(zhuǎn)換程序 *************** void adc0809() 33 { ST=0。 ST=1。 ST=0。 while(!EOC)。//等待轉(zhuǎn)換完畢 OE=1。 getdata=P2。//取轉(zhuǎn)換數(shù)據(jù) OE=0。 flag=0。 } *************** 數(shù)碼管顯示程序 *************** void desplay(uchar a,uchar b,uchar c,uchar d,uchar e) { dula=1。 P0=dispcode[a]。 dula=0。 P0=0xff。 34 wela=1。 P0=0xef。 wela=0。 delay(5)。 dula=1。 P0=dispcode[b]。 dula=0。 P0=0xff。 wela=1。 P0=0xf7。 wela=0。 delay(5)。 dula=1。 P0=dispcode[c]|0x80。 dula=0。 P0=0xff。 wela=1。 35 P0=0xfb。 wela=0。 delay(5)。 dula=1。 P0=dispcode[d]。 dula=0。 P0=0xff。 wela=1。 P0=0xfd。 wela=0。 delay(5)。 dula=1。 P0=dispcode[e]。 dula=0。 P0=0xff。 wela=1。 P0=0xfe。 36 wela=0。 delay(5)。 } *************** 延時 程序 *************** void delay(uint z) { uint t1,y。 for(t1=z。t10。t1) for(y=110。y0。y)。 } 37 附錄二 產(chǎn)品原理圖
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1