芒果视频下载

網站(zhan)分類
登錄 |    

基于單片機的信號發生器設計方案 信號發生器的設計要求有哪些

本文章由注冊用戶 荊湖酒徒 上傳提供 2023-09-20 評論 0
摘要:信號發生器的應用廣泛,簡易型的信號發生器可以基于單片機來設計,設計出的信號發生器能產生方波、三角波和正弦波并進行仿真。基于單片機的信號發生器設計主要包括總體方案設計、系統硬件設計和系統軟件設計三部分,設計好的信號發生器要滿足基本性能指標要求和擴展性能指標要求。下面一起來看看基于單片機的信號發生器設計方案吧。

一、基于單片機的信號發生器設計方案

信(xin)號(hao)發(fa)生器用于調(diao)節(jie)射(she)頻(pin)匹配電路,可(ke)以自行設(she)計,一般普通的(de)信(xin)號(hao)發(fa)生器需(xu)要(yao)輸出(chu)正弦波(bo)、方波(bo)、三角波(bo)以及鋸齒波(bo)等信(xin)號(hao),可(ke)通過(guo)按(an)鍵(jian)調(diao)節(jie)信(xin)號(hao)的(de)頻(pin)率以及信(xin)號(hao)的(de)幅度(du),其具體(ti)的(de)設(she)計方案如下:

1、總體方案設計

信(xin)(xin)(xin)(xin)(xin)號(hao)(hao)(hao)發生(sheng)(sheng)器發送出(chu)(chu)(chu)(chu)去的(de)是模(mo)擬(ni)信(xin)(xin)(xin)(xin)(xin)號(hao)(hao)(hao),而(er)單片(pian)(pian)機(ji)輸出(chu)(chu)(chu)(chu)的(de)是數(shu)(shu)字(zi)信(xin)(xin)(xin)(xin)(xin)號(hao)(hao)(hao),因此(ci)在(zai)(zai)設計信(xin)(xin)(xin)(xin)(xin)號(hao)(hao)(hao)發生(sheng)(sheng)器系統時,需要使用到數(shu)(shu)模(mo)轉(zhuan)(zhuan)換(huan)芯(xin)(xin)片(pian)(pian),可(ke)選擇數(shu)(shu)模(mo)轉(zhuan)(zhuan)換(huan)芯(xin)(xin)片(pian)(pian)DAC0832,然后再(zai)利用運(yun)算放大器將(jiang)DAC0832輸出(chu)(chu)(chu)(chu)的(de)電(dian)流信(xin)(xin)(xin)(xin)(xin)號(hao)(hao)(hao)轉(zhuan)(zhuan)換(huan)成(cheng)電(dian)壓信(xin)(xin)(xin)(xin)(xin)號(hao)(hao)(hao)。這(zhe)樣信(xin)(xin)(xin)(xin)(xin)號(hao)(hao)(hao)發生(sheng)(sheng)器便(bian)輸出(chu)(chu)(chu)(chu)了模(mo)擬(ni)電(dian)壓。系統要輸出(chu)(chu)(chu)(chu)各種波形(xing)信(xin)(xin)(xin)(xin)(xin)號(hao)(hao)(hao),則要求(qiu)DAC0832在(zai)(zai)運(yun)放的(de)作(zuo)用下(xia),在(zai)(zai)不(bu)同(tong)時間點輸出(chu)(chu)(chu)(chu)不(bu)同(tong)的(de)電(dian)壓值,再(zai)將(jiang)這(zhe)些(xie)電(dian)壓值連接起來,便(bian)構(gou)成(cheng)了相應(ying)的(de)波形(xing)信(xin)(xin)(xin)(xin)(xin)號(hao)(hao)(hao)。而(er)要得到不(bu)同(tong)的(de)電(dian)壓值,則單片(pian)(pian)機(ji)需要將(jiang)8位(wei)(wei)I/O口接到DAC0832芯(xin)(xin)片(pian)(pian)的(de)8位(wei)(wei)數(shu)(shu)據信(xin)(xin)(xin)(xin)(xin)號(hao)(hao)(hao)輸入(ru)端,單片(pian)(pian)機(ji)通過改(gai)變(bian)(bian)8位(wei)(wei)I/O口的(de)數(shu)(shu)字(zi)信(xin)(xin)(xin)(xin)(xin)號(hao)(hao)(hao),便(bian)可(ke)以在(zai)(zai)DAC0832以及運(yun)放的(de)作(zuo)用下(xia),得到不(bu)同(tong)的(de)電(dian)壓值,再(zai)在(zai)(zai)時間的(de)作(zuo)用下(xia)形(xing)成(cheng)不(bu)同(tong)的(de)波形(xing)信(xin)(xin)(xin)(xin)(xin)號(hao)(hao)(hao)。波形(xing)信(xin)(xin)(xin)(xin)(xin)號(hao)(hao)(hao)頻率的(de)的(de)變(bian)(bian)化可(ke)通過改(gai)變(bian)(bian)單片(pian)(pian)機(ji)8位(wei)(wei)I/O輸出(chu)(chu)(chu)(chu)口的(de)數(shu)(shu)據變(bian)(bian)化率來實(shi)現。

