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

正文內(nèi)容

基于89c52的數(shù)字溫度傳感器設(shè)計(jì)課程設(shè)計(jì)-文庫(kù)吧資料

2024-09-05 19:59本頁(yè)面
  

【正文】 ************** 函 數(shù) 名: W1302() 功 能:往 DS1302 寫(xiě)入數(shù)據(jù) 說(shuō) 明:先寫(xiě)地址,后寫(xiě)命令 /數(shù)據(jù) (內(nèi)部函數(shù) ) 調(diào) 用: RTInputByte() , RTOutputByte() 入口參數(shù): ucAddr: DS1302 地址 , ucData: 要寫(xiě)的數(shù)據(jù) 返 回 值:無(wú) 設(shè) 計(jì): zhaojunjie 日 期: 20200319 修 改: 日 期: ***********************************************************************/ void W1302(uchar ucAddr, uchar ucDa) { T_RST = 0。 T_CLK = 0。 /*相當(dāng)于匯編中的 RRC */ ACC7 = T_IO。 i0。 } } /******************************************************************** 函 數(shù) 名: RTOutputByte() 功 能:實(shí)時(shí)時(shí)鐘讀取一字節(jié) 說(shuō) 明:從 DS1302 讀取 1Byte 數(shù)據(jù) (內(nèi)部函數(shù) ) 入口參數(shù):無(wú) 返 回 值: ACC 設(shè) 計(jì): zhaojunjie 日 期: 20200319 修 改: 日 期: ***********************************************************************/ uchar RTOutputByte(void) { uchar i。 T_CLK = 0。 i) { T_IO = ACC0。 for(i=8。 endif 時(shí)鐘函數(shù) include include /******************************************************************** 函 數(shù) 名: RTInputByte() 功 能:實(shí)時(shí)時(shí)鐘寫(xiě)入一字節(jié) 說(shuō) 明:往 DS1302 寫(xiě)入 1Byte 數(shù)據(jù) (內(nèi)部函數(shù) ) 入口參數(shù): d 寫(xiě)入的數(shù)據(jù) 返 回 值:無(wú) 設(shè) 計(jì): zhaojunjie 日 期: 20200319 修 改: 日 期: ***********************************************************************/ void RTInputByte(uchar d) { uchar i。 void delayshu(void)。j++) {。i++) { for(j=0。 for(i=0。i++) {。 while(ms) { for(i=0。k++)。 for(k=0。 void lcd_char_write(uchar x_pos,y_pos,lcd_dat)。 void delayus(uchar t)。 void write_data(uchar dat)。 sbit rw=P3^6。 } ifndef __LCD12864_H__ define __LCD12864_H__ include include define lcd_dat_port P0 sbit rs=P3^5。i++) { write_data(hanzi3[i])。 for(i=0。 } write_(0x98)。i16。 delay_ms(1)。i++) { write_data(hanzi1[i])。 for(i=0。 } write_(0x90)。i9。 delay_ms(1)。 delayus(10)。 delayus(240)。 delayus(4)。 delayus(4)。 delayus(4)。 delay_ms(2)。 delayus(2)。 delayus(10)。 delayus(1)。 e=0。 } /***********************************/ void write_data(uchar dat) { rs=1。 e=0。 e=1。 lcd_dat_port=。 rw=0。j)。i) for(j=19。 for(i=t。j)。i) for(j=6245。 for(i=a。 uchar hanzi3[]=低報(bào)警 : 。 uchar hanzi1[]=溫度 : 。 void delay(unsigned int i)。 WriteOneChar(unsigned char dat)。 Init_DS18B20(void)。 return(t)。 tt=t*。 t=8。 b=ReadOneChar()。 WriteOneChar(0xbe)。 Init_DS18B20()。 WriteOneChar(0xcc)。 float tt=0。 unsigned char b=0。 dat=1。 delay(5)。 DQ=datamp。i8。 } /*************************************/ WriteOneChar(unsigned char dat) { unsigned char i=0。 delay(4)。 DQ=1。i++) { DQ=0。 for(i=0。 } /*********************************/ ReadOneChar(void) { unsigned char i=0。 x=DQ。 DQ=1。 DQ=0。 DQ=1。編寫(xiě)模塊化程序,可閱讀性強(qiáng),可移植性高 附錄 程序 及系統(tǒng)原理圖 溫度傳感器子函數(shù) include include void delay(unsigned int i) { while(i)。 主要技術(shù)參數(shù)和顯示特性 : 電源: VDD ~+5V(內(nèi)置升壓電路,無(wú)需負(fù)壓 ); 顯示內(nèi)容: 128 列 64 行 顯示顏色:黃綠 顯示角度: 6: 00鐘直視 LCD類型: STN 與 MCU 接口: 8 位或 4位并行 /3位串行 配置 LED 背光 多種軟件功能: 光標(biāo)顯示、畫(huà)面移位、自定義字符、睡眠模式等 二、外形尺寸 外觀尺寸: 9370 視域尺寸: 7339mm 外形尺寸圖 外形尺寸 模塊引腳說(shuō)明 128X64HZ 引腳說(shuō)明 引腳號(hào) 引腳名稱 方向 功能說(shuō)明 1 VSS 模塊的電源地 2 VDD 模塊的電源正端 3 V0 LCD驅(qū)動(dòng)電壓輸入端 4 RS(CS) H/L 并行的指令 /數(shù)據(jù)選擇信號(hào);串行的片選信號(hào) 5 R/W
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1