版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、外文資料譯LEDusingdigitaltubedigitaldisplayitshigh-brightness,indicatingtheadvantagesofintuitiveintelligenceiswidelyusedinareassuchasequipmentandhouseholdappliances.AT89C52Thisarticledescribesasingle-chipmicrocomputerasthecore,toatotalofanodehigh-brightnessLEDLEDasadisplaycomposedofsevenfiguresshowthatth
2、epracticaldesignofmulti-functionelectronicclocks,theclockshowsaweek,hour,minute,second,itcanbeswitchedtoyear,month,dayshowedthatthewholepointofmusicatthesametimeandfromtimetotimethealarmtimeandotherfunctionscanalsobeusedforelectronicstopwatch.Clockcircuitistheheartofthecomputer,whichcontrolstherhyth
3、moftheworkofthecomputeristhroughthecompletionofcomplexsequentialcircuitsfunctionindifferentdirections.Clock,sinceitwasinventedthatdayon,people'sliveshasbecomeanindispensabletool,especiallyinthiseraofefficient,theclockisinthehumanproductionandliving,learningandotherfieldsiswidely.However,withthep
4、assageoftime,peoplenotonlytotherequirementsoftheclockisgettinghigherandhigherprecision,andfunctionalrequirementsfortheclockmoreandmore,theclockhasnotonlyatoolusedtodisplaytime,inmanypracticalapplicationsItalsoneedstobeabletoachievemoreotherfunctions.Featuressuchasalarmclock,calendardisplay,temperatu
5、remeasurementfunction,humiditymeasurements,voltagemeasurements,frequencymeasurements,havebeenunder-voltagealarmfunction.Digitalclockstothepeople'sproductionandlifehasbroughtgreatconvenience,butalsogreatlyexpandsthetimefeaturetheoriginalclocks.Suchasregularauto-alarm,Automatictime-ling,timeproces
6、sautomation,fromtimetotimebroadcast,fromclosed-circuitautomaticlights,oventimerswitch,on-offpowerequipment,electricalandevenavarietyoftimingisautomaticallyenabled,allofwhicharebasedondigitalclocksandwatchesbased.Itcanbesaidthatthedesignofthesignificanceofmulti-functionDigitalClockDigitalClockisnotju
7、stitself,agreatersignificanceofthemulti-functiondigitalclockinanumberofreal-timecontrolsystems.Inmanypracticalapplications,aslongasthedigitalclockcircuitoftheprogramsandhardwaretoacertaindegreeofmodificationcouldbeusefulforreal-timecontrolsystem,whichappliedtotheactualworkandproductionto.Thus,digita
8、lclockandtoexpanditsapplications,hasaverypracticalsignificance.Withthedevelopmentofhumancivilization,scienceandtechnology,thereistherequestoftheclockcontinuestoimprove.Clockhasnotonlyseenasatooltodisplaythetime,inmanypracticalapplicationsalsoneedtobeabletoachievemoreotherfunctions.High-precision,mul
9、tifunction,smallsize,lowpowerconsumption,isthedevelopmenttrendofthemodernclock.Inthistrend,digitalclock,multifunctionclockhasbecomethemoderndesignoftheproductionofresearch-leddirection.Thisarticleisbasedonthisdesigndirectionforthecontrolofasingle-chipcoredesignrequirementsofamulti-functionindicators
10、inlinewiththedigitalclock.Thedesignisbasedontheprincipleofsingle-chiptechnologytochipAT89C52single-chipmicrocomputerasthecorecontroller,throughtheproductionofhardwareandsoftwareproceduresforthepreparation,designtoproduceamulti-functionaldigitalclocksystem.Theclocksystemmainlybyclockmodule,alarmmodul
11、e,theambienttemperaturedetectionmodule,liquidcrystaldisplaymodule,controlmoduleandthekeyboardsignalpromptedmodule.Systemissimpleandclearuserinterfacethatcan4V7VDCpowerundernormaloperation.Abletoaccuratelydisplaytime(displayformathh:mm:secondsseconds,24-hoursystem),maybetimetoadjustatanytime,withcloc
12、ktimesettings,alarmon/off,onlytomakefunctions,wheretheclocktomeasuretheambienttemperatureanddisplayed.Hardwareandsoftwaredesignintotheguidingideology,givefullplaytothesingle-chipfeatures,mostofthefunctionsthroughsoftwareprogrammingtoachieve,thecircuitissimpleandclear,highsystemstability.Atthesametim
13、e,theclocksystemalsohasthepowerofsmall,lowcost,andhighlypractical.Systemcomponentsasaresultoflessuse,single-chipoccupiedbytheI/Oportnotmorethan,thesystemhasacertaindegreeofscalability.Clockdesignisnotheoryofdiscretelogic,programmablelogic,orusingfull-customsilicondevicesofanydigitaldesign,inordertos
14、uccessfullyoperateandreliableclockiscrucial.Poordesignoftheclockinthelimitsoftemperature,voltagedeviationorthemanufacturingprocesswillresultinthecasewrong,anddebuggingdifficult,spendingalot.InthedesignofFPGA/CPLDclockwhenseveraltypesofcommonlyused.Clockcanbedividedintothefollowingfourtypes:globalclo
15、ck,clockgating,multi-levellogicclockclockandvolatility.Multi-clocksystemtoincludetheabove-mentionedfourtypesofanycombinationoftheclock.Nomatterwhatmethodsaretherealcircuitclocktreecannotachievetheidealassumptionthattheclock,sowemustbebasedonanidealclock,theclockrealworktobuildamodeltoanalyzethecircu
16、it,soastomakethecircuitperformanceandthepracticalworkasexpected.Clockintheactualmodel,wehavetoconsiderthespreadofclock-treeskew,verticaljumpandabsolutebiasandotheruncertainties.Toregister,theclockwasworkingalongthearrivalofthedataterminalwhenitshouldhavebeenstable,soastoensurethattheworkalongthesamp
17、lingclocktotheaccuracyofthedata,thisdatapreparationtimethatwecallset-uptime(setuptime).Datashouldalsobeworkingalongtheclocktomaintainoveraperiodoftime,thisperiodoftimeknownastheholdtime(holdtime).Globalclockforadesignproject,theglobalclock(orclocksynchronous)isthesimplestandmostpredictableclock.Inth
18、ePLD/FPGAdesignoftheclockthebestoptionsare:byadedicatedglobalclockinputpinsofasinglemasterclock-drivenclockdesignprojectstoeachflip-flop.Aslongaspossibleshouldbeusedinthedesignofglobalclockprojects.PLD/FPGAhasadedicatedglobalclockpins,thedeviceisdirectlyconnectedtoeachregister.Globalclocktoprovidesu
19、chadeviceintheshortestpossibledelaytotheoutputclock.Clock-gatedinmanyapplications,theentiredesignoftheoveralluseofexternalclockisnotpossibleorpractical.WiththeproductofPLDlogicarrayclock(thatis,theclockisgeneratedbythelogic),toallowarbitraryfunctionalonealltriggerclock.However,whenyouusethearraycloc
20、k,theclockshouldbecarefullyanalyzedthefunction,inordertoavoidglitches.Usuallyconstitutethearrayclockclock-gated.Clockgatingofteninterfacewiththemicroprocessor,andusedtheaddresstowritetocontrolthepulseline.However,whenusingcombinationofflip-flopwhentheclockfunction,usuallythereisaclock-gated.Ifthefol
21、lowingconditions,suchasclockgatingcanbeasreliableasglobalclockwork:Drivetheclocklogicmustcontainonlyone"and"thedoorora"or"gate.Ifanyadditionalworkinsomestateoflogic,thecompetitionwillbetheburr.Alogicgateinputastheactualclock,andthelogicgatemustbeofallotherinputastheaddressorcontr
22、ollines,inrelationtotheircompliancewiththeestablishmentandmaintenanceofclocktimebound.Multi-levellogicgeneratedclockwhentheclock-gatinglogicofthecombinationofmorethanone(ormorethantheindividual"and"doorsor"or"gate),theevidenceofthereliabilityofthedesignoftheprojecthasbecomeverydi
23、fficult.Eveniftheprototypeorsimulationresultsshowthatthereisnostaticdangerous,butinfacttheriskmaystillexist.Ingeneral,weshouldnotusemulti-levelcombinationallogictoclocktheflip-flopinthePLDdesign.Traveling-waveclockclockanotherpopularuseoftraveling-wavecircuitistheclock,thatis,theoutputofaflip-flopus
24、edasaclockinputofanotherflip-flop.Ifcarefuldesign,traveling-waveclockcanbethesameastheglobalclocktoworkreliably.However,thetraveling-waveclockmadefromtimetotimewiththecalculationofthecircuitbecomesverycomplicated.Line-wavetraveling-waveclockflip-flopofthechainhaveagreaterclocktimebetweentheoffsetand
25、exceedtheworstcasetheset-uptime,holdtimeandclocktotheoutputcircuitofthedelay,allowingthesystemtotheactualsloweddown.Multi-clocksystem,manysystemrequirementswithinthesamemulti-PLDclock.Themostcommonexampleisthetwoasynchronousinterfacesbetweenmicroprocessors,ormicroprocessorsandasynchronouscommunicati
26、onchannelinterface.Astheclocksignalbetweenthetworequirementstoestablishandmaintainacertaintime,sothattheaboveapplicationfromtimetotimetheintroductionofadditionalconstraints.Theyalsorequestedthatsomeasynchronoussynchronizationsignal.Inmanyapplications,onlythesynchronizationofasynchronoussignalsisnote
27、nough,whenthesystemoftwoormorenon-homologousclock,thedataitisdifficulttoestablishandmaintainthetimetobeassuredthatwewillfacethecomplexmatteroftime.Thebestwayistoallnon-homologousclocksynchronization.PLDinternaluseofthelockloop(PLLorDLL)isaverygood,butnotallofPLDwithaPLL,DLL,andchipPLLwithmostexpensi
28、ve,sounlesstherearespecialrequirements,thegeneraloccasionsPLLcannotusewiththePLD.AtthistimeweneedtotaketoenabletheuseoftheDflip-flop-side,andtheintroductionofahigh-frequencyclock.采用LED數(shù)碼管的數(shù)字顯示以其亮度高、顯示直觀等優(yōu)點被廣泛應用于智能儀器及家用電器等領域.本文介紹一種以AT89C52單片機為核心以共陽極高亮度LED數(shù)碼管作為顯示器件組成7位數(shù)字顯示的實用多功能電子時鐘的設計,該時鐘可顯示星期、時、分、秒,
29、也可切換為年、月、日顯示,同時具有整點音樂報時及定時鬧鐘等功能,也可作電子秒表使用.時鐘電路是計算機的心臟,它限制著計算機的工作節(jié)奏就是通過復雜的時序電路完成不同的指令功能的.時鐘,自從它被創(chuàng)造的那天起,就成為人們生活中必不可少的一種工具,尤其是在現(xiàn)在這個講究效率的年代,時鐘更是在人類生產(chǎn)、生活、學習等多個領域得到廣泛的應用.然而隨著時間的推移,人們不僅對于時鐘精度的要求越來越高,而且對于時鐘功能的要求也越來越多,時鐘已不僅僅是一種用來顯示時間的工具,在很多實際應用中它還需要能夠實現(xiàn)更多其它的功能.諸如鬧鐘功能、日歷顯示功能、溫度測量功能、濕度測量功能、電壓測量功能、頻率測量功能、過欠壓報警功
30、能等.鐘表的數(shù)字化給人們的生產(chǎn)生活帶來了極大的方便,而且大大地擴展了鐘表原先的報時功能.諸如定時自動報警、按時自動打鈴、時間程序自動限制、定時播送、自動起閉路燈、定時開關烘箱、通斷動力設備、甚至各種定時電氣的自動啟用等,所有這些,都是以鐘表數(shù)字化為根底的.可以說,設計多功能數(shù)字時鐘的意義已不只在于數(shù)字時鐘本身,更大的意義在于多功能數(shù)字時鐘在許多實時限制系統(tǒng)中的應用.在很多實際應用中,只要對數(shù)字時鐘的程序和硬件電路加以一定的修改,便可以得到實時限制的實用系統(tǒng),從而應用到實際工作與生產(chǎn)中去.因此,研究數(shù)字時鐘及擴大其應用,有著非?,F(xiàn)實的意義.隨著人類科技文明的開展,人們對于時鐘的要求在不斷地提升.
31、時鐘已不僅僅被看成一種用來顯示時間的工具,在很多實際應用中它還需要能夠實現(xiàn)更多其它的功能.高精度、多功能、小體積、低功耗,是現(xiàn)代時鐘開展的趨勢.在這種趨勢下,時鐘的數(shù)字化、多功能化已經(jīng)成為現(xiàn)代時鐘生產(chǎn)研究的主導設計方向.本文正是基于這種設計方向,以單片機為限制核心,設計制作一個符合指標要求的多功能數(shù)字時鐘.本設計基于單片機技術原理,以單片機芯片AT89C52作為核心限制器,通過硬件電路的制作以及軟件程序的編制,設計制作出一個多功能數(shù)字時鐘系統(tǒng).該時鐘系統(tǒng)主要由時鐘模塊、鬧鐘模塊、環(huán)境溫度檢測模塊、液晶顯示模塊、鍵盤限制模塊以及信號提示模塊組成.系統(tǒng)具有簡單清楚的操作界面,能在4V7V直流電源下
32、正常工作.能夠準確顯示時間顯示格式為時時:分分:秒秒,24小時制,可隨時進行時間調整,具有鬧鐘時間設置、鬧鐘開/關、止鬧功能,能夠對時鐘所在的環(huán)境溫度進行測量并顯示.設計以硬件軟件化為指導思想,充分發(fā)揮單片機功能,大局部功能通過軟件編程來實現(xiàn),電路簡單明了,系統(tǒng)穩(wěn)定性高.同時,該時鐘系統(tǒng)還具有功耗小、本錢低的特點,具有很強的實用性.由于系統(tǒng)所用元器件較少,單片機所被占用的I/O不多,因此系統(tǒng)具有一定的可擴展性.時鐘設計無淪是用離散邏輯、可編程邏輯,還是用全定制硅器件實現(xiàn)的任何數(shù)字設計,為了成功地操作,可靠的時鐘是非常關鍵的.設計不良的時鐘在極限的溫度、電壓或制造工藝的偏差情況下將導致錯誤的行為
33、,并且調試困難、花銷很大.在設計FPGA/CPLD時通常采用幾種時鐘類型.時鐘可分為如下四種類型:全局時鐘、門控時鐘、多級邏輯時鐘和波動式時鐘.多時鐘系統(tǒng)能夠包括上述四種時鐘類型的任意組合.無論采用何種方式,電路中真實的時鐘樹也無法到達假定的理想時鐘,因此我們必須依據(jù)理想時鐘,建立一個實際工作時鐘模型來分析電路,這樣才可以使得電路的實際工作效果和預期的一樣.在實際的時鐘模型中,我們要考慮時鐘樹傳播中的偏斜、跳變和絕對垂直的偏差以及其它一些不確定因素.對于存放器而言,當時鐘工作沿到來時它的數(shù)據(jù)端應該已經(jīng)穩(wěn)定,這樣才能保證時鐘工作沿采樣到數(shù)據(jù)的正確性,這段數(shù)據(jù)的預備時間我們稱之為建立時間(setuptime).數(shù)據(jù)同樣應該在時鐘工作沿過去后保持一段時間,這段時間稱為保持時間(holdtime).全局時鐘對于一個
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 新風系統(tǒng)安裝合同詳細范文
- 房屋買賣協(xié)議合同
- 傳統(tǒng)醫(yī)學師承關系合同書范本
- 廠房承包合同協(xié)議書
- 展廳租賃合同
- 商場租賃合同模板
- 二零二五年度個人貨運車輛維修保養(yǎng)合同范本2篇
- 二零二五年度空白離婚協(xié)議書設計與婚姻法律風險防范合同3篇
- 二零二五年度商鋪租賃合同范本解讀與實操2篇
- 二零二五年度個人房產(chǎn)買賣價格談判合同范本2篇
- 河北省滄州市五縣聯(lián)考2024-2025學年高一上學期期末英語試卷(含答案含含聽力原文無音頻)
- 邊防通行證委托書
- 腫瘤護士培訓課件
- 《浸沒式液冷冷卻液選型要求》
- 我的消防文員職業(yè)規(guī)劃
- 2025年公司品質部部門工作計劃
- 2024年世界職業(yè)院校技能大賽高職組“市政管線(道)數(shù)字化施工組”賽項考試題庫
- 介紹蝴蝶蘭課件
- CSC資助出國博士聯(lián)合培養(yǎng)研修計劃英文-research-plan
- 義務教育歷史課程標準(2022年版)
- GB/T 2550-2016氣體焊接設備焊接、切割和類似作業(yè)用橡膠軟管
評論
0/150
提交評論