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

正文內(nèi)容

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

2025-06-19 12:46本頁面
  

【正文】 幫助。25參考文獻(xiàn)[1] 童詩白等. 模擬電子技術(shù)基礎(chǔ)[M].高等教育出版社, 2022[2] [M].清華大學(xué)出版社,2022[3] [M].人民郵電出版社,2022[4] 單片機(jī)徹底研究[M].[5] [M].[6] Protel 99SE 典型實(shí)例[M].[7] 單片機(jī)及其 C語言程序開發(fā)實(shí)例[M].[8] [M].[9] [M].[10] Tang of Embedded Softcore Microprocessor in Data Acquisition Systemm [J].Information& 26The Design of Multichannel Data Acquisition System Based on Single Chip MicroputerAuthor:LuoYongqiang Major:Electronic Information Science and TechnologyTeacher:Shi Hongyu Title:instructor(Electronic Science Deparment of Huizhou University,Guangdong,Huizhou,516007)AbstractThere 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)源程序源程序:***************主程序***************includedefine uchar unsigned chardefine uint unsigned intuchar 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。28sbit S1=P3^7。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) {29choosechanl()。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){30adc0809()。//AD 轉(zhuǎn)換函數(shù) }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)換程序***************33void adc0809(){ 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。34P0=0xff。 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。35wela=1。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。36P0=0xfe。wela=0。delay(5)。} ***************延時程序***************void delay(uint z){ uint t1,y。 for(t1=z。t10。t1) for(y=110。y0。y)。}
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1