【正文】
=0。 Calls: DelayN40us(unsigned int n)。 Input: unsigned char dat 寫入的命令 Output: 無 Return: 無***********************************************************/void LCDWriteCommand(unsigned char dat){ LCD_DB=dat。/*設(shè)定輸入方式,增量不移位*/ LCDWriteCommand(0x01)。 Calls: void LCDWriteCommand(unsigned char dat)。 unsigned char j。 } count_time = 0。 divite_num(ax)。 sel_Ax(ax)。 LCDDispString(9,2,V)。}void dep_key_scan(void) //獨立鍵盤掃描子函數(shù) { // P1 |= 0x18。 dispbuf[2]=(int)(AD_res[Ax]*10)%10+48。 0x04) == 0x04) ADDC = 0。unsigned int ax = 0。sbit EOC=P3^1。并且我學(xué)會了分析問題解決問題的能力,加深了對所學(xué)理論知識的理解和運用。(1)在測試中遇到LCD液晶為不顯示時,首先使用試測儀對電路進行測試,觀察是否存在漏焊,虛焊,或者元件損壞.經(jīng)過一系列的問題查找后系統(tǒng)最終能正常工作,并完成所有的功能。回想這些問題只要認(rèn)真多思考都是可以避免的,以下為主要的問題:一開始的時候把ADC0809的數(shù)據(jù)線接錯了一根導(dǎo)致不能正常的采集數(shù)據(jù),后來修正后便正常工作。temp[3] = dat/10%10。address=0x80+x。LCD_DB=dat。i)for(j=0。 LCDDispString(5,2,dispbuf)。 //獲取電壓值 cov2V(getdata,ax)。 while(1) { if(ax==8) ax=0。 LCDDispString(2,1,CH voltage)。 y)。圖31系統(tǒng)流程圖 軟件任務(wù)分析和硬件電路設(shè)計結(jié)合進行,哪些功能由硬件完成,哪些任務(wù)由軟件完成,在硬件電路設(shè)計基本定型后,也就基本上決定下來了。 EOC: A/D轉(zhuǎn)換結(jié)束信號,輸出,當(dāng)A/D轉(zhuǎn)換結(jié)束時,此端輸出一個高電平(轉(zhuǎn)換期間一直為低電平)。主體部分是采用逐次逼近式的A/D轉(zhuǎn)換電路,由CLK控制的內(nèi)部電路的工作,START為啟動命令,高電平有效,啟動ADC0809內(nèi)部的A/D轉(zhuǎn)換,當(dāng)轉(zhuǎn)換完成,輸出信號EOC有效,OE為輸出允許信號,高電平有效,打開輸出三態(tài)緩沖器,把轉(zhuǎn)換后的結(jié)果送DB。用STC89C52的P2口作為數(shù)據(jù)線,、R/W、RS。和CRT顯示器相比,LCD的優(yōu)點是很明顯的。8. 片內(nèi)振蕩器和時鐘產(chǎn)生電路,但石英晶體和微調(diào)電容需要外接。STC89C52單片機的基本組成框圖見圖22。362. 總體方案論證與設(shè)計本系統(tǒng)以STC89C52單片機為控制核心,對系統(tǒng)進行初始化,主要完成對鍵盤的響應(yīng)、LCD顯示、AD采集等功能的控制,起到總控和協(xié)調(diào)各模塊之間工作的作用。基于單片機電壓表式采用數(shù)字化測量技術(shù)設(shè)計的電壓表。廣州大學(xué)松田學(xué)院 畢業(yè)論文(設(shè)計)題 目 基于單片機的數(shù)字電壓表基于單片機的數(shù)字電壓表設(shè)計摘要:隨著電子科學(xué)技術(shù)的發(fā)展,電子測量成為廣大電子工作者必須掌握的手段,對測量的精度和功能的要求也越來越高,而電壓的測量甚為突出,因為電壓的測量最為普遍。具有讀數(shù)直觀、準(zhǔn)確、顯示范圍寬、分辨率高、輸入阻抗大、集成度高、功耗小、抗干擾能力強,可擴展能力強等特點,本設(shè)計從各個角度分析了由單片機組成的數(shù)字電壓表的設(shè)計過程及各部分電路的組成及其原理,并且分析了程序如何驅(qū)動單片機進而使系統(tǒng)運行起來的原理及方法。圖21系統(tǒng)結(jié)構(gòu)框圖本系統(tǒng)結(jié)構(gòu)如圖21所示,本設(shè)計可分為以下模塊:單片機主控模塊、鍵盤模塊、液晶模塊、AD采集模塊。圖22 STC89C52單片機結(jié) STC89C52單片機主要特性1. 一個8 位的微處理器(CPU)。最高允許振蕩頻率為12MHz。由于通過控制是否透光來控制亮和暗,當(dāng)色彩不變時,液晶也保持不變,這樣就無須考慮刷新率的問題。其中E是下降沿觸發(fā)的片選信號,R/W是讀寫信號,RS是寄存器選擇信號本模塊設(shè)計要點如下:顯示模塊初始化:首先清屏,再設(shè)置接口數(shù)據(jù)位為8位,顯示行數(shù)為1行,字型為57點陣,然后設(shè)置為整體顯示,取消光標(biāo)和字體閃爍,最后設(shè)置為正向增量方式且不移位。 ADC0809管腳圖轉(zhuǎn)換數(shù)據(jù)的傳送 A/D轉(zhuǎn)換后得到的數(shù)據(jù)應(yīng)及時傳送給單片機進行處理。 OE:數(shù)據(jù)輸出允許信號,輸入,高電平有效。軟件任務(wù)分析環(huán)節(jié)是為軟件設(shè)計做一個總體規(guī)劃。}void dep_key_scan(void) //獨立鍵盤掃描子函數(shù) { // P1 |= 0x18。 LCDDispString(9,2,V)。 sel_Ax(ax)。 divite_num(ax)。 } count_time = 0。j2。 LCD_RS=0。 YES NO 顯示在第一排的時候的x的地址 顯示在第二排的時候的x的地 址LCD Write Command(address)。temp[4] = dat%10。單片機的多路電壓采集系統(tǒng)是多功能的數(shù)字型,所以對于它的程序也較為復(fù)雜,所以在編寫程序和調(diào)試時出現(xiàn)了相對較多的問題。ChanelVoltageCh1Ch2Ch3Ch4Ch5Ch6Ch7通過這次畢業(yè)設(shè)計,我學(xué)到了不少課本上沒有的知識,也鍛煉了自己的動手能力,將以前學(xué)過的零散的知識串到一起。我的動手能力得到了很大的提高,創(chuàng)新意識得到了鍛煉。sbit ADDA = P1^5。void sel_Ax(unsigned char Ax){ if((Ax amp。 else ADDC = 1。 dispbuf[3]=(int)(AD_res[Ax]*100)%10+48。 //每次掃描前,先將接鍵盤的引腳口拉高 if(key_1 == 0) //如果檢測到有鍵按下 { delayms(10)。 TMOD=0x01。 //選擇通道 ST=0。 OE=0。 } }}void t0(void) interrupt 1 using 0{ TH0=(6553650000)/256。 for(i=n。 DelayN40us(unsigned int n)。/*清除屏幕顯示*/ DelayN40us(100)。 LCD_RS=0。 Called By: void LCDInit(void)。 DelayN40us(1)。 if(y==1) address=0x80+x。 Called By: main()。 Called By: main()。及其他 Input: X(015),y(12),dat(065536)。amp。 your employer dismisses you and you think that you have been dismissed unfairly.For more information about dismissal and unfair dismissal, seet charge you more than 35% of your pensation s 150th anniversary celebrations and will attend City39。s actions.CSKA said they were surprised and disappointed by Toure39。t really grow up, it seems is not so important。也曾經(jīng)好像已經(jīng)下定了決心去做某件事,但更多的時候是最后又打起了退堂鼓。突然想到那件藍格子襯衫;那些被折成各種各樣形狀的信紙;那段從街角深巷伊始的友誼;還有那場還沒有開始就宣告了終結(jié)的邂逅計劃……那些年那些天的非做不可,終于和青春一樣,都將在我們的人生中謝幕。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 jumpWhen 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。那些曾經(jīng)所謂的非做不可,只是青蔥年華里自己給自己注射的一支強心劑,或者說,是自以為是的精神寄托罷了。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。 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. 一字開頭的年齡已經(jīng)到了尾聲。s about how he felt and I would like to speak to him first to find out what his experience was.Uefa hasa damagesbased agreement, you should make sure you39。t for(j=0。/*分離萬千百十個各個位臨時存儲*/ temp[0] = dat/10000%10。 Output: 無 Return: 無***********************************************************/void LCDDispString(unsigned char x,unsigned char y,unsigned char *string){ while(*string != 0)