波(bo)形信(xin)號的(de)幅度由DAC0832的(de)參考(kao)電壓(ya)VREF來決定(ding),為了(le)確保VREF的(de)大小可(ke)變(bian),本系統使(shi)用(yong)到(dao)了(le)芯片PCF8591,將PCF8591芯片的(de)模擬(ni)電壓(ya)輸出端(duan)接在DAC0832的(de)VREF上(shang),通過改變(bian)PCF8591模擬(ni)電壓(ya)輸出值便(bian)可(ke)改變(bian)VREF值,從(cong)而改變(bian)波(bo)形信(xin)號的(de)幅度值。而PCF8591的(de)模擬(ni)電壓(ya)輸出值則是(shi)尤其(qi)I2C總行上(shang)的(de)數據所決定(ding),利用(yong)單片機的(de)I/O口模擬(ni)I2C與PCF8591進行通信(xin),那(nei)么單片機便(bian)可(ke)通過I/O口控制VREF電壓(ya)的(de)變(bian)化(hua)(hua),從(cong)而控制波(bo)形的(de)幅度變(bian)化(hua)(hua)。

該圖片由注冊用戶"荊湖酒徒"提供,版權聲明反饋

2、系統硬件設計

(1)晶振電路設計

單片(pian)機(ji)穩(wen)定(ding)(ding)工作則需要(yao)穩(wen)定(ding)(ding)的(de)(de)時鐘(zhong)(zhong)信號,而時鐘(zhong)(zhong)信號則是由晶(jing)(jing)振(zhen)(zhen)電路(lu)產(chan)生,因此(ci)晶(jing)(jing)振(zhen)(zhen)電路(lu)設計的(de)(de)好(hao)壞(huai)直接(jie)(jie)影響到最小系統(tong)的(de)(de)穩(wen)定(ding)(ding)性。單片(pian)機(ji)的(de)(de)18腳和(he)19腳為(wei)晶(jing)(jing)振(zhen)(zhen)連接(jie)(jie)輸入腳,將晶(jing)(jing)振(zhen)(zhen)X1的(de)(de)兩(liang)(liang)端連接(jie)(jie)到單片(pian)機(ji)18和(he)19腳之(zhi)后(hou)便會產(chan)生時鐘(zhong)(zhong)信號,此(ci)時的(de)(de)信號會存在(zai)不穩(wen)定(ding)(ding)的(de)(de)問(wen)題,需要(yao)在(zai)晶(jing)(jing)振(zhen)(zhen)Y1的(de)(de)兩(liang)(liang)端分別外接(jie)(jie)一個22PF電容C1、C2到GND,該電容為(wei)晶(jing)(jing)振(zhen)(zhen)的(de)(de)匹配(pei)電容,晶(jing)(jing)振(zhen)(zhen)匹配(pei)了電容之(zhi)后(hou),那么產(chan)生的(de)(de)時鐘(zhong)(zhong)信號就比較穩(wen)定(ding)(ding)。出現的(de)(de)頻偏(pian)也是在(zai)20PPM的(de)(de)范(fan)圍內。這樣才能(neng)確(que)保系統(tong)時鐘(zhong)(zhong)穩(wen)定(ding)(ding)可(ke)靠。

