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

正文內(nèi)容

數(shù)字頻率計的設(shè)計電子系統(tǒng)設(shè)計綜合實驗設(shè)計報告(編輯修改稿)

2025-08-17 17:35 本頁面
 

【文章內(nèi)容簡介】 時鐘線拉高define PSB_0 P2OUT amp。= ~BIT3 //出行輸入define LCD_DIR_OUT P2DIR |= BIT0 + BIT1 + BIT2 + BIT3 //4個端口設(shè)置為輸出/********************************************************************* 名稱 : SendByte* 功能 : 發(fā)送數(shù)據(jù)* 輸入 : Dbyte* 輸出 : 無***********************************************************************/void SendByte(uchar Dbyte){ uchar i。 LCD_DIR_OUT。 for(i = 0。i 8。i++) { if((Dbyte i) amp。 0x80) { SID_1。 } else { SID_0。 } SCLK_0。 _delay_cycles(2)。 SCLK_1。 }}/********************************************************************* 名稱 : Write_Instruction* 功能 : 向LCD寫指令* 輸入 : data* 輸出 : 無***********************************************************************/void Write_Instruction(uchar data){ LCD_DIR_OUT。 CS_1。 SendByte(0xf8)。 SendByte(data amp。 0xf0)。 SendByte((data 4) amp。 0xf0)。 _delay_cycles(20)。}/********************************************************************* 名稱 : Write_Data* 功能 :向LCD寫入數(shù)據(jù)* 輸入 : data* 輸出 : 無***********************************************************************/void Write_Data(uchar data){ LCD_DIR_OUT。 CS_1。 SendByte(0xfa)。 SendByte(data amp。 0xf0)。 SendByte((data 4) amp。 0xf0)。 _delay_cycles(20)。}/********************************************************************* 名稱 : LCD12864_Delay()* 功能 : 初始化LCD12864* 輸入 : 無* 輸出 : 無***********************************************************************/void LCD_Init(){ LCD_DIR_OUT。 //設(shè)置輸入方向為輸出 PSB_0。 //LCD為串行輸入方式 Write_Instruction(0x30)。 //基本指令集 _delay_cycles(10000)。 Write_Instruction(0x02)。 //地址歸位 _delay_cycles(10000)。 Write_Instruction(0x0c)。 //整體顯示打開,游標(biāo)關(guān)閉 _delay_cycles(10000)。 Write_Instruction(0x01)。 //清除顯示 _delay_cycles(10000)。 Write_Instruction(0x06)。 //游標(biāo)右移 _delay_cycles(10000)。 Write_Instruction(0x80)。 //設(shè)定顯示的起始地址 _delay_cycles(10000)。}/********************************************************************* 名稱 : Write_Pos* 功能 : 確定輸入數(shù)據(jù)的位置* 輸入 : x,y* 輸出 : 無***********************************************************************/void Write_Pos(uchar x,uchar y){ uchar pos。 if(x == 1) //第一行顯示 x = 0x80。 else if(x == 2) //第二行顯示 x = 0x90。 else if(x == 3) //第三行顯示 x = 0x88。 else if(x == 4) //第四行顯示 x = 0x98。 pos = x + y1。 Write_Instruction(pos)。//顯示地址}/*************************************************************
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1