【正文】
無論是在理論學(xué)習(xí)階段,還是在論文的選題、資料查詢、開題、研究和撰寫的每一個環(huán)節(jié),無不得到導(dǎo)師的悉心指導(dǎo)和幫助。 圖 啟動仿真 三相正弦 信號源 就是 產(chǎn)生三個 相位相差 120 度的正弦波形信號 , 在此基礎(chǔ)上進(jìn)行編程的改進(jìn), 經(jīng)過調(diào)試和運行得到信號波形如下 : 三亞學(xué)院畢業(yè)論文(設(shè)計) 第 26 頁 三相正弦 信號 A相位波: 三相正弦信號 B 相位波: 三相正弦信號 C 相位波: 當(dāng)按下停止按鍵時,示波器上將停止顯示正弦波,如下圖 所示 。 } } } 根據(jù)示波器的波形頻率的顯示計算出三種波形的頻率計算公式如下: 正弦波: f=(1000/(9+3*ys)),其中 ys為延時的變量。(cs1=1)) { keyscanf()。j1++) { P0=tosin1[j]。amp。(cs2=1)amp。 } } if(s3==0) //按鍵加頻率 { delay(5)。 write_data(0x20)。 write_data(0x20)。 //寫 sine: write_data(0x69)。 } void xsf() //顯示頻率 { if(s1num==1) //if語句(判斷是否是狀態(tài) 1) { fre=(1000/(9+3*ys))。 ge=date%10。 write_data(0x3a)。 write_(0x0c)。 delay(5)。 delay(5)。j0。 //變量的定義(字符型) uint fre。 //位變量的定義 sbit s2=P2^1。 節(jié) 運放電路及 1602 頻率顯示 圖 1602 部分電路圖 顯示外接 電路如圖 所示。上電復(fù)位要求接通電源后,自動實現(xiàn)復(fù)位操作。晶振通常選用 6MHZ、 12MHZ、或 24MHZ。 當(dāng)鎖存允許端 LE 為高電平時, Q 隨數(shù)據(jù) D 而變。 D/ A轉(zhuǎn)換 采用兩步寫操作來完成。 (b) DAC0832 芯片 DAC0832 是具有 20 條引腳 的雙列直插式 COMS 器件,它內(nèi)部具有兩級數(shù)據(jù)寄存器,完成 8位電流 D/ A 轉(zhuǎn)換 。復(fù)位電路有開機自動復(fù)位和手動復(fù)位。 MCS51 大多數(shù)指令為一個機器周期??赏ㄟ^外接晶振或振蕩信號二種方式來實現(xiàn),一般采用外接晶振的方法較方便。 ④ 單片機在多機系統(tǒng)中的應(yīng)用:單片機在多機系統(tǒng)中的應(yīng)用是將來單片機發(fā)展的主要模式,它可以提高單片機的可靠性,使系統(tǒng)運行速度更快。 ③ 抗干擾能力強,適用溫度范圍寬。 單片機的發(fā)展歷史大致可分為下面三個階段: 第一階段( 1976 年~ 1978 年):初級單片機微處理階段。 單片機的發(fā)展歷史大致可分為下面三個階段: 第一階段( 1976 年~ 1978 年):初級單片機微處理階段。將正弦波的第一個周期的波形按角度均分為若干等份,并計算出各點對應(yīng)的電壓值,電壓值計算方法: Vx= 三亞學(xué)院畢業(yè)論文(設(shè)計) 第 4 頁 第 III 條 第 3 章 系統(tǒng)硬件設(shè)計 節(jié) 系統(tǒng)工作原理 (a) 系統(tǒng)工作原理 數(shù)字信號 [7]可以通過數(shù) /模轉(zhuǎn)換器轉(zhuǎn)換成模擬信號,因此可通過產(chǎn)生數(shù)字信號再轉(zhuǎn)換成 模擬信號的方法來獲得所需要的波形。 運用單片機來完成本設(shè)計具有良好的實用性和操作性。學(xué)習(xí)單片機的最有效方法就是理論與實踐并重,此次用AT89C51 單片機來 設(shè)計三相信號源就是如此。 伴隨著單片機技術(shù)的不斷成熟,從單片機入手研究三相信號源成為眾多人士的不二之選。它是一種很實用的方法,不但在三相變頻器上應(yīng)用到,還可應(yīng)用于要求產(chǎn)生多相信號或特殊相位信號的場合。 本人的畢業(yè)論文(設(shè)計)中所有研究成果的知識產(chǎn)權(quán)屬三亞學(xué)院所有。本人保證:發(fā)表或使用與本論文相關(guān)的成果時署名單位仍然為三亞學(xué)院,無論何時何地,未經(jīng)學(xué)院許可,決不轉(zhuǎn)移或擴(kuò)散與之相關(guān)的任何技術(shù)或成果。 【關(guān)鍵詞】 單片機 AT89C51, 正弦信號發(fā)生器 , DAC0832, LCD1602 三亞學(xué)院畢業(yè)論文(設(shè)計) 第 II 頁 Threephase signal source design based on single chip micropter Abstract This science in the era of rapid development, the electronic information as a sunrise industry is continuous innovation, the design is more and more by signal source electronic technology practitioners attention, how to design a better signal source has bee a popular subject of study. At present, most of the signal source is generated by the electronic circuit, and this signal source is single phase, but in practice it often requires a threephase signal source, such as instrumentation, medical, auto testing industry at this stage of the extensive requirements of threephase signal source with high precision, but also it can be seen that, the more scientific development of signal source, then the reliability, accuracy and stability of output will be higher. Using D/A converter with high resolution and singlechip microputer automatic detection technology design of threephase signal source will show its superiority, it is convenient to input the preset value and has higher accuracy and stability, but also can realize the signal source of the programmable control, so it will bring great convenience and improve the work efficiency. This is the use of AT89C51 microcontroller as the core control to a threephase sinusoidal signal generator, control the use of singlechip digital circuit, sine ladder wave, sine ladder wave through the amplifier output good, stable amplitude, the whole circuit is easy to plete, to meet the general requirements, which also joined the LCD1602 display, so can be convenient to record and change frequency. It is a very practical method, not only applied to the threephase inverter, can also be applied to the demands of the multiphase signal or special phase signal. 【 Key Words】 AT89C51, DAC0832, liquid crystal 1602 三亞學(xué)院畢業(yè)論文(設(shè)計) 第 III 頁 目 錄 第 1 章 緒論 ............................................... 1 研究背景 ............................................. 1 論文的研究內(nèi)容和意義 .................................. 1 第 2 章 系統(tǒng)概述和方案 ...................................... 3 引言 ................................................. 3 方案選擇 .............................................. 3 第 3 章 系統(tǒng)硬件設(shè)計 ........................................ 4 系統(tǒng)工作原理 .......................................... 4 系統(tǒng)工作原理 ...................................................................................................... 4 正弦波采樣原理 ................................................................................................. 4 單片機的介紹 .......................................... 5 單片機的定義 ...................................................................................................... 5 單片機的歷史及發(fā)展趨勢 ................................................................................. 5 單片機的特點及應(yīng)用 .......................................................................................... 6 89C51 和 DAC0832 芯片介紹 ............................... 7 89C51 芯片 ........................................................................................................... 7 DAC0832 芯片 ..................................................................................................... 9 74LS373 芯片 ....................................................................................................... 9 基本模塊電路 ......................................... 11 時鐘電路 ............................................................................................................ 11 復(fù)位電路 ........................