資源描述:
《FFT在單片機(jī)上地實現(xiàn)》由會員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫。
1、實用標(biāo)準(zhǔn)文案FFT在單片機(jī)上的實現(xiàn)摘要音頻信號分析儀是一種可廣泛見于各種音響、調(diào)音和錄音設(shè)備上的,能實時地采樣及分析輸入的音頻信號的頻譜,并將其顯示在顯示屏上的設(shè)備,使人在聆聽音樂時能對音樂的高低頻能有直觀的了解。本文所介紹的即是這樣一個音頻信號分析系統(tǒng)。系統(tǒng)的硬件由信號調(diào)理、控制處理器、顯示模塊三部分組成。信號調(diào)理電路使信號可輸入300mV~3V的交流音頻信號。這里只對單路信號處理:當(dāng)電壓較低時使用LM324運(yùn)放獲得增益,對超過12800Hz的信號進(jìn)行濾波處理。另外設(shè)置輸出音頻接口以便監(jiān)聽??刂铺幚砥鞑捎?1內(nèi)核1T單片機(jī)STC12C
2、60A5S2,晶振頻率為32.768MHz。該單片機(jī)自帶8路10位高速ADC,這里只用1路ADC的高8位。對信號連續(xù)采32個點(diǎn)進(jìn)行浮點(diǎn)型FFT運(yùn)算。一次完整采樣的時間為1.25ms,最高采樣頻率為25600Hz,分辨頻率為800Hz~12800Hz,分16級。顯示部分主體為1602液晶顯示屏,其具有2行×16列的8×5點(diǎn)顯示點(diǎn)陣。16分頻譜將分別以柱高形式顯示在顯示屏上。程序中設(shè)置了頻率下落效果以使觀感更好。另設(shè)置了對比度調(diào)節(jié)電阻,使屏幕對比度可調(diào)。關(guān)鍵詞:FFT單片機(jī)音頻頻譜文檔大全實用標(biāo)準(zhǔn)文案THEREALIZATIONOFFFTI
3、NTHEMICROCONTROALERABSTRACTAudiosignalanalyzerisakindofdevicewhichcanbewidelyfoundinvariousofaudio,mixingandrecordingdevices,andcansamplingandanalysisofthespectrumoftheinputhaveanintuitiveaudiosignalanddisplaysitonthedisplayinreal-time,peoplecanarelisteningtoMusicformusi
4、cwhenhighfrequencyunderstanding.Whatpresentedinthisarticleisjustsuchanaudiosignalanalysissystem.Thehardwareofthesystemareformedwiththreeparts:thesignalconditioner,thecontrolprocessor?and?thedisplaymodule.Signalconditioningcircuitmakesthesignalof300mV~3VACaudiosignalavail
5、ableforinputting.Inthissystem,weonlyprocesswithsingle-channelsignal:WhenthevoltageislowerthesystemusesLM324opamptogainvoltage,andastosignalsmorethan12800Hzitfiltersthem.Inadditionthesystemsetsanoutputaudiointerfaceformonitoring.Thecontrolprocessorofthesystemisthe51cores1
6、TMCUSTC12C60A5S2,with32.768MHzcrystalfrequency.Thedevicecomeswith8-channel&10-bithigh-speedADC,whereonlyonechannelADChigh8.Thesignalcollected32pointsinconsecutivefloating-pointFFToperation.Acompletesamplingtimeis1.25ms,themaximumsamplingfrequencyis25600Hz,andthedistingui
7、shfrequencyis800Hz~12800Hz,with16levels.Themaindisplaysectionis1602LCDscreen,whichhas2rows×16columns-8×5dotdisplaymatrix.16pointstothecolumnheightspectrumwillbedisplayedonthedisplay.Theprocessofsettingofthefrequencydropintheperceptionofbettereffect.Thereisalsocontrastadj
8、ustmentresistor,whichmakesthescreencontrastadjustable.KEYWORDS:FFT,MCU,AUDIOSPECTRUM文檔大全實用標(biāo)準(zhǔn)文案目錄第1章緒論1§