電子大賽儀表篇數(shù)字萬用表jhd12864c_第1頁
電子大賽儀表篇數(shù)字萬用表jhd12864c_第2頁
電子大賽儀表篇數(shù)字萬用表jhd12864c_第3頁
電子大賽儀表篇數(shù)字萬用表jhd12864c_第4頁
電子大賽儀表篇數(shù)字萬用表jhd12864c_第5頁
已閱讀5頁,還剩9頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領

文檔簡介

LIMITPIN1Ground2PowerSupply3LCDDriveAdjust45H:READ;6EICselect7DATA8HDATA9LDATAStandardVDD--VVDDVLCDDriveVoltage--V--V--V-VLIMITPIN1Ground2PowerSupply3LCDDriveAdjust45H:READ;6EICselect7DATA8HDATA9LDATAStandardVDD--VVDDVLCDDriveVoltage--V--V--V-V0-VStandardSupplyVDD-0VLCDVDD-0VInput0VACCharacteristics(Vdd=5V±10%,Vss=0VMPUEEhighlevelElowlevelEriseEfailAddressholdDatadelay--ACCharacteristics(Vdd=5V±10%,Vss=0VMPUEEhighlevelElowlevelEriseEfailAddressholdDatadelayDataholdDatahold--DATADATADATADATADATASelectsignal1,HighSelectsignal2,HighResetsignal,low-LCDDrivenegativeBackLEDBackLEDMPUWriteMPUReadMPUWriteMPUReadI/OInputbuffercontrolsthestatusbetweentheenableanddisableofchip.UnlesstheCS1orCS2isinactivemode,inputoroutofdataandinstructiondonotexecute.ThereforeinternalstateisnotchangedButRSTBcanoperateregardlessofCS1andCS2.InputInputregisterisprovidedtointerfacewithMPUwhichisdifferentoperatingfrequency.InputregisterstoresthedatatemporarilybeforewritingitintodisplaydataRAM.WhenCS1orCS2isintheactivemode,R/WandRSselecttheinputregister.ThedatafromMPUiswrittenintoinputregisterandthenwriteitintodisplaydataRAM.DataislatchedwhenfallingoftheEsignalandwrittenautomaticallyintothedisplaydataRAMbyinternaloperation.OutputOutputregisterstoresthedatatemporarilyfromdisplaydataRAMwhenCS1orCS2isinactivemodeandR/WandRS=H.StoreddataindisplaydataRAMislatchedinoutputregister.WhenCS1orCS2isinactivemodeandR/W=H,RS=L,statusdata(busycheck)canbereadout.ToreadthecontentsofdisplaydataRAM,twiceaccessofreadinstructionisneeded.Infirstaccess,dataindisplaydataRAMislatchedintooutputregister.Insecondaccess,MPUcanreaddatawhichislatched.ThatistoreadthedataindisplaydataRAM,itneedsdummyread.Butstatusreaddoesnotneeddummy001Statusread(busy10Datawrite(frominputregistertodisplaydata1Dataread(fromtodisplaydataRAMtooutputSystemresetcanbeinitializedbysettingRSTBterminalatlowlevelSystemresetcanbeinitializedbysettingRSTBterminalatlowlevelwhenturningpoweron,instructionfromMPU.WhenRSTBbecomeslow,followingprocedureis-Display-Displaystartlineregisterbecomesetby0.(Z-addressWhileRSTBislowlevel,noinstructionexceptstatusreadcanbeaccepted.ResetstatusappearsadDB4.AfterDB4islow,anyinstructioncanbeaccepted.TheconditionsofpowersupplyatinitialpowerupareshownintableTable1.PowerSupplyInitialBusyBusyflagindicatesthatKS0108Bisoperatingornotoperating.WhenbusyflagisKS0108Bisinternaloperating.Whenbusyflagislow,KS0108Bcanacceptthedataorinstruction.DB7indicatesbusyflagoftheDisplayON/OFFFlip-Thedisplayon/offflip-flopmakeson/offtheliquidcrystaldisplay.Whenflop-flopisreset(logicallow).selectivevoltageornonselectivevoltageappearsonsegmentoutputterminals.Whenflip-flopisset(logicalhigh).nonselectivevoltageappearsonsegmentoutputterminalsregardlessofdisplayRAMdata.Thedisplayon/offflip-flopcanchangestatusbyinstruction.ThedisplaydataatallsegmentdisappearwhileRSTBislow.Thestatusoftheflop-flopisoutputtoDB5byreadXpageXpageregisterdesignatespageoftheinternaldisplaydataRAM.Ithasnotcountfunction.AnaddressissetbyYAddressResetRiseYaddresscounterdesignatesaddressoftheinternaldisplaydataRAM.Anaddressissetbyinstructionandisincreasedby1automaticallybyreadorwriteYaddresscounterdesignatesaddressoftheinternaldisplaydataRAM.Anaddressissetbyinstructionandisincreasedby1automaticallybyreadorwriteoperationsofdisplayDisplayDataDisplaydataRAMstoresadisplaydataforliquidcrystaldisplay.Toexpressonstateofdotmatrixofliquidcrystaldisplay.writedata1.Theotherway.offstatewritesDisplayStartLineThedisplaystartlineregisterindicatesaddressofdisplaydataRAMtodisplaytoplineofliquidcrystaldisplay.Bitdata(DB0:5)ofthedisplaystartlinesetinstructionsislatchedindisplaystartlineregister.ItisusedforscrollingoftheliquidcrystaldisplayDisplayControlThedisplaycontrolinstructionscontroltheinternalstateoftheKS0108B.InstructionisreceivedfromMPUtoKS0108Bforthedisplaycontrol.ThefollowingtableshowsvariousD000011111Controlsthedisplayonoroff.InternalstatusanddisplayRAMdataarenotaffected.SetSetPage000000011101Yaddress(0- SetstheYaddressintheYaddressSetstheXaddressattheXaddressIndicatesthedisplaydatadisplayedatthetopoftheStatus0100000Read 01:Inoperation 0:Display1:Display 01Giveaexample(Only*Ifmodulecan’tproducenegativevoltage,exteriorinputsnegativevoltagefromPIN(VO).Ifitcan,directlyusingorfixedresistancesuchasdrawing,thatmaynotGiveaexample(Only*Ifmodulecan’tproducenegativevoltage,exteriorinputsnegativevoltagefromPIN(VO).Ifitcan,directlyusingorfixedresistancesuchasdrawing,thatmaynot如有,則可如圖直接用電位器或固定電阻,不考慮VEE。Programexample(Only#include<reg51.h>typedefunsignedchartypedefunsignedint ====WriteDisplay10WriteWritesdata(DB0:7)intodisplay instruction,Yaddressisby1ReadDisplay11ReadReadsdata(DB0:7)fromdataRAMtothedatasbitL_SET=sbitL_SET==sbitTESTfloatucharX1[]=};/*歡*/ucharcodeX2};/*迎*/ucharcodeX3};/*使*/ucharcodeX4};/*用*/ucharcodeX5};/*圖*/ucharcodeX6};/*形*/ucharcodeX7};/*點*/uchar};/*點*/ucharcodeX8};/*陣*/ucharcodeX9};/*12*/ucharcodeX10[]={};/*8x*/ucharcodeX11[]={};/*64*/ucharcodeX12[]={};/**/ucharcodeX13[]=};/*全黑*/ucharcodeX14};/*全白ucharcode};/*上邊*/ucharcodeX16[]={};/*下邊*/ucharcodeX17[]={};/*左邊*/ucharcodeX18[]={};/*右邊*/ucharcodeX19[]={};/*左上*/ucharcodeX20[]={};/*右上*/ucharcodeX21[]={};/*左下*/ucharcodeX22[]={};/*右下*/ucharcodeX23[]={};/*空白*/void{PCON=0x80;TMOD=0X21;};/*右下*/ucharcodeX23[]={};/*空白*/void{PCON=0x80;TMOD=0X21;SCON=TH1=0XFa;TL1=0XFa;TR1=1;ESTH0=0;TL0=0;TR0=1;ET0=EA=}void{uchari,j;a

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論