【正文】
s Liaoning province, decades ago. The solider gave the old man a handmade saddle when they bid farewell. The story inspired Nasun to write Carved Saddle, a song that later became one of his most popular numbers. Now, every year, Nasun recruits young singers and dancers for the troupe. The troupe has also designed a new repertoire, which is mostly based on the daily lives of Mongolian people, especially the lives of nomadic families, and has bined contemporary musical elements with folk songs of the region. Haimu, a 25yearold khoomei (a local variant of overtone singing) singer, joined the troupe three years ago. Along with a sixmember band, he performs fast songs and soft ones that he writes- all while playing the horsehead fiddle.Although I learned the piano since childhood and grew up listening to various kinds of music, to me, the folk music of Inner Mongolia is the root, he says. Performing in remote villages is pleasant. I feel at home on the boundles。s Poly Theater. Their show, titled Ulan Muqir on the Grassland, depicted the history and development of the art troupe. Being from the region allowed me to embrace the culture of Inner Mongolia and being a member of the troupe showed me where I belonged, Nasun, the art troupe39。s performers of the troupe still tour the region39。t have a formal stage. The audience just sat on the grass. Usually, the performances became a big party with local people joining in. For him, the rewarding part about touring isn39。80s. We sat on the back of pickup trucks for hours. The sky was blue, and we couldn39。s Shaanxi province pass through a stop on the ancient Silk Road, Gansu39。 //分離出電流十位 table2[3]=num1%10。 //分離出電流千位 table2[1]=num1%1000/100。 num1=num1*。 keyscan()。 keyscan()。i++) { table5[i]=adzhuanhuan()。 for(i=0。 keyscan()。 keyscan()。 displayinit()。 } /**************************主函數(shù) ***************************/ void main() { uchar i。 rd=1。 _nop_()。 _nop_()。 P1=0xff。 display()。 _nop_()。 //AD 開始工作 _nop_()。 } /************************AD 轉(zhuǎn)換部分 *****************************/ uchar adzhuanhuan() { uchar a。 //防止低于下限值因為 8 位 DA 輸入值為從0255( 2 的八次方) while(!key2)。 //消除抖動 if(key2==0) //確認(rèn) key2 鍵按下 { num=numbujin。 //防止超過上限值因為 8 位 DA 輸入值為從 0255( 2 的八次方) while(!key1)。 //確認(rèn) key1 鍵按下 if(key1==0) { num=num+bujin。 //步進(jìn)個位 } /***************************************************************** ===========================按鍵檢測部分 =================== 在不按下 key3 按鍵時按下 key1 按鍵輸出電流增加為原來值加上步進(jìn)值 按下 key3 按鍵時輸出電流每次減小為原來值減去步進(jìn)值,在一直按下 key3 按鍵時 如果按下 key1 則步進(jìn)值在原來的基礎(chǔ)上加 8, 如果按下 key2 則步進(jìn)值在原 來的基礎(chǔ)上減 8 *****************************************************************/ void keyscan() { 26 dacs=1。 // 步 進(jìn)百位 yjwrite_date(table1[8*bujin%100/10])。 //顯示電流值 } yjwrite_(0x80+0x4a)。i4。 yjwrite_(0x80+10)。i++) { yjwrite_date(table[i])。 //第二行顯示 for(i=10。 //顯示 mA yjwrite_date(table[9])。 } yjwrite_(0x80+0x0e)。i8。 yjwrite_(0x80)。 } } } a: yjwrite_(0x01)。 //顯示 bujin: } while(1) { if(key1==0||key2==0) { delayms(5)。i12。 //顯示 dianliu: } yjwrite_(0x80+0x40)。i4。 //顯示清 0,數(shù)據(jù)指針清 0 yjwrite_(0x80)。 yjwrite_(0x06)。 yjwrite_(0x38)。 dacs=1。 dacs=0。 lcden=0。 lcden=1。 P0=date。 lcden=0。 lcden=1。 P0=。j)。i) for(j=110。 for(i=x。 uchar table5[10]。 uchar code table3[]=09ji。 //液晶顯示數(shù)組定義 uchar code table1[]=0123456789 。 uint bujin=1。 //全局變量定義 uchar num=0。 //控制按鍵端口定義 sbit lcdrs=P3^3。 //啟動轉(zhuǎn)換的控制輸入端口定義 sbit key1=P3^0。 //DA 控制端口定義 sbit rd=P3^5。 22 附錄 源程序 清單 : include //包含頭文件 include //此頭文件為了使用 _nop_()。我對 老師的感激之情是無法用言語表達(dá)的。 老師多次詢問研究進(jìn)程,并為我指點迷津,幫助我開拓研究思路,精心點撥、熱忱鼓勵。 其次感謝 ..老師,給我進(jìn)行了很多的輔導(dǎo),不僅在 技術(shù)上給了我很大幫助,也在系統(tǒng)需求和設(shè)計方面給予了我很大幫助。 20 參考文獻(xiàn) [1]高吉祥 .全國大學(xué)生電子設(shè)計競賽培訓(xùn)系列教程(模擬電子線路設(shè)計) [M].北京 :電子工業(yè)出版社 ,:190— 198,228— 242. [2]高吉祥 .全國大學(xué)生電子設(shè)計競賽培訓(xùn)系列教程( 2022 年全國電子設(shè)計大賽試題剖析) [M].北京 :電子工業(yè)出版社 ,21— 45. [3]鄒天漢 .數(shù)字功放和音響設(shè)計與制作 [M].北京 . [4]童詩白 .模擬電子技術(shù)基礎(chǔ) [M].北京:清華大學(xué)出版社 ,2022. [5]劉樹棠,朱茂林,榮玖譯 .基于運(yùn)算放大器和模擬集成電路的電路設(shè)計 [M].西安:西安交通大學(xué)出版社 ,. [6]張俊謨 .單片機(jī)中級教程 —— 原理與應(yīng)用 [M].北京 :北京航天航空大學(xué)出版社 ,2022. [7]馬忠梅 .單片機(jī)的 C 語言應(yīng)用程序設(shè)計 [M].北京 :北京航天航空大學(xué)出版社 ,1999. [8]康華光 .電子技術(shù)基礎(chǔ) 數(shù)字部分 [M].高等教育出版社 ,2022. [9]樓然苗 ,李光飛 .單片機(jī)課程設(shè)計指導(dǎo) [M].北京航空航天大學(xué)出版社 ,2022. [10]李朝青 .單片機(jī)原理及接口技術(shù) [M].北京航空航天大學(xué)出版社 ,2022. [11] 陳永真等 .全國大學(xué)生電子設(shè)計競賽 [M].電子工業(yè)出版社 ,2022. 21 致 謝 畢業(yè)設(shè)計的完成和論文的完成要感謝很多人。 展望未來: 首先, 為解決 紋波電流較大的 問題,我們 應(yīng)該 在運(yùn) 算放大器 輸入端并聯(lián)電容,以達(dá)到濾波的目的,從而較好的解決紋波問題。然而,當(dāng)將控制電路與主電路結(jié)合在一起時,輸出紋波電流的增大又成為一大問題。 7 結(jié)束語 本系統(tǒng)以 8位 AT89C52單片機(jī)控制與調(diào)整主電路的 輸出電流,并通過液晶顯示電流值,完成了數(shù)控恒流源的制作,實現(xiàn)了輸出電流可調(diào),步進(jìn)加、減功能。然而,當(dāng)將控制電路與主電路結(jié)合在一起時,輸出紋波電流的增大又成為一大問題。 19 ( 5)紋波電流 取負(fù)載電阻 RL=12Ω,紋波電流=紋波電壓 /負(fù)載電阻。 當(dāng)給定電流 Id=70mA 時,輸出電流值的情況如表 65 所示: Id 1%+ 10mA= (mA) 表 65 給定電流 70mA 時輸出電流數(shù)據(jù) 負(fù)載電壓 VL( V) 負(fù)載電阻( ) 5 10 15 20 輸出電流 IL(mA) |ILId|(mA) 當(dāng)給定電流 Id=101mA 時,輸出電流 值的情況如表 66 所示: Id 1%+ 10mA= (mA) 表 66 給定電流 101mA 時輸出電流數(shù)據(jù) 負(fù)載電壓 VL( V) 負(fù)載電阻( ) 5 10 15 20 輸出電流 IL(mA) |ILId|(mA) 當(dāng)給定電流 Id=203mA 時,輸出電流值的情況如表 67 所示: Id 1%+ 10mA= (mA) 表 67 給定電流 203mA 時輸出電流數(shù)據(jù) 負(fù)載電壓 VL( V) 負(fù)載電阻( ) 5 10 15 20 輸出電流 IL(mA) 194 |ILId|(mA) 9 測試結(jié)果分析:如上表所示,隨著負(fù)載電阻值的變化,當(dāng)給定電流在 70mA 左右時,滿足題目要求,恒流特性較理想。 表 63 步進(jìn)電流數(shù)據(jù)一 第 n次按“ +” 1 2 3 4 5 6 7 8 輸出電流 IL(mA) 步進(jìn)值 (mA) \ 18 表 64 步進(jìn)電流數(shù)據(jù)二 第 n次按“ ” 1 2 3 4 5 6 7 8 輸出電流 IL(mA) 0 0 步進(jìn)值 (mA) \ \ 測試結(jié)果分析:可基本實現(xiàn)步進(jìn) 8mA,滿足≤ 10mA 的基本要求,但由于負(fù)載電阻發(fā)熱和電路焊接方面的原因,輸出電流步進(jìn)不太穩(wěn)定。但總的看來,該電流