(2)復位電路設計

最小系統除了晶(jing)振(zhen)電(dian)(dian)路(lu)之外(wai),還需(xu)(xu)要具備(bei)復位(wei)電(dian)(dian)路(lu),單片機上電(dian)(dian)后(hou),啟動的時(shi)候,需(xu)(xu)要復位(wei)電(dian)(dian)路(lu)先進行復位(wei),確保系統運行的起始地址(zhi)一致 ,保證系統工作的穩(wen)定性,復位(wei)是利用(yong)電(dian)(dian)容(rong)C3與R1來實現的。

(3)波形幅度調節電路設計

為改變系(xi)統(tong)輸出的波形(xing)幅度值,本系(xi)統(tong)使用到(dao)(dao)了PCF8591芯片(pian),該(gai)芯片(pian)是一個8位(wei)CMOS數據采集(ji)器,該(gai)芯片(pian)可以將(jiang)(jiang)(jiang)模(mo)擬(ni)信(xin)(xin)號(hao)(hao)(hao)轉(zhuan)換成數字信(xin)(xin)號(hao)(hao)(hao),再(zai)通過(guo)I2C數據總線將(jiang)(jiang)(jiang)該(gai)數字信(xin)(xin)號(hao)(hao)(hao)發(fa)送(song)給單片(pian)機(ji);也可以反過(guo)來,單片(pian)機(ji)通過(guo)I2C總線將(jiang)(jiang)(jiang)數字信(xin)(xin)號(hao)(hao)(hao)發(fa)送(song)給PCF8591芯片(pian),再(zai)由該(gai)芯片(pian)進行數模(mo)轉(zhuan)換后,變成模(mo)擬(ni)電壓再(zai)由AOUT腳(jiao)輸出。利用這一原理,本系(xi)統(tong)為了調節信(xin)(xin)號(hao)(hao)(hao)發(fa)生器的幅度值,將(jiang)(jiang)(jiang)單片(pian)機(ji)P2.0和P2.1模(mo)擬(ni)I2C與PCF8591通信(xin)(xin),這樣單片(pian)機(ji)便可以控(kong)制(zhi)(zhi)PCF8591的AOUT輸出端(duan)模(mo)擬(ni)電壓的大(da)小,再(zai)將(jiang)(jiang)(jiang)其接入到(dao)(dao)DAC0832的VREF腳(jiao)上,便可以控(kong)制(zhi)(zhi)波形(xing)的幅度。

(4)數模轉換電路設計

信(xin)(xin)號發(fa)生器產生各種波形(xing)信(xin)(xin)號使(shi)(shi)用(yong)到了(le)DAC0832數(shu)模(mo)轉換(huan)(huan)芯(xin)片(pian)(pian),該芯(xin)片(pian)(pian)內(nei)(nei)部集成(cheng)了(le)一(yi)個(ge)8位D/A轉換(huan)(huan)器,一(yi)個(ge)8為DAC寄存(cun)器,一(yi)個(ge)8位輸入(ru)寄存(cun)器以及一(yi)個(ge)控制(zhi)電(dian)路,其內(nei)(nei)部采用(yong)的(de)是(shi)倒T型(xing)R-2R電(dian)阻網絡(luo),將該數(shu)模(mo)轉換(huan)(huan)芯(xin)片(pian)(pian)與(yu)運算(suan)放大器LM358一(yi)起使(shi)(shi)用(yong),便可以使(shi)(shi)運放輸出端有28 =256個(ge)電(dian)壓(ya)值輸出。在不同時間內(nei)(nei)變換(huan)(huan)輸出不同的(de)電(dian)壓(ya)值,使(shi)(shi)其產生周期(qi)性(xing)的(de)變化便能(neng)形(xing)成(cheng)相應的(de)波形(xing)信(xin)(xin)號。

