【正文】
。 timer0h=FREQH[k]。 timer0l=FREQL[k]。 time=sszymmh[i+2]。 i=i+3。 TH0=timer0h。 TL0=timer0l。 TR0=1。 delayyy(time)。 } }}五 調(diào)試和燒錄 編程工具—C51語言STC89C51單片機(jī)的應(yīng)用程序設(shè)計(jì),使用C51語言進(jìn)行程序設(shè)計(jì)雖然相對(duì)于匯編語言代碼效率有所下降,但可以方便地實(shí)現(xiàn)程序設(shè)計(jì)模塊化,代碼結(jié)構(gòu)清晰、可讀性強(qiáng),易于維護(hù)、更新和移植,適合較大規(guī)模的單片機(jī)程序設(shè)計(jì)。近年來,隨著C51語言的編譯器性能的不斷提高,在絕大多數(shù)應(yīng)用環(huán)境下,C51程序的執(zhí)行效率已經(jīng)非常接近匯編語言,因此,使用C51進(jìn)行單片機(jī)程序設(shè)計(jì)已經(jīng)成為單片機(jī)程序設(shè)計(jì)的主流選擇之一。 程序調(diào)試工具—KEIL本設(shè)計(jì)的軟件都是在Keil uVision2,上進(jìn)行編寫,編譯,調(diào)試以及運(yùn)行操作。 單片機(jī)仿真軟件在線調(diào)試—PROTEUS。 open design選項(xiàng),找到所需的元器件,元器件上單擊右鍵選中,再單擊左鍵對(duì)其進(jìn)行命名和賦值,接著在編輯器左邊的一欄中,找出并繪制設(shè)計(jì)所要的各種元器件,按照電路圖連接后并保存。:雙擊51單片機(jī),在對(duì)話框中把保存過的hex文件打開,再單擊確定。 ,進(jìn)行軟件仿真調(diào)試,直到出現(xiàn)正確的結(jié)果。 單片機(jī)燒錄工具—PZISP使用了PZISP燒錄工具進(jìn)行了燒錄,找到要燒錄的hex文件,然后找到適當(dāng)?shù)挠?jì)算機(jī)端口,調(diào)好晶振頻率,最后按下載按鍵進(jìn)行燒錄。 調(diào)試總結(jié) (1)在仿真調(diào)試過程中,由于對(duì)電路的了解不夠,出現(xiàn)很多元件放置錯(cuò)誤,導(dǎo)致仿真出錯(cuò),經(jīng)過一次重新的調(diào)整布局,LCD才出現(xiàn)應(yīng)有顯示的頁(yè)面。不多仿真,更正了程序中的錯(cuò)誤,優(yōu)化程序?qū)τ趯?shí)物的調(diào)試,LCD顯示模糊,經(jīng)過檢查發(fā)現(xiàn)LCD的VO腳的可調(diào)電阻以壞,無法調(diào)試,換掉后,LCD屏幕的對(duì)比度可調(diào)。六 制作感想經(jīng)過兩個(gè)星期的系統(tǒng)流程設(shè)計(jì)、編程設(shè)計(jì)、仿真調(diào)試、硬件電路設(shè)計(jì)、硬件電路調(diào)試等,最終把本設(shè)計(jì)完整做好。整個(gè)過程遇到了不少意料不到的問題。剛開始,由于對(duì)整個(gè)系統(tǒng)沒有詳細(xì)的策劃,走一步,進(jìn)一步,最終導(dǎo)致一些功能出現(xiàn)矛盾。如萬年歷置數(shù),運(yùn)行、鬧鐘置數(shù),運(yùn)行、音樂運(yùn)行等,同時(shí)出現(xiàn)的處理不當(dāng)。對(duì)于一個(gè)制作電路新手,在仿真軟件中正常運(yùn)行的程序,在焊接正常的實(shí)體硬件電路中出現(xiàn)錯(cuò)誤是最大的障礙,無從下手,最后請(qǐng)教師兄才發(fā)現(xiàn):仿真是在元件參數(shù)理想的狀態(tài)下進(jìn)行的;實(shí)體硬件電路中,焊接前要逐一檢測(cè)元件的參數(shù)是否正常,焊接后,對(duì)應(yīng)焊點(diǎn)的電壓是否正常等等。這也是往后硬件搭建制作的必走之路。在此,非常感謝老師的耐心教導(dǎo),在指導(dǎo)下進(jìn)行了STC89C51的從入門到掌握控制,及項(xiàng)目制作。謝謝老師。七 參考文獻(xiàn)參考文獻(xiàn)[1]《單片微型計(jì)算機(jī)與接口技術(shù)》 第4版 李群芳 肖 看 張士軍編著 電子工業(yè)出版社 [2]《單片機(jī)實(shí)驗(yàn)與課程設(shè)計(jì)(Proteus仿真版)》 樓然苗編著 浙江大學(xué)出版社[3]《MCS51系列單片機(jī)實(shí)用編程88例》 賀哲榮編著 中國(guó)電力出版社2011[4]《C語言設(shè)計(jì)基礎(chǔ)教程》 張廣路 金玲玲 蘇莉 白麗媛 編著 電子工業(yè)出版社 [5]《51單片機(jī)應(yīng)用設(shè)計(jì)與仿真》 丁明亮,唐前輝主編 北京航空航天大學(xué)出版社 [6]《電路原理》 第五版 原著 邱光源 修訂 羅先覺 高等教育出版社[7]《感悟設(shè)計(jì)》 王偉 主編 北京航天航空大學(xué)出版社[8]《電子工藝技能實(shí)訓(xùn)》 魏曉慧 主編 科學(xué)出版社g an employment tribunal claimEmployment tribunals sort out disagreements between employers and employees.You may need to make a claim to an employment tribunal if: you don39。t agree with the disciplinary action your employer has taken against you your employer dismisses you and you think that you have been dismissed unfairly.For more information about dismissal and unfair dismissal, seeDismissal.You can make a claim to an employment tribunal, even if you haven39。tappealedagainst 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 it.If you are worried about how the time limits apply to you, take advice from one of the organisations listed underFurther 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 organisations listed underFurther help.If you are being represented by a solicitor at the tribunal, they may ask you to sign an agreement where you pay their fee out of your pensation if you win the case. This is known as adamagesbased agreement. In England and Wales, your solicitor can39。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。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 onnearest CAB.For more information about making a claim to an employment tribunal, seeEmployment tribunals.The (lack of) air up there Watch mCayman Islandsbased Webb, the head of Fifa39。s antiracism taskforce, is in London for the Football Association39。s 150th anniversary celebrations and will attend City39。s Premier League match at Chelsea on Sunday.I am going to be at the match tomorrow and I have asked to meet Yaya Toure, he told BBC Sport.For me it39。s about how he felt and I would like to speak to him first to find out what his experience was.Uefa hasopened disciplinary proceedings against CSKAfor the racist behaviour of their fans duringCity39。s 21 win.Michel Platini, president of European football39。s governing body, has also ordered an immediate investigation into the referee39。s actions.CSKA said they were surprised and disappointed by Toure39。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。 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)到了尾聲。或許是愧疚于自己似乎把轉(zhuǎn)瞬即逝的很多個(gè)不同的日子過成了同一天的樣子;或許是追溯過去,對(duì)自己那些近乎偏執(zhí)的怪異信念的醒悟,這些天以來,思緒一直很凌亂,在腦海中不斷糾纏??傆X得自己自己似乎應(yīng)該去做點(diǎn)什么,或者寫點(diǎn)什么。二十年的人生軌跡深深淺淺,突然就感覺到有些事情,非做不可了。The end of our life, and can meet many things really do? 而窮盡我們的一生,又能遇到多少事情是真正地非做不可?During my childhood, think lucky money and new clothes are necessary for New Year, but as the advance of the age, will be more and more found that those things are optional。 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。t really grow up, it seems is not so important。 Then in high school, think don39。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 th