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

正文內(nèi)容

基于89c52的數(shù)字溫度傳感器設(shè)計課程設(shè)計(文件)

2024-09-21 19:59 上一頁面

下一頁面
 

【正文】 iegang[0])。 write_data(mun_to_char[time_data_buff[1]/0x10])。 delay_ms(1)。 delay_1ms(200)。 while(1) { Get1302(time_data_buff)。 WELA=0。 P0=0XFF。 uchar shuzi[]={0123456789}。 uchar code mun_to_char[] = {0123456789abcdef}。 uchar R1302(uchar ucAddr)。 sbit ACC7 = ACC^7。 } ifndef __DS1302_H__ define __DS1302_H__ include include define nop() _nop_() sbit T_CLK = P3^2。 i3。當(dāng)前時間格式為 : 秒 分 時 日 月 星期 年 7Byte (BCD 碼 ) 1B 1B 1B 1B 1B 1B 1B 返 回 值:無 設(shè) 計: zhaojunjie 日 期: 20200319 修 改: 日 期: ***********************************************************************/ void Get1302(uchar ucCurtime[]) { uchar i。 ucAddr +=2。 /* 控制命令 ,WP=0,寫操作 ?*/ for(i =3。 } /******************************************************************** 函 數(shù) 名: Set1302() 功 能:設(shè)置初始時間 說 明:先寫地址,后讀命令 /數(shù)據(jù) (寄存器多字節(jié)方式 ) 調(diào) 用: W1302() 入口參數(shù): pClock: 設(shè)置時鐘數(shù)據(jù)地址 格式為 : 秒 分 時 日 月 星期 年 7Byte (BCD 碼 )1B 1B 1B 1B 1B 1B 1B 返 回 值:無 設(shè) 計: zhaojunjie 日 期: 20200319 修 改: 日 期: ***********************************************************************/ void Set1302(uchar *pClock) { uchar i。 /* 地址,命令 */ ucData = RTOutputByte()。 T_RST = 0。 /* 地址,命令 */ RTInputByte(ucDa)。 } /******************************************************************** 函 數(shù) 名: W1302() 功 能:往 DS1302 寫入數(shù)據(jù) 說 明:先寫地址,后寫命令 /數(shù)據(jù) (內(nèi)部函數(shù) ) 調(diào) 用: RTInputByte() , RTOutputByte() 入口參數(shù): ucAddr: DS1302 地址 , ucData: 要寫的數(shù)據(jù) 返 回 值:無 設(shè) 計: zhaojunjie 日 期: 20200319 修 改: 日 期: ***********************************************************************/ void W1302(uchar ucAddr, uchar ucDa) { T_RST = 0。 /*相當(dāng)于匯編中的 RRC */ ACC7 = T_IO。 } } /******************************************************************** 函 數(shù) 名: RTOutputByte() 功 能:實時時鐘讀取一字節(jié) 說 明:從 DS1302 讀取 1Byte 數(shù)據(jù) (內(nèi)部函數(shù) ) 入口參數(shù):無 返 回 值: ACC 設(shè) 計: zhaojunjie 日 期: 20200319 修 改: 日 期: ***********************************************************************/ uchar RTOutputByte(void) { uchar i。 i) { T_IO = ACC0。 endif 時鐘函數(shù) include include /******************************************************************** 函 數(shù) 名: RTInputByte() 功 能:實時時鐘寫入一字節(jié) 說 明:往 DS1302 寫入 1Byte 數(shù)據(jù) (內(nèi)部函數(shù) ) 入口參數(shù): d 寫入的數(shù)據(jù) 返 回 值:無 設(shè) 計: zhaojunjie 日 期: 20200319 修 改: 日 期: ***********************************************************************/ void RTInputByte(uchar d) { uchar i。j++) {。 for(i=0。 while(ms) { for(i=0。 for(k=0。 void delayus(uchar t)。 sbit rw=P3^6。i++) { write_data(hanzi3[i])。 } write_(0x98)。 delay_ms(1)。 for(i=0。i9。 delayus(10)。 delayus(4)。 delayus(4)。 delayus(2)。 delayus(1)。 } /***********************************/ void write_data(uchar dat) { rs=1。 e=1。 rw=0。i) for(j=19。j)。 for(i=a。 uchar hanzi1[]=溫度 : 。 WriteOneChar(unsigned char dat)。 return(t)。 t=8。 WriteOneChar(0xbe)。 WriteOneChar(0xcc)。
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1