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

正文內(nèi)容

基于51單片機(jī)的多功能時(shí)鐘-文庫(kù)吧資料

2025-06-30 02:15本頁(yè)面
  

【正文】 ead_rtc_code[2]%10)|0x30)。 setadd(1,0)。 WriteData((read_rtc_code[4]/10)|0x30)。39。 WriteData((read_rtc_code[5]%10)|0x30)。)。 WriteData(39。//second WriteData((read_rtc_code[6]/10)|0x30)。break。break。break。break。break。break。break。 //放大10倍輸出并四舍五入return(tt)。t=t|a。t=b。 //讀取溫度寄存器等(共可讀9個(gè)寄存器) 前兩個(gè)就是溫度a=ReadOneChar()。WriteOneChar(0xCC)。 // 跳過(guò)讀序號(hào)列號(hào)的操作WriteOneChar(0x44)。Init_DS18B20()。unsigned int t=0。}//讀取溫度ReadTemperature(void){unsigned char a=0。 dat=1。 delay_1820(5)。 DQ = datamp。 i0。}//寫一個(gè)字節(jié)WriteOneChar(unsigned char dat){ unsigned char i=0。 delay_1820(4)。 DQ = 1。i) { DQ = 0。for (i=8。}//讀一個(gè)字節(jié)ReadOneChar(void){unsigned char i=0。 x=DQ。 //精確延時(shí) 大于 480us DQ = 1。 //稍做延時(shí) DQ = 0。 DQ = 1。 //定義通信端口//延時(shí)函數(shù)void delay_1820(unsigned char i){ while(i)。 col++ 。 WriteData(*puts) 。 WriteData(*puts) 。 } if(row==4) row=0 。) //判斷字符串是否顯示完畢 { if(col==8) //判斷換行 { //若不判斷,則自動(dòng)從第一行到第三行 col=0 。 //起始位置 while(*puts != 39。 }}void PutStr(unsigned char row,unsigned char col,unsigned char *puts){ WriteCommand(0x30) 。) //判斷字符串是否顯示完畢 { WriteData(*puts) 。 while((*puts) != 39。 puts++ 。\039。 //8BitMCU,基本指令集合 WriteCommand(AC_TABLE[8*row+col]) 。}void setadd(unsigned char row,unsigned char col){ WriteCommand(AC_TABLE[8*row+col]) 。i64 。 //8BitMCU,功能設(shè)定,基本指令集合 WriteCommand(0x80) 。}//文本區(qū)清RAM函數(shù)void LcmClearTXT( void ){ unsigned char i 。 39。i16。 //寫入時(shí),游標(biāo)右移動(dòng)}void lcd_clear_one(void){unsigned char i。 //顯示ON,游標(biāo)OFF,游標(biāo)位反白OFF WriteCommand(0x01) 。 //8BitMCU,基本指令集合 WriteCommand(0x03) 。 } MS 。} 。 while(usn!=0) { us=0xf5 。}*/void Delay(unsigned int MS){ unsigned char us,usn 。 SendByte(0xfe) 。) CS = 0 。Dbyte4) 。Dbyte) 。 SendByte(0xfa) 。}void WriteData( unsigned char Dbyte ){ CS = 1 。//低四位(先執(zhí)行 。 //高四位 SendByte(0xf0amp。 //11111,RW(0),RS(0),0 SendByte(0xf0amp。 CheckBusy() 。ReceiveByte()) 。}void CheckBusy( void ){ do SendByte(0xfc) 。x)+(0x0famp。 if(SID) y++ 。 SCK = 1 。n++) { y=y1 。 } for(n=0 。 SCK = 0 。 SCK = 0 。n8 。 x=y=0 。 SCK = 0 。 //左移一位 SID = CY 。i++) { SCK = 0 。 for(i=0 。 }} /******************************** DS1307 PART STOP ****************//******************** LCD PART START *******************************/ unsigned char code AC_TABLE[]={0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87, //第一行漢字位置0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97, //第二行漢字位置0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f, //第三行漢字位置0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f, //第四行漢字位置} 。i++) { Write1307(*p,set_rtc_code[i])。 for(i=0。 }}/***********************************************************************/void Set_RTC(void){ unsigned char i,*p。i++) { read_rtc_code[i]=Read1307(*p)。 for(i=0。}/***********************************************************************/void Read_RTC(void){ unsigned char i,*p。 dat=dat+temp*10。 temp=dat/16。 I2C_send_ack(1)。 I2C_send_ack(0)。 I2C_start()。 I2C_send_ack(1)。 I2C_send_ack(0)。 I2C_start()。 return (0)。 I2C_send_ack(1)。 I2C_send_ack(0)。 I2C_send_ack(0)。 I2C_start()。 temp=4。 }/******************************** DS1307 PART START ****************/unsigned char Write1307(unsigned char add,dat){ unsigned char temp。 } SCLK=0。 I2C_delay()。 I2C_delay()。 I2C_delay()。i8。 }/***********************************************************************/unsigned char I2C_read_byte(void){ unsigned char i,dat。 I2C_delay()。 I2C_delay()。0x80)。 I2C_delay()。i8。}/***********************************************************************/void I2C_write_byte(unsigned char dat){ unsigned char i。 I2C_delay()。 I2C_delay()。 _nop_()。 _nop_()。 _nop_()。 _nop_()。 _nop_()。 _nop_()。 _nop_()。 _nop_()。_nop_()。_nop_()。unsigned char i=0。unsigned char ntime[2]={0,0}。code unsigned char rtc_address[7]={0x00,0x01,0x02,0x03,0x04,0x05,0x06}。//set RTCunsigned char set_rtc_code[7]={0,0,10,2,6,6,6}。//read information from ds1307void Read_RTC(void)。//RTC display function/***********************************************************************/unsigned char Write1307(unsigned char add,dat)。/**********************************************//***********************************************************************/void Initial(void)。WriteOneChar(unsigned char dat)。Init_DS18B20(void)。//I2C bus write byte function unsigned char I2C_read_byte(void)。//I2C stop functionvoid I2C_send_ack(bit k)。//I2C delay function void I2C_start(void)。//void naozhong(void)。 void set_onoff(void)。 void set_nhour(void)。void set_minute(void)。 void set_day(void)。/***********************************************************************/void set_year(void)。void writeword(unsigned char row,unsigned char col,unsigned char * puts)。void LcmClearTXT( void )。void Delay(unsigned int MS)。void WriteData( unsigned char Dbyte )。void CheckBusy( void )。void SendByte(unsigned char Dbyte)。void key_ctrl(void)。void lcd_clear_one(void)。 //分別保存秒、分、時(shí)、天、月、年的變量/***********************************************************************/void refresh(void)。volatile unsigned char year。=~(13)define bell_off P2|=(13)volatile unsigned char menu_status=0,key_t
點(diǎn)擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1