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

正文內容

基于單片機的單總線多點的溫度控制論文(編輯修改稿)

2024-07-16 12:52 本頁面
 

【文章內容簡介】 _RS=0。 //指令寄存器通信 LCD_RW=0。 //write data LCD_DATA=1。 //D0=1,清屏 LCD_EN=1。 LCD_EN=0。 }void LCD_write_instruction(unsigned char LCD_instruction) //寫指令到LCD{ LCD_check_busy()。 LCD_RS=0。 LCD_RW=0。 LCD_DATA=LCD_instruction。 LCD_EN=1。 LCD_EN=0。 }void LCD_write_data(unsigned char LCD_data) //輸出一個字節(jié)數(shù)據(jù)到LCD{ LCD_check_busy()。 LCD_RS=1。 //數(shù)據(jù)寄存器通信 LCD_RW=0。 LCD_DATA=LCD_data。 LCD_EN=1。 LCD_EN=0。 } void LCD_set_position(unsigned char x) //LCD光標定位到x處{LCD_write_instruction(0x80+x)。 //0x00~0x27:第一行。0x40~0x67:第二行}void LCD_printc(unsigned char lcd_data) //輸出一個字符到LCD{ LCD_write_data(lcd_data)。}void LCD_prints(unsigned char *lcd_string) //輸出一個字符串到LCD{ unsigned char i=0。 while(lcd_string[i]!=0x00) //0x00:字符串結束符 { LCD_write_data(lcd_string[i])。 i++。 } }void LCD_initial(void) //初始化LCD{ LCD_write_instruction(0x3c)。//D7~D5=001:FUNCTION SET:8bit,2line,5*10dot LCD_write_instruction(0x0c)。//D7~D3=00001:ON/OFF:turn on display,no cursor, LCD_write_instruction(0x06)。//D7~D3=000001:ENTRY MODE:,no shift LCD_cls()。}//*************************LCD模塊結束//*************************includeinclude//0809各控制線sbit DOT=P1^7。sbit ST=P3^0。 sbit OE=P3^1。 sbit EOC=P3^2。//按鍵 sbit add=P3^7。sbit sub=P2^5。sbit set=P2^6。sbit enter=P2^7。//制冷/熱開關sbit cold=P2^3。sbit hot=P2^4。unsigned char b[6]={0,0,0,0,0,0}。//放現(xiàn)場溫度和設置溫度顯示碼 unsigned char channel=0xbc。 //1011 1100,ABC=110選擇第三通道同時使ST=0,OE=0輸出數(shù)據(jù)線呈高阻狀態(tài),EOC=1。unsigned int getdata,flag,count。//getdata:ad采樣值;flag:溫度符號;count:中斷計數(shù)器 long int value。//ad數(shù)據(jù)轉換值(電壓
點擊復制文檔內容
研究報告相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1