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

正文內(nèi)容

畢業(yè)論文-基于at89c51單片機(jī)的電子計算器設(shè)計-文庫吧在線文庫

2024-12-30 18:47上一頁面

下一頁面
  

【正文】 void lcd_setxy(uchar x,uchar y)。 sbit LCDRW = P2^6。 lcdwrite_(0x38)。// 顯示第 4位小數(shù) if((nxtemp%1000000%100000%10000%1000%100/10!=0)||(nxtemp%1000000%100000%10000%1000/100!=0)) lcdwrite_data(nxtemp%1000000%100000%10000%1000/100+0x30)。)。)。 uint j=0。 nx/=10。 } if(n0) 四川師范大學(xué)成都學(xué)院??飘厴I(yè)設(shè)計 42 { lcdwrite_data(39。//1 在第二行 lcdwrite_(address)。 LCDEN=1。 LCDEN=0。 delayms(100)。 } while(keypow==0)。 break。 case 0xd7:num=39。0xf0。39。 while(temp!=0xf0) { temp=P1。 //等待松手 } } } P1=0xfb。 case 0xbd:num=6。 temp=P1。 } 四川師范大學(xué)成都學(xué)院??飘厴I(yè)設(shè)計 36 while(temp!=0xf0) //等待松手 { temp=P1。 break。 temp=tempamp。 四川師范大學(xué)成都學(xué)院??飘厴I(yè)設(shè)計 35 delayms(100)。 num=39。 delayms(100)。)。i++) num2[i]=0。 //顯示結(jié)果 sqrtflag1=0,newcalc=1。 if((ans2==0amp。 if(sign==39。+39。j) point*=。.39。^39。+39。j++,i++,keynum2) point=point*10+num2[i]。.39。 beep=1。 } } else if(num==39。)) // 記 四川師范大學(xué)成都學(xué)院專科畢業(yè)設(shè)計 30 錄按下的數(shù)字 { if(keynum2=7) { if(num==39。 } if((keyscan()!=39。 delayms(10)。//清除開方標(biāo)志 if(keysqrt==0) //計算 開方 { delayms(5)。keynum10。i++) //計算按下的數(shù)字的大小 { if(num1[i]!=39。 if(sqrtflag2!=1amp。||keysqrt==0) { if(keynum1==0amp。||num==39。)。.39。//初始化 while(1) //整個系統(tǒng)大循環(huán),讓計算器一直處于工作狀態(tài) { while(1) //第一運(yùn)算數(shù)掃描 四川師范大學(xué)成都學(xué)院專科畢業(yè)設(shè)計 27 { if(ac==1) break。 //開方 2標(biāo)志位 bit powflag=0。 //按鍵計數(shù),符號標(biāo)示 uchar num1[8]={0},num2[8]={0}。在設(shè)計的過程中的思考解決問題的思路和方法對以后的工作和生活都是非常有幫助的。下面將進(jìn)行多次測試,以檢驗(yàn)計算器的性能指標(biāo)。這類錯誤包括錯線、開路、短路等。 ac=1。039。其程序流程圖如下圖所示: 四川師范大學(xué)成都學(xué)院??飘厴I(yè)設(shè)計 9 圖 31顯示程序流程圖 其程序位于后面附錄 鍵掃程序設(shè)計 由于矩陣鍵盤采用 4 行 4 列的結(jié)構(gòu),每一行每一列各對應(yīng)一個 I/O 口,故程序應(yīng)該逐行查詢,一旦查詢到有某一行的按鍵被按下了,則根據(jù) 讀取到的 I/O 總線口的數(shù)據(jù)即可查詢到是哪一列的按鍵被按下了,最后對應(yīng)行列返回一個按鍵值回主函數(shù)。使用 Atmel 公司高密度非易失性存儲器技術(shù)制造,與工業(yè)80C51 產(chǎn)品指令和引腳完全兼容。 1602LCD 液晶具有 功耗低、顯示內(nèi)容豐富、清晰,顯示信息量大,顯示速度較快,界面友好等而得到廣泛應(yīng)用,因此使用 1602液晶顯示屏,可以方便的顯示多種字符,特別適用于單片機(jī)計算器的雙行顯示。 。計算器是能進(jìn)行數(shù)學(xué)運(yùn)算的手持機(jī)器,擁有集成電路芯片,結(jié)構(gòu)簡單,功能較弱,但由于它使用方便、操作簡單、價格低廉,因而廣泛運(yùn)用于商業(yè)交易中,也是必備的 辦公用品之一。鍵盤是計算器的輸入部件,一般采用接觸式或傳感式。 此外 ,現(xiàn)在的產(chǎn)品普遍要求體積小、重量輕 ,這就要求單片機(jī)除了功能強(qiáng)和功耗低外 ,還要求其體積要小。隨著低價位 OTP(One Time Programble)及各種特殊類型片內(nèi)程序存儲器的發(fā)展 ,加之處圍接口不斷進(jìn)入片內(nèi) ,推動了單片機(jī) “ 單片 ” 應(yīng)用結(jié)構(gòu)的發(fā)展。為了適應(yīng)這種領(lǐng)域的要求 ,須運(yùn)用新的工藝 ,使片內(nèi)存儲器大容量化。計算器在人們的日常中是比較的常見的電子產(chǎn)品之一。 近年來隨著科技的飛速發(fā)展,單片機(jī)的應(yīng)用正在不斷深入,同時帶動傳統(tǒng)控制檢測技術(shù)日益更新。 關(guān)鍵詞 : 計算器 單片機(jī) LCD 矩陣鍵盤 四川師范大學(xué)成都學(xué)院專科畢業(yè)設(shè) 計 II Calculator design based on single chip microputer Abstract:Calculator generally refers to the electronic calculator, and the term is introduced to China by the Japanese. The calculator with the IC chip, simple structure, and weak function is able to perform mathematical operations on handheld machine. But it is easy using, simple operation and low price. So it is widely used in mercial transactions, and is also an essential office supplies. With the rapid development of science and technology in recent years, the application of SCM is the deepening and promote the traditional controlling detection technologies that are increasingly updated. In realtime detection and automatic control of microputer application system, the microcontroller is often used as a core ponent to use, but only the knowledge of the microcontroller is not enough, and should be based on the specific hardware architecture, hardware and software bination to make it perfect. So the application of SCM is more and more close to life, so using of single chip to achieve some electronic designs also bee easy. In the people daily life the calculator is one of the mon electronic products. But it is still in development, it will bee more powerful calculator in the future. According to such idea, the design is that SCM design calculator. The design system is based on AT89C51 microcontroller, P0 port as input, external 4X4 keyboard. In P1, P2mouth is connected with the drive circuit to ensure the normal work of LED. The calculator will plete add, subtract, multiply, divide and other function. KEYWORDS: calculator MCU LCD Matrix keyboard 四川師范大學(xué)成都學(xué)院??飘厴I(yè)設(shè)計 III 目 錄 第 1 章 緒論 ............................................................ 1 研究背景 ........................................................ 1 設(shè)計概要 ........................................................ 3 設(shè)計思路 ........................................................ 3 第 2 章 硬件設(shè)計 ........................................................ 4 鍵盤輸入模塊設(shè)計 ................................................ 4 LCD 顯示模塊設(shè)計 ................................................ 5 清零、音樂開關(guān)、開方和多次方運(yùn)算功能模塊設(shè)計 .................... 6 電源模塊設(shè)計 .................................................... 6 主控模塊設(shè)計 .................................................... 7 第 3 章 軟件設(shè)計 ........................................................ 8 顯示程序設(shè)計 .................................................... 8 鍵掃程序設(shè)計 .................................................... 9 清零程序設(shè)計 ................................................... 10 聲音開關(guān)程序設(shè)計 ............................................... 11 總體設(shè)計 ....................................................... 12 第 4 章 系統(tǒng)仿真及原理圖 ............................................... 14 Proteus 仿真 ................................................... 14 Protel 原理圖 .................................................. 19 第 5 章 系統(tǒng)調(diào)試 ....................................................... 19 問題與分析 ..................................................... 19 系統(tǒng)演示 ....................................................... 20 第 6 章 總結(jié)與展望 ..................................................... 22 總結(jié) ........................................................... 22 展望 ........................................................
點(diǎn)擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1