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

正文內(nèi)容

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

2024-09-01 19:59本頁面
  

【正文】 } } 系統(tǒng)原理圖 VCC21X12X23GND4RST5I/O6SCLK7VCC18U3DS1302GNDVCCGND3I/O2VCC1U4DS18B201KR11 2Y1XTAL100pFC2100pFC1GND GNDGNDVCC1KRD11KRD21KRD3BT13VGNDGNDVCC1K1GNDRSWRLCDENVCCGNDRSWRD0D0D1D2D3D4D5D6D7D1D2D3D4D5D6D7GNDVCCVCCLCDEN100pFC4100pFC512Y2XTALGNDX1X2X1X2REST100pF1K1 16R2AS1VCCRESTVCCbus[0..7]100pFC318B2018B20P10/T0P11/T1P122P133P144P155P166P177P0032P0133P0234P0335P0436P0537P0638P0739P2021P2122P2223P2324P2425P2526P2627P2728PSEN29ALE/P30()RXD10()TXD11INT0()12INT1()13T0()14T1()15X118X219EA/VP31REST9WR()16RD()17GND20VCC40AT89C52U0AT89C52GND1+5V2V COM3RS(CS)4R/W(SID)5E(SCLK)6D07D18D29D310D411D512D613D714PSB15NC16RST17V OUT18BLA+19BLA2012864液晶U212864 。 write_data(0xe3)。 write_(0x8e)。 write_data(0xe3)。 write_(0x9e)。//兩行顯示溫度符號 write_data(0xe3)。 delay_1ms(10)。 delay_1ms(10)。 delay_1ms(10)。 delay_1ms(10)。 delay_ms(1)。 delay_ms(1)。 delay_ms(1)。 write_data(xiegang[0])。 write_data(mun_to_char[time_data_buff[1]%0x10])。 write_data(mun_to_char[time_data_buff[1]/0x10])。 delay_ms(1)。 delay_ms(1)。 } //以下顯示時間 write_(0x83)。 delay_1ms(200)。 delay_1ms(10)。 while(1) { Get1302(time_data_buff)。 init()。 WELA=0。 WELA=1。 P0=0XFF。 uchar du[]={c}。 uchar shuzi[]={0123456789}。/*格式為 : 秒 分 時 日 月 星期 年 */ sbit WELA=P2^7。 uchar code mun_to_char[] = {0123456789abcdef}。 void Get1302(uchar ucCurtime[])。 uchar R1302(uchar ucAddr)。 uchar RTOutputByte(void)。 sbit ACC7 = ACC^7。 /*實時時鐘數(shù)據(jù)線引腳 */ sbit T_RST = P3^3。 } ifndef __DS1302_H__ define __DS1302_H__ include include define nop() _nop_() sbit T_CLK = P3^2。/*格式為 : 秒 分 時 日 月 星期 年 */ ucAddr += 2。 i3。 EA = 0。當(dāng)前時間格式為 : 秒 分 時 日 月 星期 年 7Byte (BCD 碼 ) 1B 1B 1B 1B 1B 1B 1B 返 回 值:無 設(shè) 計: zhaojunjie 日 期: 20200319 修 改: 日 期: ***********************************************************************/ void Get1302(uchar ucCurtime[]) { uchar i。 /* 控制命令 ,WP=1,寫保護 ?*/ EA = 1。 ucAddr +=2。 i) { W1302(ucAddr,*pClock)。 /* 控制命令 ,WP=0,寫操作 ?*/ for(i =3。 EA = 0。 } /******************************************************************** 函 數(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。 T_RST = 0。 /* 地址,命令 */ ucData = RTOutputByte()。 T_RST = 1。 T_RST = 0。 T_RST = 0。 /* 地址,命令 */ RTInputByte(ucDa)。 T_RST = 1。 } /******************************************************
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1