【正文】
接;3. 在Keil C環(huán)境下,進(jìn)行軟件設(shè)計(jì)。主要包括流水燈、計(jì)數(shù)器、定時(shí)器、LCD字符顯示、鍵盤(pán)的控制等功能程序設(shè)計(jì);4. 針對(duì)所開(kāi)發(fā)的實(shí)驗(yàn)板,結(jié)合器件選擇、原理圖設(shè)計(jì)、硬件焊接、軟件編程調(diào)試、軟硬件聯(lián)調(diào)等方面寫(xiě)出課程設(shè)計(jì)報(bào)告。 指導(dǎo)教師: 舒云星、李傳鋒 2012年 12 月 20 日課 程 設(shè) 計(jì) 評(píng) 語(yǔ) 成績(jī): 指導(dǎo)教師:_______________ 年 月 日基于51系列單片機(jī)的實(shí)驗(yàn)平臺(tái)開(kāi)發(fā)設(shè)計(jì)摘 要由于單片機(jī)技術(shù)在各個(gè)領(lǐng)域正得到越來(lái)越廣泛的應(yīng)用,許多集成電路生產(chǎn)廠(chǎng)家相繼推出了各種類(lèi)型的單片機(jī),在單片機(jī)家族的眾多成員中,MCS51系列單片機(jī)以其優(yōu)越的性能、成熟的技術(shù)及高可靠性和高性能價(jià)格比,迅速占領(lǐng)了市場(chǎng),成為國(guó)內(nèi)單片機(jī)應(yīng)用領(lǐng)域中的主流。STC51系列單片機(jī)開(kāi)發(fā)板是一款功能強(qiáng)大、集成度高、可擴(kuò)展性強(qiáng)具有成本低、體積小、可靠性高、功能齊全、低功耗設(shè)計(jì)、操作方便等特點(diǎn)的單片機(jī)實(shí)驗(yàn)開(kāi)發(fā)系統(tǒng),并且擺脫了傳統(tǒng)單片機(jī)開(kāi)發(fā)套件繁瑣的方式本課題設(shè)計(jì)采用了STC89C52型號(hào)的單片機(jī)設(shè)計(jì)一款單片機(jī)實(shí)驗(yàn)開(kāi)發(fā)系統(tǒng),并利用Keil軟件建立工程文件,編寫(xiě)簡(jiǎn)單的程序(比如LCD顯示器、數(shù)碼管和流水燈的程序)進(jìn)行仿真、下載驗(yàn)證,對(duì)我們?cè)跁?shū)本上學(xué)到的只是進(jìn)行驗(yàn)證,關(guān)鍵詞: STC單片機(jī),Keil軟件,數(shù)碼管,流水燈51 series microcontroller prehensive experimental board development designABSTRACTAs the single chip microputer technic is used wider and wider in all areas, many manufactures of integrated circuit have developed all kind of single chip microputer one after another. Among the many member of single chip manufactures family, the MCS51series of single chip microputer has quickly gained the market share and bee the main stream in the national application area of single chip microputer with their exclllent performance, mature thenic, high reliability and high performance. At present, there are more and more products that can be used to develop MCS51 series single chip microputer, and the development systems and softwares matched to them are improved day by day. Therefore, we can conveniently use available resources to develop all linds of application system used for different aims.STC51 Series MCU development board is a powerful, high integration, scalability, strong low cost, small size, high reliability, fullfeatured, lowpower design, easy to operate and features microcontroller experimental development system and get rid of umberome way of a traditional microcontroller development kitDesign of this project with a STC89C52 models of singlechip design a singlechip experiment development system, and the establishment of the project file, using the Keil software write simple programs (such as LCD monitors, digital tubes and light water program) simulation download validation of ourbooks to school to verifyKEYWORDS: STC microcontroller, Keil, Digital tube, light water 目 錄前 言 1第1章 系統(tǒng)概述 2 設(shè)計(jì)題目 2 系統(tǒng)設(shè)計(jì)目的和內(nèi)容 2 設(shè)計(jì)目的 2 設(shè)計(jì)內(nèi)容 2 設(shè)計(jì)要求 2 設(shè)計(jì)步驟 2第2章 整體設(shè)計(jì)方案 3 開(kāi)發(fā)板整體外觀(guān) 3 整板電路Proteus仿真電路 3 軟件功能描述 4 仿真軟件Proteus中的效果圖 5第3章 硬件電路設(shè)計(jì) 6 6 數(shù)碼管概述 6 數(shù)碼管內(nèi)部結(jié)構(gòu) 6 兩位一體共陰數(shù)碼管和74LS374鎖存器接口電路 7 LCD1602液晶 7 LCD1602液晶簡(jiǎn)介 7 LCD1602液晶引腳介紹 8 LCD1602液晶外圍接口電路 8 串口通信 9 串口通訊概述 9 MAX232接口電路 9第4章 軟件設(shè)計(jì) 10 10 10第5章 調(diào)試及故障分析 15 焊接準(zhǔn)備階段元器件測(cè)試、電路原理圖故障分析 15 電路焊接過(guò)程中的故障分析 18 程序編寫(xiě)過(guò)程中的故障分析 18 實(shí)物演示效果 19結(jié)論 20謝辭 21參考文獻(xiàn) 22III前 言單片機(jī)是一種在線(xiàn)式實(shí)時(shí)控制計(jì)算機(jī),在線(xiàn)式就是現(xiàn)場(chǎng)控制,需要的是有較強(qiáng)的抗干擾能力,較低的成本,這也是和離線(xiàn)式計(jì)算機(jī)的(比如家用PC)的主要區(qū)別,片機(jī)是靠程序的,并且可以修改。片機(jī)控制系統(tǒng)正以空前的速度取代著經(jīng)典電子控制系統(tǒng),單片機(jī)的應(yīng)用開(kāi)發(fā)技術(shù)已成為大學(xué)生的必備技能。單片機(jī)學(xué)習(xí)效果的優(yōu)劣直接取決于單片機(jī)的選擇,傳統(tǒng)的C51系列單片機(jī)內(nèi)部具有128字節(jié)RAM、5個(gè)中斷源、32條I/O口線(xiàn)、2個(gè)16位定時(shí)器、4KB的程序存儲(chǔ)器、一個(gè)全雙工異步串行口。除了單片機(jī),這次課程設(shè)計(jì)還要進(jìn)行