【正文】
ct:This work in order to achieve a buzzer play music, design based on the single chip microputer MSP430, with high and low level control tones, the current through the buzzer electromagic coils, thus promote vibration membrane voice for plan to meet wonderful music playing the purpose. Technical report to play music of the design of the buzzer main line, including playing music of the framework of the buzzer design, software and hardware design, and with high and low level of lights flashing. Based on reliable hardware design and stable software algorithm, and realize the topic request. Keywords: MSP430 microcontroller High and low level buzzer 3 一、設(shè)計要求 ( 1) 基于單片機 MSP430 為主控芯片,利用蜂鳴器發(fā)聲,以高低電平控制音調(diào),來實現(xiàn)演奏樂曲的功能。 二、硬件設(shè)計 ( 1)整體方案 通過改編 430 程序使其能夠發(fā)出相應(yīng)的音樂。 (2)系統(tǒng)框架 圖(一) ( 3) 主控芯片的選擇 MSP430 系列單片機是一個 16 位的單片機,采用了精簡指令集( RISC)結(jié)構(gòu),具有豐富的尋址方式( 7 種源操作數(shù)尋址、4 種目的操作數(shù)尋址)、簡潔的 27 條內(nèi)核指令以及大量的模擬主控芯片 蜂鳴器 發(fā)光二級管 4 指令;大量的寄存器以及片內(nèi)數(shù)據(jù)存儲器都可參加多種運算;還有高效的查表處理指令。 而且其運算速度快,超低功耗,片內(nèi)資源 豐富,方便高效的開發(fā)環(huán)境也是我們優(yōu)先選擇的主要原因 . 圖(二)