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

正文內(nèi)容

基于at89c51單片機的多功能電子萬年歷的設計的畢業(yè)論文-資料下載頁

2025-06-27 17:47本頁面
  

【正文】 }void LCD_WriteData(unsiqned char Data){char temp~LCD_Busy();LCD_DIR_PORT=0xFF。temp=LCD_OP_PORT。temp=tempamp。BIT3;LCD_OP_PORT=(Data&0xf0)| temp。 lcd_clear_rw(); //Set LCD to write lcd_set_rs();lcd_set_e();asm(”nop”);asm(”nop”)。lcd_clear_e();LCD_OP_PORT=(Data4)|temp。lcd_clear_rw();lcd_set_rs();lcd_set_e();asm(”nop”);asm(”nop”);lcd_clear_e();}//*********************************////***初始化液晶***////*********************************//void Init_LCD(void){LCD_INIT()。LCD_WriteControl(LCD_FUNCTION_SET);LCD_WriteControl(LCD_OFF);LCD_WriteControl(LCD_CLEAR);LCD_WriteControl(LCD_MODE_SET);LCD_WriteControl(LCD_ON);LCD_WrlteControl(LCD_HOME);//LCD_WriteControl(0x90);}//************************************************/// /***清屏 ***////************************************************//void LCD_Clear(void){LCD_WriteControl(0x01);}//***********************************************////***移動光標到0行0列***////***********************************************//void LCD_Home(void){LCD_WriteControl(0x02); }//**********************************************////***顯示字符,在當前光標處***////***********************************************//void LCD_DisplayCharacter(char Char){LCD_WriteData(Char);}//***********************************************////***在Flash中、在指定的行和列顯示一個字符串***////***********************************************//void LCD_DisplayString_F(char rOW,char column,unsigned char__flash*string){LCD_Cursor(row,column);while(*string)}LCD_DisplayCharacter(*string++);}}//***********************************************////***在RAM中、在指定的行和列顯示一個字符串***////***********************************************//void LCD_DisplayString(char row,char column,unsigned char*string){LCD_Cursor(row,column);while(*string)LCD_DisplayCharacter(*string++);}//***********************************************////***定位行和列的光標***////***********************************************//void LCD_Cursor(char row,char column){switch (row) {case 1:LCD_WriteControl(0x80+column一1);break;case 2:LCD_WriteControl(0xc0+column一1);break。case 3:LCD_WriteControl(0x94+column—1);break。case 4:LCD_WriteControl(0xd4+column—1);break。default:break;}}//**************************////***打開光標***////**************************//void LCD_Cursor_On(void){LCD_WriteControl(LCD_CURS_ON);}//***************************////***關(guān)閉光標***////***************************//void LCD_Cursor_Off(void){LCD_WriteControl(LCD_ON);//********************////***關(guān)閉LCD***////*************殺******//void LCD_Display_Off(void){LCD_WriteControl(LCD_OFF);} //*******************////***打開LCD***////******************//void LCD_Display_On(void){LCD_WriteControl(LCD_ON);}MAIN.Cinclude”includes.h”define WDR() asm(”wdr”)unsigned char alarm _1_set,alarm_2_set,alarm_3_set;__flash unsigned char test[ ]=”DSl302 time is:”;void main(void){ unsigned char hour,min,sec; unsigned char date,month。unsigned char flag;flag=1;PORTB=0x00;DDRB=0x00;DDRD=0x7f;PORTD=0xFF。Init_LCD();LCD_DisplayString(0,1,”Initialize OK!”);delay_nms(500)。 LCD_WriteControl(LCD_CLEAR);WDR();writebyte(w_protect,0x00); //設置時間//writebyte(sec_w,0x09);//writebyte(min_w,0x09);//writebyte(hour_w,0x09)。while(1){ sec =readbyte(sec_r); //讀秒 min =readbyte(min_r); //讀分 hour =readbyte(hour_r); //讀小時 month =readbyte(month_r); date =readbyte(date_r); WDR();LCD_DisplayString_F(1,1,test);if(flag){ LCD_Cursor(2,1); LCD_DisplayCharacter(~+hour/10); LCD_DisplayCharacter(~+hour%lO); LCD_DisplayCharacter(’:,); WDR(); LCD_DisplayCharacter(~+m~/10)} LCD_DisplayCharacter(~+min%10); LCD_DisplayCharacter(39。:’); WDR(); LCD_DisplayCharacter(d~+s~/10); LCD_DisplayCharacter(~+sec%10): LCD_Cursor(2,ii); WDR(); LCD_DisplayCharacter(~Y+month/10); LCD DisplayCharacter(dY+month%10); LCD_DisplayCharacter/0; WDR(); LCD_DisplayCharacter(~+date/10); LCD_DisplayCharacter(~+date%10): WDR(); } }}usart.cdefine USART_Cinclude”includes.h”void usart_putchar(char c){ if(c==飛rr) usart_putchar@f); while(UCSRAamp。(15)); UDR=c:)void init—usart(void){ //USART initialization //Communication Parameters:8 Data,1 Stop。No Parity //USART Receiver:Off //USART Transmitter:On //USART Mode:Asynchronous //USART Baud rate:19200 UCSRA=Ox00; UCSRB=Ox08; UCSRC=0x86; UBRRH=0x00; UBRRL=0x0C;
點擊復制文檔內(nèi)容
職業(yè)教育相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1