摘 要 本課題是利用單片機(jī)設(shè)計(jì)一個(gè)數(shù)字電壓表,能夠測量0-5V之間的直流電壓值,四位數(shù)碼管顯示,使用的元器件數(shù)目較少。外界電壓模擬量輸入到A/D轉(zhuǎn)換部分的輸入端,通過ADC0832轉(zhuǎn)換變?yōu)閿?shù)字信號(hào),輸送給單片機(jī)。然后由單片機(jī)給數(shù)碼管數(shù)字信號(hào),控制其發(fā)光,從而顯示數(shù)字。此外,本文還討論了設(shè)計(jì)過程中的所用的軟件硬件環(huán)境,調(diào)試所出現(xiàn)的問題等。 關(guān)鍵詞:單片機(jī); AT89C51;數(shù)字電壓表; ADC0832,四位數(shù)碼管。 Abstract This topic is the use of microcontroller design a digital voltmeter, capable of measuring between 0-5V DC voltage, four digital display, the use of fewer components. External analog voltage input to the A / D conversion part of the input of the conversion into a digital signal through the ADC0832, transmission to the microcontroller. And then by the microcontroller to the digital control digital signal, control the light, so the displayed number. In addition, the article also discusses the design process of software used in the hardware environment, debugging the problems and so on.
Key words: SCM; AT89C51; digital voltmeter; ADC0832, four digital.
|