(5)按鍵中斷控制電路設計

基于單(dan)片機(ji)(ji)(ji)的(de)(de)(de)(de)信(xin)(xin)號(hao)發生器要(yao)求輸出方(fang)波(bo)、三角波(bo)、鋸(ju)齒波(bo)以及正(zheng)弦波(bo)信(xin)(xin)號(hao),信(xin)(xin)號(hao)的(de)(de)(de)(de)幅(fu)度(du)和頻率(lv)可(ke)調,用戶可(ke)通過(guo)系統按(an)(an)鍵(jian)(jian)(jian)(jian)(jian)來對(dui)信(xin)(xin)號(hao)發生器進行設(she)置。在系統中(zhong),設(she)計了(le)(le)8個按(an)(an)鍵(jian)(jian)(jian)(jian)(jian),其功能分別為(wei)100HZ頻率(lv)加(jia)按(an)(an)鍵(jian)(jian)(jian)(jian)(jian)、1hz頻率(lv)加(jia)按(an)(an)鍵(jian)(jian)(jian)(jian)(jian)、-1hz頻率(lv)減按(an)(an)鍵(jian)(jian)(jian)(jian)(jian)、1V電壓幅(fu)度(du)加(jia)按(an)(an)鍵(jian)(jian)(jian)(jian)(jian)、0.1V電壓幅(fu)度(du)加(jia)按(an)(an)鍵(jian)(jian)(jian)(jian)(jian)、-0.1V電壓幅(fu)度(du)減按(an)(an)鍵(jian)(jian)(jian)(jian)(jian)、波(bo)形(xing)切換按(an)(an)鍵(jian)(jian)(jian)(jian)(jian)、掃頻開關按(an)(an)鍵(jian)(jian)(jian)(jian)(jian)。為(wei)了(le)(le)方(fang)便系統設(she)計,采(cai)用獨立(li)按(an)(an)鍵(jian)(jian)(jian)(jian)(jian)設(she)計方(fang)法,利用單(dan)片機(ji)(ji)(ji)P1口將各按(an)(an)鍵(jian)(jian)(jian)(jian)(jian)連接,通過(guo)軟件將P1口設(she)置成(cheng)上拉狀(zhuang)態。當沒(mei)有按(an)(an)鍵(jian)(jian)(jian)(jian)(jian)按(an)(an)下時(shi),單(dan)片機(ji)(ji)(ji)P1口中(zhong)的(de)(de)(de)(de)所有I/O口檢(jian)(jian)測的(de)(de)(de)(de)到時(shi)高電平;當有按(an)(an)鍵(jian)(jian)(jian)(jian)(jian)按(an)(an)下時(shi),則(ze)該按(an)(an)鍵(jian)(jian)(jian)(jian)(jian)對(dui)應(ying)單(dan)片機(ji)(ji)(ji)的(de)(de)(de)(de)I/O口會被拉低(di)(di),變成(cheng)低(di)(di)電平。單(dan)片機(ji)(ji)(ji)便能檢(jian)(jian)測到,從而調用該按(an)(an)鍵(jian)(jian)(jian)(jian)(jian)程序執行相應(ying)的(de)(de)(de)(de)功能。

(6)電源電路設計

本(ben)系(xi)統(tong)電(dian)(dian)(dian)路設計是在(zai)Proteus仿(fang)真軟件上設計,該仿(fang)真軟件有各種(zhong)電(dian)(dian)(dian)源(yuan),可(ke)(ke)直(zhi)接調用。無需使(shi)用電(dian)(dian)(dian)壓轉換芯片。在(zai)本(ben)系(xi)統(tong)單片機(ji)使(shi)用5V電(dian)(dian)(dian)壓供電(dian)(dian)(dian),而為了使(shi)輸出波形(xing)幅度為10V,則PCF8591采用10V電(dian)(dian)(dian)壓供電(dian)(dian)(dian),而運算放大器采用±15V供電(dian)(dian)(dian),直(zhi)接從(cong)仿(fang)真軟件上取電(dian)(dian)(dian)源(yuan)即(ji)可(ke)(ke)。

