freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

片機(jī)課程設(shè)計(jì)---波形發(fā)生器-閱讀頁(yè)

2025-06-24 06:40本頁(yè)面
  

【正文】 28 八、實(shí)驗(yàn)成果 單極性方波 單極性正弦波 29 單極性三角波 雙極性方波 30 雙極性正弦波 雙極性三角波 31 九、總結(jié)與感想 經(jīng)過(guò)將近一周的課程設(shè)計(jì),終于完成了 我們的簡(jiǎn)易波形發(fā)生器的設(shè)計(jì),基本達(dá)到設(shè)計(jì)要求,從心底里來(lái)說(shuō),還是很高興的。對(duì)于單片機(jī)設(shè)計(jì),其硬件電路是比較簡(jiǎn)單的,主要是解決程序設(shè)計(jì)的問(wèn)題,而程序設(shè)計(jì)是一個(gè)很靈活的東西,它反映了你解決問(wèn)題的邏輯思維和創(chuàng)新能力,它才是一個(gè)設(shè)計(jì)的靈魂所在。很多子程序是可以借鑒書(shū)本上的,但怎樣銜接各個(gè)子程序才是關(guān)鍵的問(wèn)題所在,這需要對(duì)單片機(jī)的結(jié)構(gòu)很熟悉。 通過(guò)這次的課程設(shè)計(jì),讓我真正的認(rèn)識(shí)到課程設(shè)計(jì)的重要性,不但可以通過(guò)具體課題的設(shè)計(jì)工作學(xué)習(xí)到相關(guān)的新知識(shí),而且可以課堂上所學(xué)習(xí)的知識(shí)用于實(shí)踐。這次波形發(fā)生器的課程設(shè)計(jì)基本運(yùn)用了單片機(jī)學(xué)習(xí)中的很多知識(shí),如單片機(jī)的結(jié)構(gòu)及基本原理,指令系統(tǒng)和 C 語(yǔ)言程序設(shè)計(jì), D/A 32 轉(zhuǎn)換接口技術(shù)等等。此外,通過(guò)實(shí)際的仿真操作,更加熟悉了 PROTEUS 、 Keil 和 Protel DXP 軟件的操作流程,為以后的更好地學(xué)習(xí)和運(yùn)用創(chuàng)造了條件。這就要求我們對(duì)硬件 系統(tǒng)中各組件部分有充分透徹的理解和研究,并能對(duì)之靈活應(yīng)用。我發(fā)現(xiàn),在我們所使用的書(shū)籍上有一些知識(shí)在實(shí)際應(yīng)用中其實(shí)并不是十分理想,各種參數(shù)都需要自己去調(diào)整,這就要求我們應(yīng)更加注重實(shí)踐環(huán)節(jié)。 sbit WRBIT = P3^4。 sbit WR0832 = P3^3。 uchar a,b,c。 uchar code total1[] = {128,130,132,135,137,139,141,143,146,148, 150,152,154,156,159,161,163,165,167,169, 171,173,175,178,180,182,184,186,188,189, 191,193,195,197,199,201,203,204,206,208, 210,211,213,215,216,218,219,221,222,224, 225,227,228,229,231,232,233,234,236,237, 238,239,240,241,242,243,244,245,246,247, 247,248,249,249,250,251,251,252,252,253, 253,253,254,254,254,254,255,255,255,255, 255}。 //定時(shí)器初值 uchar tab2[] = {0xa5,0x6a,0x03}。 //單三角波定時(shí)器初值 uchar tab4[] = {0xdb,0xc0,0x8a}。 //雙三角波定時(shí)器初值 void Delay(uint xms)。 WR0832 = 0。 SL0832 = 1。 } void LED_Init() { WRSEG = 0。 P0 = 0x00。 37 Delay(1)。 WRBIT = 0。 P0 = 0x00。 Delay(1)。 } void LED_show(uchar LED_tab, uchar LED_num) { WRBIT = 0。 WRBIT = 0。 P0 = 0x00。 WRSEG = 1。 WRBIT = 0。 WRBIT = 1。 } uchar test() { uchar temp,key=0xff。 temp = P2。 0xf0。 temp = P2。 0xf0。 switch(temp) { 38 case 0xee: key = 0。 case 0xde: key = 1。 case 0xbe: key = 2。 case 0x7e: key = 3。 } while(temp != 0xf0) { temp = P2。 0xf0。 temp = P2。 0xf0。 temp = P2。 0xf0。 switch(temp) { case 0xed: key = 4。 case 0xdd: key = 5。 case 0xbd: key = 6。 case 0x7d: 39 key = 7。 } while(temp != 0xf0) { temp = P2。 0xf0。 temp = P2。 0xf0。 temp = P2。 0xf0。 switch(temp) { case 0xeb: key = 8。 case 0xdb: key = 9。 case 0xbb: key = 10。 case 0x7b: key = 11。 } while(temp != 0xf0) { temp = P2。 0xf0。 temp = P2。 0xf0。 temp = P2。 0xf0。 switch(temp) { case 0xe7: key = 12。 case 0xd7: key = 13。 case 0xb7: key = 14。 case 0x77: key = 15。 } while(temp != 0xf0) { temp = P2。 0xf0。 } void Delay(uint xms) { uint i,j。i0。j0。 uchar key_rd = 0xff。 num = key_rd。 else timer=timer+1。 else timer=timer1。 TL0 = tab1[xms] % 256。 TR0 = 1。 LED_show(tab[timer],0x02)。 TL0 = tab1[xms] % 256。 TR0 = 1。 } void dan_zx(uchar xms) //單極性正弦波 { uint i。 uchar key_rd = 0xff。 num = key_rd。 else timer=timer+1。 else timer=timer1。i90。 TL0 = tab2[xms]。 TR0 = 1。 } LED_show(tab[timer],0x02)。i0。 TL0 = tab2[xms]。 TR0 = 1。 }。 int num。 key_rd = test()。 if (num==11) { if (timer==2) timer=0。 } if (num==15) { if (timer==0) timer=2。 } for(i=0x80。amp。i++) { TH0 = 0xff。 shuchu(i)。 while(!TF0) { } TF0 = 0。 for(i=0xff。i) { TH0 = 0xff。 shuchu(i)。 while(!TF0) { } TF0 = 0。 uchar key_rd = 0xff。 num = key_rd。 else timer=timer+1。 else timer=timer1。 TL0 = tab1[xms] % 256。 TR0 = 1。 LED_show(tab[timer],0x02)。 TL0 = tab1[xms] % 256。 TR0 = 1。 } void shuang_zx(uchar xms) //雙極性正弦波 { uint i。 uchar key_rd = 0xff。 num = key_rd。 else timer=timer+1。 else timer=timer1。i90。 TL0 = tab4[xms]。 TR0 = 1。 } LED_show(tab[timer],0x02)。i0。 TL0 = tab4[xms]。 TR0 = 1。 } // LED_show(tab[c],0x01)。i90。 TL0 = tab4[xms]。 TR0 = 1。 } LED_show(tab[timer],0x02)。i0。 TL0 = tab4[xms]。 TR0 = 1。 } } void shuang_sanj(uchar xms) //雙極性三角波 { uchar i。 uchar key_rd = 0xff。 num = key_rd。 else timer=timer+1。 else timer=timer1。i0xff。 TL0 = tab5[xms]。 TR0 = 1。 } LED_show(tab[timer],0x02)。i=0x01。 TL0 = tab5[xms]。 TR0 = 1。 } } void main() { uint num=0。 LED_Init()。 // LED_show(tab[3],0x02)。 while((key_rd!=1) amp。 (key_rd!=2) amp。 (key_rd!=3) amp。 (key_rd!=5) amp。 (key_rd!=6) amp。 (key_rd!=7)) { key_rd = test()。 } while(1) { LED_show(tab[3],0x01)。 break。 48 break。 break。 break。 break。 bre
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1