【正文】
牛麗婷:單片機(jī)教學(xué)實(shí)驗箱的開發(fā)與研究單片機(jī)教學(xué)實(shí)驗箱的開發(fā)與研究應(yīng)用物理0802 牛麗婷 指導(dǎo)老師 王學(xué)摘要:在本文中,這個仿真實(shí)驗箱的設(shè)計是為了方便8051單片機(jī)的學(xué)習(xí),LED燈的仿真示例是AT89C51的一個很基礎(chǔ)的應(yīng)用,大家通過這個實(shí)驗可以了解Keil μVision編程軟件和Proteus 7 Professional仿真軟件的使用。這里包含了流水燈,用指撥開關(guān)設(shè)置音調(diào),音樂播放,秒表和LCD漢子顯示以及點(diǎn)陣的滾動顯示,電子密碼鎖等很多有趣的實(shí)驗,可以增添初學(xué)者對單片機(jī)的興趣。關(guān)鍵詞:單片機(jī),仿真, AT89C51,實(shí)驗箱Abstract: In this paper, functional based simulator has been designed to facilitate the study of the 8051 microcontroller, The simulation example of LED lamp is a basing application about AT89C51. everyone have some knowledge about the use of Keil μVision programming software and Proteus 7 Professional simulation software. This includes water lights,the switch setting tone, music player, a stopwatch and LCD Chinese characters display and dot matrix rolling display, electronic password lock and many other interesting experiments, can be added to the interest of microcontroller beginners.Keywords: Microprocessor, Simulation, AT89C51, Experimental box前言AT89C51是一種帶4K字節(jié)FLASH存儲器的低電壓、高性能CMOS 8位微處理器,有乘(MUL)、除(DIV)、減(SUBB)、比較(PUSH)、16位數(shù)據(jù)指針、布爾代數(shù)運(yùn)算等指令,以及串行通信能力和5個中斷源,內(nèi)有128個RAM單元及4K的ROM、16位定時計數(shù)器、4個8位并行輸入口[5]。匯編語言 (Assembly Language),也是利用計算機(jī)所有硬件特性并能直接控制硬件的語言,比機(jī)器語言易于讀寫、調(diào)試和修改[11]。仿真實(shí)驗箱包括流水燈、音樂播放、秒表、LCD顯示、LED滾動顯示、電子密碼鎖等應(yīng)用。1 實(shí)例介紹 流水燈 LED燈的仿真示例實(shí)驗要求能對Keil軟件和Proteus軟件有初步的認(rèn)識和了解,學(xué)會使用Keil軟件進(jìn)行簡單的程序編寫和調(diào)試、鏈接,學(xué)會使用Proteus軟件進(jìn)行簡單的實(shí)驗仿真。單片機(jī)仿真實(shí)驗箱要用到Keil軟件和Proteus軟件。下面介紹仿真實(shí)驗的基本步驟[11]。圖1 啟動 Keil μVision后的界面(1)建立源文件和工程打開Keil軟件,出現(xiàn)如圖1所示的界面。單擊File→Ne