3、系統軟件設計

完成(cheng)proteus軟(ruan)件電路圖設計之后(hou)(hou),接下來需(xu)要對(dui)單片機編寫(xie)驅動(dong)程序,系統(tong)驅動(dong)程序的編寫(xie)是在keil軟(ruan)件平(ping)臺(tai)上(shang)完成(cheng)的,Keil軟(ruan)件打開后(hou)(hou),要先建立工程,然后(hou)(hou)在工程當中建立一個.c文(wen)件,在此文(wen)件中編寫(xie)代碼驅動(dong)程序:

(1)系統主程序設計

主(zhu)程(cheng)(cheng)序(xu)(xu)是(shi)(shi)軟件(jian)系統(tong)(tong)(tong)中(zhong)最為重要的(de)程(cheng)(cheng)序(xu)(xu),因為系統(tong)(tong)(tong)程(cheng)(cheng)序(xu)(xu)是(shi)(shi)由各個(ge)子程(cheng)(cheng)序(xu)(xu)所構(gou)成,而(er)子程(cheng)(cheng)序(xu)(xu)的(de)調用全部(bu)是(shi)(shi)在主(zhu)程(cheng)(cheng)序(xu)(xu)中(zhong)來實現的(de),主(zhu)程(cheng)(cheng)序(xu)(xu)設(she)計的(de)好壞直接能影響到系統(tong)(tong)(tong)的(de)邏(luo)輯結構(gou),影響到系統(tong)(tong)(tong)工(gong)作的(de)穩定性。在本系統(tong)(tong)(tong)中(zhong),系統(tong)(tong)(tong)開始(shi)(shi)運行后(hou),先會執(zhi)行主(zhu)程(cheng)(cheng)序(xu)(xu),在主(zhu)程(cheng)(cheng)序(xu)(xu)中(zhong)對單片機(ji)及其外圍(wei)元件(jian)進行初(chu)始(shi)(shi)化(hua)設(she)置,完成初(chu)始(shi)(shi)化(hua)設(she)置之后(hou),系統(tong)(tong)(tong)就會執(zhi)行正(zheng)弦波程(cheng)(cheng)序(xu)(xu),讓信號(hao)發生器輸出正(zheng)弦波信號(hao),然(ran)后(hou)再去檢測是(shi)(shi)否有(you)按(an)鍵(jian)(jian)按(an)下,如果有(you)按(an)鍵(jian)(jian)按(an)下,系統(tong)(tong)(tong)檢測到后(hou),便會執(zhi)行相應按(an)鍵(jian)(jian)的(de)程(cheng)(cheng)序(xu)(xu),從而(er)改變(bian)信號(hao)發生器輸出的(de)波形。如果沒(mei)有(you)按(an)鍵(jian)(jian)產生,則系統(tong)(tong)(tong)繼續(xu)保持當前波形輸出,然(ran)后(hou)再繼續(xu)去訪問是(shi)(shi)否有(you)按(an)鍵(jian)(jian)按(an)下,如此循環下去。

(2)按鍵掃描程序設計

