【正文】
,WR1和 WR2直接接低電平, DAC0832隨時轉 換輸入的數(shù)據,這種方式比較簡單,占用的 I/O口也比較少,但是當需要 I/O口做擴展的時候容易受到干擾。 獨立式鍵盤就是一個 I/O口擴展一個開關,這種方式程序編寫比較容易,只需要檢測單片機 I/O 某一時刻是否為低電平就能檢測出其的按鍵輸入情況,而且按鍵和 I/O口一一對應,所以能夠輕松識別按鍵的值,缺點是由于一個 I/O口只能連接一個按鍵,當按鍵數(shù)量比較多的時候,勢必占用了大量的 I/O 口,對系統(tǒng)的擴展造成巨大的困難。但是采用專門的鍵盤電路芯片會加大設計的成本。 GND1f2g3e4d5GND6c8DP7b9a10abcdefgdpabcdefgdpV C C 圖 常用的數(shù)碼管包括共陰極和共陽極兩種。這種方法的優(yōu)點是占用 CPU時間少,顯示便于監(jiān)測和控制。所謂動態(tài)掃描顯示即輪流向各位數(shù)碼管送出字形碼和相應的位選,利用發(fā)光管的余輝和人眼視覺暫留作用,使人的感覺好像各位數(shù)碼管同時都在顯示。 通常要得到偏移二進制碼,可以通過求原有二進制的補碼,再加上 80H,并舍棄其進位,使得其成為偏移二進制碼。計數(shù)器的數(shù)值經過 32 選 1 譯碼器譯碼后可用于控制模擬開關, 32個模擬開關相當于電位器的 32個軸頭,電阻陣列由采用集成電路工藝制作的 31 個串聯(lián)一起的電阻構成,電阻兩端分別連接模擬開關的一端,而模擬開關的另一端連接在一起構成數(shù)字電位器的滑動端( VW),譯碼器的輸出端可控制模擬開關的通斷,從而實現(xiàn)滑動軸頭位置的變化。片內有上拉電阻,使 /PU懸空保持高電平,如果 /PU 接地或則邏輯低電平的時候,在經過一個去抖時間后,將把滑動端移動到下一個鄰接的較高的抽頭位置。 Vw:滑動端,相當于機械電位器的可移動端。 VCC:電源管腳。 按鍵子程序 本次設計由于要求對幅值和頻率進行控制,所以要求用相關的按鍵輸入,前面已經介紹了各種按鍵的優(yōu)缺點,最后選擇了獨立式鍵盤,分別為 +頻率, +幅值,模式選擇 5位,共占用 5個 IP口,選擇 P2口的高 5位作為按鍵輸入。 Freq+:頻率 +位, 用于調整中斷時間。 頻率的選擇則是通過 FREQ+和 FREQ進行選擇的,當執(zhí)行頻率調節(jié)子程序的時候,通過改變定時的初值實現(xiàn)的, 當使用 12M 晶振時候,正弦表位 256 位時,理想中最大的頻率可以達到 4KHz,當頻率為 10Hz 的時候,計數(shù)初值為 390。 開始設 計方案,總感覺自己還是有許多的東西弄不太清楚,于是就請教同學。 我以為這些做好了,構思也有了,寫程序應該是相對容易的。后面的路還很長,我還 會 努力 ! 河南城建學院本科畢業(yè)設計論文 總結 23 參考文獻 [1] 賈金玲 .微型計算機原理與接口技術課程設計指導 .重慶:重慶大學出版, [2] 賈金玲 .微型計算機原理與接口技術 .重慶:重慶大學出版社, [3] 周明德 .微型計算機系統(tǒng)原理及應用(第四版) .北京:清華大學出版社, 2022 [4] 周 林 殷狹 .數(shù)據采集與分析技 術 .西安:西安電子科技大學出版社, [5] 李相偉 .微機系統(tǒng)原理與接口技術 .北京:國防工業(yè)出版社, 2022 [6] 楊天怡 黃勤 .微型計算機控制技術 .重慶:重慶大學出版社, 1996 [7] 劉迎春 葉湘檳 .傳感器原理設計與應用(第四版) .長沙:國防科技大學出版社, 2022 [8] 賈金玲 姚婭川 .單片機原理及應用 .成都:電子科技大學出版社, 2022 [9] 李群芬 肖看 .單片機原理、接口及應用 嵌入式系統(tǒng)技術基礎 .武漢:清華大學出 版社, 2022 [10] 沈蘭蓀 .數(shù)據采集技術 .合肥:中國科技大學出版社, 1991 [11]Stephen Primer :Sams,2022 [12] 16Bit Microcrotrallers in :Ended,2022 [13]Robotics. A Beginner’s Guide to Robotics Projects Using the PICmicro English:Oxford,1997 河南城建學院本科畢業(yè)設計論文 附錄 A:系統(tǒng)程序 24 附錄 A:系統(tǒng)程序 include define uchar unsigned char define uint unsigned int sbit du=P2^0。 sbit CS=P3^0。//定義了計數(shù)初值 unsigned long freq。 void delay(uint a) { uint y。 } } void DAC0832(uchar date) { WR=0。 CS=1。 if (amplflag==9)) amplflag=9。z++) { PU=0。 if(( amplflag==1)) amplflag=1。z++) { PD=0。 else chuzhi+=50。 河南城建學院本科畢業(yè)設計論文 附錄 A:系統(tǒng)程序 28 P2=0xf8。 temp=P2。break。break。 temp=P2。//幅值位 updata[2]=(uchar)(freq/1000)。 } void main() { TMOD=0x11。 TL1=(655365000)%256。 TR0=1。 TL0=(65536chuzhi)%256。 else DAC0832(0xff)。 else temp=(256i)*2。 TL0=(655365000)%256。 河南城建學院本科畢業(yè)設計論文 附錄 A:系統(tǒng)程序 31 du=1。 y=1。 } g an employment tribunal clai Employment tribunals sort out disagreements between employers and employees. You may need to make a claim to an employment tribunal if: ? you don39。re clear about the terms of the agreement. It might be best to get advice from an experienced adviser, for example, at a Citizens Advice Bureau. To find your nearest CAB, including those that give advice by , click on nearest CAB. For more information about making a claim to an employment tribunal, see Employment tribunals. The (lack of) air up there 河南城建學院本科畢業(yè)設計論文 附錄 A:系統(tǒng)程序 32 Watch mCayman Islandsbased Webb, the head of Fifa39。s about how he felt and I would like to speak to him first to find out what his experience was. Uefa has opened disciplinary proceedings against CSKA for the racist behaviour of their fans during City39。s plaint. In a statement the Russian side added: We found no racist insults from fans of CSKA. Age has reached the end of the beginning of a word. May be guilty in his seems to passing a lot of different life became the appearance of the same day。二十年的人生軌跡深深淺淺,突然就感覺到有些事情,非做不可了。 Then in high school, think don39。 A person39。t remember his appearance. 河南城建學院本科畢業(yè)設計論文 附錄 A:系統(tǒng)程序 33 童年時,覺得壓歲錢和新衣服是過年必備,但是隨著年齡的推進 ,會越來越發(fā)現(xiàn),那些東西根本就可有可無;初中時,以為要有一場暗戀才意味著真正的成長,但三年過去后,自己心平氣和的寫同學錄的時候,突然就發(fā)現(xiàn)是不是真正的成長了,好像并沒有那么重要了;然后到了高中,覺得非要吐露出自己的心聲才能為高中生涯里的懵懂情愫劃上一個句點,但畢業(yè)晚會的時候最終還是被梗塞在了咽喉,后來再次站在他曾經揮汗如雨的球場,看著他投過籃球的球框時,突然間發(fā)現(xiàn)自己已經想不起他的容顏。 Junior high school, thought to have a crush on just means that the real growth, but over the past three years later, his writing of alumni in peace, suddenly found that isn39?;蛟S是愧疚于自己似乎把轉瞬即逝的很多個不同的日子過成了同一天的樣子;或許是追溯過去,對自己那些近乎偏執(zhí)的怪異信念的醒悟,這些天以來,思緒一直很凌亂,在腦海中不斷糾纏。s governing body, has also ordered an immediate investigation into the referee39。s 150th anniversary celebrations and will attend City39。t appealed against the disciplinary action your employer has taken against you. However, if you win your case, the tribunal may reduce any pensation awarded to you as a result of your failure to appeal. Remember that in most cases you must make an application to an employment tribunal within three months of the date when the event you are plaining about happened. If your application is received after this time limit, the tribunal will not usually accept i. If you are worried about how the time limits apply to you, take advice from one of the anisations listed under Further help. Employment tribunals are less formal than some other courts, but it is still a legal process and you will need to give evidence under an oath or affirmation. Most people find making a claim to an employment tribunal challenging. If you are thinking about making a claim to an employment tribunal, you should get help straight away from one of the anisations listed under Further help. If you are being represented by a solicitor at the tribunal, they may ask you to sign an agreement where you pay their