【正文】
ppliances fields, As one of the main branch of microputer, microcontroller in the structure of the biggest feature is the CPU, RAM and ROM memory, timer and multiple I / O interface circuit integrated on a VLSI chip. The position and function from its point of view, a single chip is actually a puter. This design is the use of MSC51 microcontroller to design the fourdigit calculator, using C programming language to achieve calculator functions. 4X4 external keyboard, the keyboard scan to finish by the number of control values and make the drive circuit to the cathode results in a total of sevensegment digital tube display properly, and has cleared at any time to plete key calculation and display clear. Calculator to plete an integer from 0 to 9999 plus / minus / multiply / divide. Implementation of the process is as follows: Power is displayed 0, waiting type value, when the input numbers, will e out through the digital display, the input +,,*,/ operator, the calculator in the internal implementation of the numerical conversion and storage, and wait for the reenter the value, when Type the value in the type of value will be displayed by an equal sign will be displayed in the digital control operation results. Key words: SCM calculator keyboard scan C language。 計算器是能進行數(shù)字運算的手持的機器,擁有電子集成芯片,結(jié)構(gòu)簡單,功能較弱,但由于它使用方便,價格低廉,因而廣泛使用商業(yè)交易中,也是必備的辦公用品之一。 隨著科學(xué)技 術(shù)的不斷發(fā)展及計算器使用的普及,人們發(fā)現(xiàn)在工業(yè)控制中,有很多時候需要在惡劣的環(huán)境中進行各種數(shù)據(jù)的采集,運算和控制。并將結(jié)果在 LCD1602上顯示出來。 選題意義及現(xiàn)狀 設(shè)計概要 設(shè)計任務(wù) 系統(tǒng)總體的模塊圖 第二章 硬件設(shè)計 LCD 顯示 模塊的設(shè)計 電源模塊的 設(shè)計 顯示模塊的程序設(shè)計 系統(tǒng)的總框圖 結(jié)束語 致謝 附錄一 實物圖 總結(jié) 參考文獻 第一章緒論 研究背景 隨著社會的發(fā)展,科學(xué)的進步,人們生活逐漸提高,尤其是微電子技術(shù)的發(fā) 展,猶如雨后春筍般的發(fā)展變化,電子產(chǎn)品的更新速度就不足驚奇了,計算器在人們的生活中是比較常見的電子產(chǎn)品之一 ,如何讓計算器技術(shù)更加成熟,充分利用 己有的軟件和硬件條件,來設(shè)計出更出色的計算器,使其能夠為各個行業(yè)服