本系(xi)統(tong)是通(tong)過按(an)(an)(an)(an)(an)(an)(an)鍵(jian)來(lai)改變信(xin)號發生器的(de)波(bo)形(xing),系(xi)統(tong)一(yi)共有八個按(an)(an)(an)(an)(an)(an)(an)鍵(jian),按(an)(an)(an)(an)(an)(an)(an)下(xia)(xia)不(bu)同按(an)(an)(an)(an)(an)(an)(an)鍵(jian)時,系(xi)統(tong)需要輸(shu)出(chu)不(bu)同的(de)波(bo)形(xing)。定義按(an)(an)(an)(an)(an)(an)(an)鍵(jian)6為(wei)波(bo)形(xing)切換按(an)(an)(an)(an)(an)(an)(an)鍵(jian),按(an)(an)(an)(an)(an)(an)(an)鍵(jian)0為(wei)100HZ頻率(lv)增加(jia)按(an)(an)(an)(an)(an)(an)(an)鍵(jian),按(an)(an)(an)(an)(an)(an)(an)鍵(jian)1為(wei)1HZ頻率(lv)增加(jia)按(an)(an)(an)(an)(an)(an)(an)鍵(jian),按(an)(an)(an)(an)(an)(an)(an)鍵(jian)2為(wei)1HZ頻率(lv)減(jian)按(an)(an)(an)(an)(an)(an)(an)鍵(jian),按(an)(an)(an)(an)(an)(an)(an)鍵(jian)3位(wei)1V幅(fu)度增加(jia)按(an)(an)(an)(an)(an)(an)(an)鍵(jian),按(an)(an)(an)(an)(an)(an)(an)鍵(jian)4為(wei)0.1V幅(fu)度增加(jia)按(an)(an)(an)(an)(an)(an)(an)鍵(jian),按(an)(an)(an)(an)(an)(an)(an)鍵(jian)5為(wei)0.1V幅(fu)度減(jian)小按(an)(an)(an)(an)(an)(an)(an)鍵(jian),按(an)(an)(an)(an)(an)(an)(an)鍵(jian)7位(wei)掃頻按(an)(an)(an)(an)(an)(an)(an)鍵(jian),flang為(wei)標志位(wei),用于判斷按(an)(an)(an)(an)(an)(an)(an)鍵(jian)6按(an)(an)(an)(an)(an)(an)(an)下(xia)(xia)的(de)次(ci)數當flang為(wei)1是默(mo)認(ren)輸(shu)出(chu)正(zheng)弦波(bo);當flang為(wei)2時,輸(shu)出(chu)三角(jiao)波(bo);當flang為(wei)3時輸(shu)出(chu)鋸齒波(bo);當flang為(wei)4時,輸(shu)出(chu)方波(bo);當flang為(wei)5時,則會令(ling)flang=1,輸(shu)出(chu)正(zheng)弦波(bo)。

因此,當(dang)有(you)按(an)(an)(an)(an)(an)鍵(jian)(jian)(jian)(jian)(jian)按(an)(an)(an)(an)(an)下(xia)(xia)(xia)時(shi)(shi),系統(tong)調用按(an)(an)(an)(an)(an)鍵(jian)(jian)(jian)(jian)(jian)程序(xu)會去(qu)判斷(duan)是哪個按(an)(an)(an)(an)(an)鍵(jian)(jian)(jian)(jian)(jian)按(an)(an)(an)(an)(an)下(xia)(xia)(xia),如果是按(an)(an)(an)(an)(an)鍵(jian)(jian)(jian)(jian)(jian)6按(an)(an)(an)(an)(an)下(xia)(xia)(xia),表(biao)示需要(yao)切(qie)換信(xin)號(hao)發(fa)生(sheng)器的(de)(de)輸出波(bo)(bo)形(xing)(xing),令flang+1,然后(hou)判斷(duan)flang的(de)(de)值,再(zai)輸出相應的(de)(de)波(bo)(bo)形(xing)(xing)信(xin)號(hao)。當(dang)是0按(an)(an)(an)(an)(an)鍵(jian)(jian)(jian)(jian)(jian)按(an)(an)(an)(an)(an)下(xia)(xia)(xia)時(shi)(shi),則(ze)(ze)(ze)系統(tong)會在原有(you)的(de)(de)波(bo)(bo)形(xing)(xing)上(shang),改變其(qi)輸出頻率(lv)(lv),使頻率(lv)(lv)增(zeng)加(jia)100HZ;當(dang)按(an)(an)(an)(an)(an)下(xia)(xia)(xia)的(de)(de)是1按(an)(an)(an)(an)(an)鍵(jian)(jian)(jian)(jian)(jian),則(ze)(ze)(ze)將(jiang)頻率(lv)(lv)增(zeng)加(jia)1HZ;當(dang)2按(an)(an)(an)(an)(an)鍵(jian)(jian)(jian)(jian)(jian)按(an)(an)(an)(an)(an)下(xia)(xia)(xia),則(ze)(ze)(ze)將(jiang)頻率(lv)(lv)減小(xiao)(xiao)1HZ;當(dang)按(an)(an)(an)(an)(an)鍵(jian)(jian)(jian)(jian)(jian)3按(an)(an)(an)(an)(an)下(xia)(xia)(xia)時(shi)(shi),表(biao)示要(yao)在原有(you)波(bo)(bo)形(xing)(xing)的(de)(de)基礎(chu)上(shang)增(zeng)加(jia)1V的(de)(de)波(bo)(bo)形(xing)(xing)幅(fu)度;當(dang)4按(an)(an)(an)(an)(an)鍵(jian)(jian)(jian)(jian)(jian)按(an)(an)(an)(an)(an)下(xia)(xia)(xia),則(ze)(ze)(ze)幅(fu)度增(zeng)加(jia)0.1V;當(dang)5按(an)(an)(an)(an)(an)鍵(jian)(jian)(jian)(jian)(jian)按(an)(an)(an)(an)(an)下(xia)(xia)(xia),則(ze)(ze)(ze)幅(fu)度減小(xiao)(xiao)0.1V;當(dang)7按(an)(an)(an)(an)(an)鍵(jian)(jian)(jian)(jian)(jian)按(an)(an)(an)(an)(an)下(xia)(xia)(xia),則(ze)(ze)(ze)進行掃頻。當(dang)執行完(wan)按(an)(an)(an)(an)(an)鍵(jian)(jian)(jian)(jian)(jian)程序(xu)后(hou),返回系統(tong)主程序(xu)。

