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

正文內(nèi)容

測控技術(shù)與儀器測控技術(shù)實驗報告(文件)

2024-11-14 17:55 上一頁面

下一頁面
 

【正文】 個數(shù) sbit SMG1 = P1^0。 //定義循環(huán)變量 while(1) {SMG1=0。i++) //循環(huán)顯示 09 { P0=table[i]。 while(j)。 熟悉直流電動機的工作特性。 for(i=0。j++) } void main(void) //定義主函數(shù) { P1=0x0。 DelayXms( 10)。 。 ADC0809START 端為 A/D轉(zhuǎn)換啟動信號, ALE 端為通道選擇地址的鎖存信號。中斷處理程序中,使用如下指令即可讀取 A/D 轉(zhuǎn)換結(jié)果: MOV DPTR, 00H MOVX A, DPTR 四. 實驗原理圖: ? Enable: 輸出允許信號位 五. 程序框圖: 這里給出軟件延時方法的程序框圖和程序: 六. 實驗程序 include include //調(diào)用 C51 的頭文件 define add XBYTE[0x800] //宏定義將 add 定義為 XBYTE[0x800] void delay(int c) //延時子程序 { int i,j。j100。 //通道至 0 delay(50)。 二.實驗?zāi)康模? 了解微型打印機接口及其打印字符的方法; 了解微型打印機打印漢字的方法; 了解單片機與微型打印機的連線方法。 并行接口引腳信號時序 并口時序如下圖所示: 四.實驗電路: 五.實驗程序 // 北京煒煌科技打印機示例程序 // Nocky Tian // 20200717 include // Hardware configuration define PRINTER_DATA P0 // 定義打印機數(shù)據(jù)線端口 sbit BUSY = P3^2。 // 定義打印機應(yīng)答信號引腳 sbit nERR = P3^1。 void PrintByteN(unsigned char* data_src,unsigned char N)。 while(1)。 // 調(diào)整 nSTB 信號脈寬 nSTB = 1。 } } /* PrintByteN() * Print N bytes through printer * no more than 255 bytes could be printed by the function * If more than 255 bytes need printing, the type of N need changing * to unsigned int, even unsigned long if necessary. * Nocky Tian 20200717 */ void PrintByteN( unsigned char* data_src, // pointer to data source unsigned char N) // number of data(byte) { while( N){ PrintByte(*(data_src++))。 // 定義打印機紙狀態(tài)檢測信號引腳 sbit nACK = P3^2。 void PrintString(char* str)。 PrintByte(CR)。 } /* PrintByte() * Send a byte to printer * Nocky Tian 2020717 */ include void PrintByte(unsigned char byte_data) { while( BUSY == 1 ){ } PRINTER_DATA = byte_data。 } /* PrintString() * Print a string which is ending with a 39。 } } 六.實驗結(jié)果 。 character * To Excuted the print mand a addition CR character is needed * Nocky Tian 2020717 */ void PrintString(char* str) { while( *str ){ PrintByte( *(str++))。 _nop_()。 PrintByte(LF)。 void main(void) { char str[] = Printer demo。 // 定義打印機錯誤檢測信號引腳 sbit nSEL = P3^0。 // 定義打印機忙信號引腳 sbit nSTB = P3^7。\039。 nSTB = 0。 PrintString(北京煒煌 WH)。 // 定義打印機在線檢測 信號引腳 define CR 0x0d define LF 0x0a void PrintByte(unsigned char byte_data)。 // 定義打印機 nSTB 信號引腳 sbit PE = P3^3。 2.“出”表示從打印機輸出。 //將 add賦值給 K P1=~k。 } void main() { char k。ic。故啟動 A/D 轉(zhuǎn)換只需如下兩條指令: MOV DPTR, 00H MOVX DPTR, A A中為何內(nèi)容是不重要的,這是一次虛擬寫。實驗用的 ADC0809 屬于第二類,是八位 A/D轉(zhuǎn)換器。 二.實 驗?zāi)康模? A/D 轉(zhuǎn)換與單片機的接口方法。 //產(chǎn)生矩形方波 DelayXms( 10)。i++) for(j=0。 //typedef 定義 可以在程序中用 BYTE 代替 unsigned char sbit PAA=P1^0。 二 . 實驗?zāi)康? 掌握采用單片機控制直流電動機的硬件接口技術(shù)。 //延時 } } } void delay(unsigned int tmp)//延時子函數(shù) ,參數(shù)范圍 065536 {unsigned char j。也可兩位同時輸出顯示 for(i=0。 //定義數(shù)碼管陽級控制腳,第二個為 P1口的 1 void delay(unsigned int d_time)。 DAT=0。 /*MOV ,C*/ CLK=0。 /*MOV A,DATA_IN*/ AA=_crol_(AA,1)。 / *SETB DAT*/ LONG_DELAY()。 /*計數(shù)初值為 4*/ DELAY_LOOP1:TIMER。 /*計數(shù)初值 25*/ DELAY_LOOP:TIMER。/*位數(shù)自 減一 */ if(BIT_COUNT0)/*判斷位數(shù)是不是 0*/ goto SEND_LOOP
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1