【正文】
按鍵模塊 .......................................................................................................... 10 4 軟件設計 .....................................................................................................................11 C 語言與匯編語言 ............................................................................................11 主流程圖設計 ...................................................................................................11 A/D 轉換子程序 ................................................................................................. 12 5 軟件調試 .................................................................................................................... 13 仿真電路圖 ....................................................................................................... 14 顯示結果及誤差分析 ......................................................................................... 14 顯示結果 .................................................................................................. 14 誤差分析 .................................................................................................. 16 6. 結論 ........................................................................................................................ 17 元件清單 ........................................................................................................................ 17 參 考文獻 ........................................................................................................................ 18 謝 辭 ........................................................................................................................... 18 程序附錄 ........................................................................................................................ 19 咸陽師范 學院 2021屆本科畢業(yè)畢業(yè)論文(設計) 5 1 引言 單片機是一種集成電路芯片,采用超大規(guī)模技術把具有數據處理能力 (如算術運 算,邏輯運算、數據傳送、中斷處理 )的微處理器 (CPU)。 傳統的指針式電壓表功能單一、精度低,不能滿足數字化時代的需求,采用單片機的數字電壓表,由精度高、抗干擾能力強,可擴展性強、集成方便。 本課題設計的數字多用表主要由 : 時鐘模塊、 A/D 轉換模塊、數據處理模塊、按鍵模塊顯示模塊,這四大模塊組成。隨著技術的發(fā)展,單片機片內集成的功能越來越強大,并朝著 SOC( System on Chip)方向發(fā)展 。各位口線是有完全相同但又相互獨 立的邏輯電路。 P1 口地址為 90H,位地址為 90H~ 97H。 P3口: P3口是一組帶有內部上拉電阻的 8位雙向 I/O口。 /EA(訪問程序存儲器控制信號 ):當 EA 信號為低電平時,對 ROM的讀操作是針對外部程序存儲器的;當 EA 信號為高電平時,對 ROM 的操作是從內部程序存儲器開始,并可延續(xù)至外部程序存儲器。 8位 A/D轉換器是逐漸逼近式,有控制與時序電路、逐次逼近寄存器、樹狀開關以及 256R 電阻階梯網絡等組成。 地 址 選中通道 ADDC ADDB ADDA 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 IN0 IN1 IN2 IN3 IN4 IN5 IN6 IN7 圖 5 地址信號與選中通道的關系 基于單片機的多路數字電壓表設計 ( 4) VR(+)、 VR():正、負參考電壓輸入端,用于提供片內 DAC電阻網絡的基準電壓。該信號在 A/D 轉換過程中為低電平,其余時間為高電平。 START 的上升沿將逐次逼近寄存器 SAR 復位,在該上升沿之后的 2μ s加 8 個時鐘周期內(不定 ), EOC信號將變低電平,以指示轉換操作正在進行中,直到轉換結束后 EOC才變成高電平。 VDD:接 5V正電源。 圖 8 按鍵處理電路圖 咸陽師范 學院 2021屆本科畢業(yè)畢業(yè)論文(設計) 5 4 軟件設計 C 語言與匯編語言 匯編語言和 C 語言各有特點。 主流程圖設計 主程序流程圖如圖 9 所示。 圖 13 輸入電壓為 時, LCD顯示結果 入電壓值為 時,顯示結果如圖 14 所示,測量誤差為 +。待測的模擬量首先經過 A/D 轉換模塊,轉換成為單片機能夠識別和處理的數字信號;然后,單片機對此數字信號進行數據處理;最后 ,測量結果通過顯示模塊顯示出來。在論文的寫作過程中, 她 給了我許許多多的幫助和關懷。 同時,他們也給了我很多無私的幫助和支持,在 此 深表謝意 。 sbit key1=P1^0。 RS=0。 EN=0。 RS=1。 wc51r(0x06)。 ST=1。 while (EOC==0)。y0xff。 ET0=1。)。D39。 wc51r(0xC0)。L39。 wc51ddr(39。 temp=(temp*100)/51。 for (i=0。s antiracism taskforce, is in London for the Football Association39。 May be back in the past, to oneself the paranoid weird belief disillusionment, these days, my mind has been very messy, in my mind constantly. Always feel oneself should go to do something, or write something. Twenty years of life trajectory deeply shallow, suddenly feel something, do it. 一字開頭的年齡已經到了尾聲。t want to give vent to out your inner voice can be in the high school children of the feelings in a period, but was eventually infarction when graduation party in the throat, later again stood on the pitch he 基于單片機的多路數字電壓表設計 has sweat profusely, looked at his thrown a basketball hoops, suddenly found himself has already can39。那些曾經所謂的非做不可,只是青蔥年華里自己給自己注射的一支強心劑,或者說,是自以為是的精神寄托罷了。ll be traveling fast, so despite the distance, it will not be like diving into the deep end of a pool. It will be like he is diving into the shallow end. Skydiver preps for the big jump When he jumps, he is expected to reach the speed of sound 690 mph (1,110 kph) in less than 40 seconds. Like hitting the top of the water, he will begin to slow as he approaches the more dense air closer to Earth. But this will not be enough to stop him pletely. If he goes too fast or spins out of control, he has a stabilization parachute that can be deployed to slow him down. His team hopes it39。突然想到那件藍格子襯衫;那些被折成各種各樣形狀的信紙;那段從街角深巷伊始的友誼;還有那場還沒有開始就宣告了終結的邂逅計劃 …… 那些年那些天的非做不可,終于和青春一樣,都將在我們的人生中謝幕。也曾經好像已經下定了 決心去做某件事,但更多的時候是最后又打起了退堂鼓。t really grow up, it seems is not so important。s actions. CSKA said they were surprised and disappointed by Toure39。t charge you more than 35% of your pensation if you win the case. If you are thinking about signing up for a damagesbased agreement, you should make sure you39。 wc51ddr(chnumber+0x30)。 if (chnumber==8) chnumber=0。E39。)。:39。)。 wc51ddr(39。 TH0=246。ji。 基于單片機的多路數字電壓表設計