二、信號發生器的設計要求有哪些

基于單片機設計的信號發生器屬于簡易信號發生器,主要能產生方波、三角波和正弦波并進行仿真,這類信號發生器設計好后,應(ying)滿(man)足以(yi)下要(yao)求:

1、基本性能指標要求

(1)頻(pin)率(lv)范圍(wei):100Hz~1kHz。

(2)輸出電壓:方波(bo) Up-p≤24V,三角(jiao)波(bo) Up-p=6V,正弦波(bo) Up-p>1V。

2、擴展性能指標要求

頻率范圍分段(duan)設置(zhi)10Hz~100Hz,100Hz~1kHz,1kHz~10kHz;波(bo)形特(te)性方波(bo)t r<30us(1kHz,最大輸出時),三(san)角波(bo)r△<2%,正(zheng)弦(xian)波(bo)r~<5%。

網站提醒和聲明
本站為注(zhu)冊用戶(hu)提供(gong)信息(xi)存儲空間服務,非“MAIGOO編輯(ji)上(shang)傳提供(gong)”的(de)文章/文字均是注(zhu)冊用戶(hu)自主發布(bu)上(shang)傳,不代表(biao)本站觀點,版(ban)權歸原作者所(suo)有,如有侵權、虛(xu)假信息(xi)、錯誤(wu)信息(xi)或(huo)任何問(wen)題,請及(ji)時(shi)(shi)聯系我們,我們將在第一(yi)時(shi)(shi)間刪除(chu)或(huo)更正。 申請刪除>> 糾錯>> 投訴侵權>> 網頁(ye)上相關信息(xi)的知識產權歸網站方所有(包(bao)括但(dan)不限(xian)于文字、圖片、圖表、著作權、商標(biao)權、為用戶提(ti)供的商業信息(xi)等),非經許可不得抄襲或使(shi)用。
提交說明: 快速提交發布>> 查看提交幫助>> 注冊登錄>>
發表評論
您還未登錄,依《網絡安全法》相關要求,請您登錄賬戶后再提交發布信息。點擊登錄>>如您還未注冊,可,感謝您的理解及支持!
最新(xin)評論
暫無評論
荊湖酒徒
注冊用戶-荊湖酒徒的個人賬號
關注
頁面相關分類
裝修居住/場景空間
生活知識百科分類
地區城市
更多熱門城市 省份地區
人群
季節
TOP熱門知識榜
知識體系榜