版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
翻譯部分英文原文1.Abstract:ThisPaperMainlyFocusedontheTheoreticalandPracticalApplicationofaNewWirelessRemoteControlSystem.ThisArticleMainlyIncludestheFollowingContent:AccordingtotheRequirementsoftheProjectisProposedtoScmastheCentralProcessor,theShortDistanceWirelessRemoteControlTechnologyandElectronicPasswordLockSystembyCombiningtheTechnologyofSolution,GivestheHardwareCircuitDesignandSoftwareStructureAreDescribedinDetailintheSystemHardwareCircuitDesignElementsandStructureasWellastheSoftwareDesignPoints,andGivetheVariousImportantSubroutineFlowChart.inThisPaperPresentsawithFourDataBitsoftheEncodingandDecodingChiptoCompletethe12DataTransmissionDesignMethodandGivesDetailsoftheDesignMethodandPrincipleofThatandtheSpecificDesignoftheElectricJumpAttheSameTime,ThisPaperPresentsaUniqueHardwareResetCircuit,GivestheDetailedSystemAntiInterferenceMeasuresandtheSystemEnergyConservationMeasure.inThisPaper,theDesignoftheCircuitandControlMethodisAppliedtotheDesignoftheSingleChipMicrocomputerSystem,theHardwareandSoftwareAreAlsoPracticalandUniversal.2.Introduction:WiththeImprovementofPeople'sLifeandtheStrengtheningofSecurityAwareness,VariousSeriesofSafeBoxesAreWidelyUsedinPeople'sLifeandWork,SotheSafetyoftheLockSystemBecomesVeryImportant.CurrentlyontheMarket,theLockoftheSafeDepositBoxHastheFollowingSeveralWays.OneistheMechanicalTypeofPasswordLock,ItHastheAdvantagesofLowCost,StrongAnti-InterferenceAbility,ButAlsoHasaSmallAmountofPassword,PoorSecurity,theKeyisEasytoCopytheShortcomings.FixedKeyboardisaElectronicPasswordLock,ItHasCostsAreRelativelyHigh,HasaLargeNumberofPassword,NotEasytoDeciphertheAdvantages,ButTheseElectronicPasswordLockSystemisUsed,Thatis,theOperationofKeyboardFixingintheSafeDepositBoxPanel.ThisAllowstheUserinOperationwithoutaHidden,isVeryEasytoBeSeenandPhotographedthePasswordisNotSafe,andtheOperationSafetyisNotHigh.AlsoontheMarketandaSmallAmountofOtherSafeLock,SuchasMagneticCardSafeLock,SmartCardIcCardSafeLock,FingerprintSafeLock.MagneticCardLocktheSafeandSmartCards1cCardSafeLockisConvenienttoReplace,theAdvantagesofEasyOperation,ButDuetotheCardItselfHastheAdvantagesofSimpleStructure,MagneticStripe(MagneticLayerExposed[1],SmallStorageCapacity,NoInternalSecurityMeasuresEtc.TheEasilyDeciphered.PoorSecurity,AlsoDuetotheMagneticCardandIcCardItselftotheUseofHighEnvironmentalRequirements,theStabilityandReliabilityoftheAlsoisReducedAccordingly,WhileCarryingisNotConvenient.theFingerprintSafeDepositBoxHastheAdvantagesofSimpleOperation,HighSecurity,EasytoCrack,EasytoCarry.3.InfraredCodingandTransmittingModule:Schemeone:dedicatedchipsolutions.Specialinfraredcodingchipmanykinds,suchasMitsubishiCorporationofJapanM50426AP,PT2262,BL9148,ZD6631etc.,suchchipsgenerallysetcarrieroscillation,encoding,transmittinginone,hasastronganti-interferenceability,simpleperipheralcircuits,theuseisveryconvenient,andthepriceisverylow.Mostoftheremotecontroldevicesusesuchadedicatedchip.However,ASIChasfatalweakness:specialchipapplicationflexibilityispoor,itsinternalcodehasbeenfixedcannotmodifyinternaldata,doesnotapplytooftenneedtochangedatatransfer;specialchiparealmostorientedinstructioncoderemotecontrolmode,transmissionefficiencyislow;mostofthespecialchipinternalcodeandthetechnicaldatahavebeensubmittedto,securitybreaches.Solutiontwo:microprocessorandspecialchipcombinedsolution,theprogramisassembledbyamicroprocessorandaspecialcodingchipPT2262completedcoding,carriergenerationbyMC4011and38kHzcrystaloscillatortogetherconstitute,theoscillationgeneration38kHzsquarewave.ThefunctionofPT2262istomakethedatatobetransmittedinparallelby6bits.PT2262converts6bit86paralleldataintoserialdata,reducestheprogrammingburden,andmakesthetransmissionspeedfaster.A6/D0A11/D5~PT2262atotalof6multiplexingportforthedataport,thePT2262automaticallysendthemicroprocessor6dataintoserialdatafromtheDoutport.Theschemecanmakethenumberofpassword,theencodinganddecodingalgorithmandthesynchronizationsignal[4],andgreatlyimprovethedatasecurity.ThedisadvantageisthattheuseofthePT2262,theincreaseinthecostofhardwareandcircuitcomplexity.TheprogramusestheI/Oportofthemicroprocessortodirectlygenerate38KHzmodulatedwave,whichdrivestheinfraredemittingdiodetotransmittheinfrareddata.38KHzsquarewavegeneratedbytheCPUtimerorbythesoftwareprogramming.Infraredcodingworkiscompletedbythesoftware.Therefore,infraredcodingschemecanarbitrarydesign,externalonlywithverysimplehardwarecircuit,greatlyreducethecomplexityofthecircuit,isconducivetoreducingthecost,decreasesthevolumeofremote.Duetotheuseofsoftwarecodingscheme,occupytheCPUtimeCPUprocessingspeedisinfluencedbycertain,however,forthefunctionofremotecontrolascomparedtothesinglesystem,processingtasksisrelativelysmall,thefundamentalimplicationsofCPUprocessingefficiency,onlyincreasetheburdenofprogrammingsoftware.Bycomparison,theprogramtwocannotonlymeettherequirementsofthetopic,thecircuitisverysimple,thecostofhardwareisverylow,onlytoincreasetheburdenontheprogrammingsoftware,makingtheinfraredcodingisveryflexible.4.SystemSoftwareDevelopmentEnvironment:Keilc51isthekeilsoftwareproducedbythecompanyof51seriescompatibleMCUClanguagesoftwaredevelopmentsystem,comparedwiththeassembly,Clanguageinfunction,structure,readable,maintenancehasobviousadvantagesandeasytouse.AfterusingtheassemblylanguageandthenuseCtodevelop,realizemoreprofound.C51Keilsoftwareprovidesawealthoflibraryfunctionsandpowerfulintegrateddevelopmentanddebuggingtools,allWindowsinterface.Anotherimportantpoint,aslongasyoulookatthecompilergeneratedassemblycode,youwillbeabletoexperiencetheC51Keilgeneratedtargetcodeefficiencyisveryhigh,themajorityofthestatementgeneratedassemblycodeisverycompact[10],easytounderstand.Inthedevelopmentoflarge-scalesoftwaretobetterreflecttheadvantagesofhigh-levellanguage.C51toolkitoftheoverallstructure,whichuVisionandC51areforWindowsIshellandDosforintegrateddevelopmentenvironment(IDE),youcancompletetheediting,compiling,linking,debugging,simulationandotherdevelopmentprocesses.DeveloperscanuseIDEitselforothereditorstoeditCorassemblysourcefiles.AndthencompiledbytheC51andtheA51compilertogeneratethetargetfile(.OBJ).ThetargetfilecanbecreatedbytheLIB51libraryfiles,butalsowiththelibraryfilewiththeL51connectiontogenerateabsolutetargetfiles(.ABS).ABSfilebyOH51intostandardhexfile,forthedebuggerdScope51ortScope51usedforsourceleveldebugging,usedbythesimulatortodirectlyonthetargetboarddebugging,canalsowritedirectlyintotheprogrammemorysuchasEPROM.5.InfraredDataReceivingModule:ThereceivingpartiscomposedofsinglechipmicrocomputerAT89S52interruptINTO,timerT0andinfrareddatareceivingmoduletoformaninfraredremotecontrolreceiver.Thetimerisusedtomeasurethetimeintervalbetweentwopulsetrains,andthetimerissetto1,thetimeconstantiszero,thetimerisclearedbeforestartingthemeasurementeverytime.TheinterruptINT0istriggeredbythenegativepulseoftheinfraredreceivingcircuit,andthetimerT0isstartedaftertheresponseofthesinglechipmicrocomputerisinterrupted.Consideringthetransmitterandreceiverinterruptresponsedelayandsignalreceiverreceivestheinfluenceoftimedelay,thereceiverallowsthepulseintervalandthemaximumerroris100US,namelybinarydigits“0”pulseontheintervalforthe400us600usthatbinarydigit“1”pulserushedontheintervalrangeto1100us900us,notinthisrangeofpulsestringisconsideredadisturbancesignalorerror[11].Thereceiverreceivesdatainaframe.WhentheinfraredreceivingcircuitreceivesthesignaloffrequencybandoutputanegativepulseandtriggerINT0,SCMinterruptresponse,firstclearedt0timer,starttimerT0timing,receivedthesecondpulse,readt0timercountandcalculatethepulsesignalandapulsesignalbetweentimeintervals,suchas500us,receivedabinarynumber“0”,thestartbit,orcontinuetosearchthestartbit.Afterthestartbitcorrectbegantoreceivedata,inthenext8pulses,theintervalofthe500uspulseisthebinarynumber“0”,intervalforthe1000USpulseisthebinarynumber“1”,otherwiseitisconsideredaframeerror.Received8dataafterreceivingthefirststopbit(mustbethebinarynumber“1”,otherwisetheframeerror).Afterthefirststopbit(thesecondstopbitisusedtotriggertheinterruptdetectionofpulseisthefirststopbit),suchasstopbitiscorrectandhasbeensuccessfullyreceived1startbit8databits,1stopbit,dataframecorrectly,savethedata,readytoreceivethenextdataframe,orreceiveanerror,thetimerisreset,restartbitdetection.6.InfraredDecodingandReceivingModuleSolutionone:discretecomponentsolutions,thecircuitasshowninfigure3-3.FigureRD1isaninfraredreceivingtube;R3,R4,VT1constituteinvertingamplifier;vt2,R5C2constituteafilter,filterout38kHzcarrierfrequency;R6,R7andVT3constituteashapingcircuit,filteredwaveformprocessingisgoodsquarewave;C1andC3forthecouplingcapacitor;R2islimitedflowresistance,whenreceivingastrongsignalistoprotecttheVT1.Thebiggestadvantageofthisschemeisthatthepowersupplyvoltageislow,whichcanbeusedtosupplythe3Vvoltageoftwobatteries.However,duetotheuseofdiscretecomponentsofthecircuit,itsstabilityandanti-interferenceabilityisnothigh,affectingtheaccuracyofinfrareddatatransmission.Solutiontwo:integratedcircuitsolutions,asshowninfigure3-4.Theschemeusingintegratedinfraredreceiver,setinfraredreceiverandputmorethanonewithoutanyconnectedcomponents,willbeabletocompletetheoutputsareTTLlevelcompatiblewithalltheworkisreceivedfromtheinfrared,andvolumeandcommonplastictriodetubeofthesamesize.TL1838pindistributionasshowninFigure4-5,2feet,3feet,respectively[6],groundpowerandground,the1pinistheoutputofthedemodulationsignal,anditsleveliscompatiblewithTTL.Tl1838seriesfeaturesareasfollows:38kHzwidevoltageofvariousinfraredreceivinghead,workingvoltage:2.7to5.5Vandworkingcurrent:1.4mAdistance:15m,frequency:38K,angle:+45DEG,andthewavelength:940nm,ironshell:tl1838isblackepoxylensfiltervisiblelightinterference.PINcontainstheinfraredreceivingtube,amplifieranddemodulator.Whenthesignalemittedbytheinfraredemitterbyspacetransfertotl1838,itsinternalpininfraredreceivingtubeinfraredisconvertedtoelectricalsignal,thesignalbythefrequencyselectiveamplification,demodulationby1footoutputsareTTLlevelcompatiblewiththeelectricalsignal,thesignalcanbedirectlysenttothemicroprocessorforprocessing.TheoutputwaveformofTL1838isshowninfigure3-6.Whenreceivingtheinfraredsignalinthefrequencybandandtl1838receivercanoutputlowlevel,otherwisetheinfraredsignaldemodulationofthedataatahighlevel,thustheintermittent“intotheoriginalcontinuoussquarewavesignal.Tl1838advantagesofgoodstability,anti-interferenceabilityisverystrong,peripheralcircuitisverysimple,withoutthehighcostforinfraredremotecontrolandIRdatatransmission,isanalternativetootherinfraredreceivingamplifieridealcomponents.Anditsoperatingvoltageis2.7~5.5V,theeffectivetransmissiondistanceof15M,isacost-effectiveinfraredintegratedreceiver.Bycomparison,theprogramtwocannotonlymeettherequirementsofthetopic,thecircuitisverysimple,thecostofhardwareisverylow,throughthesoftwareprogramming,makingtheinfraredcodingisveryflexible,sotheuseoftheprogram.7.SystemDebuggingAfterapreliminaryanalysisofthedesign,intheproductionofhardwarecircuit,debuggingisalsointerspersed.Thisisconducivetotheanalysisandsolutionoftheproblem,willnotcausetheaccumulationofproblems,butnotbecauseofasmallproblemandtheoverallcircuitinspection,whichcansavealotofdebuggingtime.Softwareprogramming,Iwasthefirsttocompletetheunitfunctionmoduledebugging,andthenthesystemdebugging,theoverallhardwaredebuggingmethodisalmostthesame.Onlinedebuggingisthemostimportantpart,anditisalsothekeytothesuccessofthedevice.Therearemanynewproblemswhicharenoteasytosolve.Whenthebuttonispressed,thesystempower,toensurethatthesinglechipmicrocomputertobeabletoselflockelectronicswitch,tomaintaintheelectronicswitchon,thenormalpowersupplysystem.Inthecaseofinfraredremotecontrol(key)softwarehasnotbeenwritten,thefirstsimulationoftheselflockoperation,foundthattheelectronicswitchcanbelocked,thesystemnormalpowersupply.Takingintoaccountthebuttonoperationtimeisgenerallytensofmillisecondstoafewseconds,microcontrollerresettimeisonlyabout200ms,thegeneraltimetooutputhighlevel.Later,afterthesoftwareiscompiled,foundthatthesystemcanworkproperlyontheelectricity.Inthissystem,therealizationofthefunctionofthesoftwareprogramismore,sothedebuggingofthesoftwareisverycumbersome.ThewholeprocedureistousetheClanguage.With51SeriesMCUdownloadlinewillbedownloadedtotheMCU,usingtheserialportUSBlinetomonitorthetransmissionandreceptionofdata,controltomodifytheprogram.Firstofall,toensurethateachmoduleisindependentandabletosendandreceivedataareinlinewiththerequirements,againinlinetoconnectfromthemachineandhosttotestbetweenthemicrocontrollerserialcommunicationprotocoliscorrect,thenplusinfraredsendingandreceivingmoduletounifiedtest.Summarizesthedebuggingexperience,infraredcommunicationcanonlyworkinhalfduplexmode.Atthesametime,duetothecommunicationbaudrateisrelativelylow,programmingshouldwatchforatime.8.ConclusionThissystemtoAT89S52chipasthecorecomponents,usinginfraredcommunicationtechnology,single-chipserialcommunicationtechnologyandwithasetofuniquesoftwarealgorithmrealizethefunctionsuchasinfraredsignaltransmission,passwordrandomencryption,serialnumbercheck,experimentalandtheoreticalanalysisresultsshowthat,infraredremotecontrolelectroniccodelockdesigncompletedthedesignofthetask.Intheprocessofsystemdesign,thehardwarecircuitissimple,thesoftwareisfullyplayedintoaconvenientandflexiblecharacteristics,tomeetthesystemdesignrequirements.Infraredremotecontrolelectronicpasswordlockoperationissimple,toprovideuserswithafriendlyinterface,usersdonotneedtolearn,youcansimplyandquicklytocompletetheoperation,sothattheuseof.Thisproducthasotheradvantages:lowpowerconsumption,moderateprice,smallsize,andcanbemodifiedbythemicrocontrollerprogram,sothatitsfunctionisconstantlyenhancedandupdated.Infraredremotecontrolpasswordlocksystemwithlowcost,smallvolume,andcanclosethedistanceoftheremotecontrol,lowconsumptionisverylow,ordinaryalkalinebatteries,andtheuseisveryconvenient.Iftheoptimaldesign,thecostcanbefurtherreduced.Infraredremotecontrollocklockhasbroadmarketprospects.中文譯文1.摘要:本文主要研究了新型無(wú)線遙控系統(tǒng)技術(shù)的理論和該項(xiàng)技術(shù)的實(shí)際應(yīng)用。本文主要包括以下內(nèi)容:根據(jù)任務(wù)要求,準(zhǔn)備以SCM單片機(jī)作為中央處理器,結(jié)合解決方案技術(shù),從而實(shí)現(xiàn)短距離無(wú)線遙控技術(shù)和電子密碼鎖系統(tǒng),并給出了硬件電路設(shè)計(jì)和軟件APP設(shè)計(jì)。在該系統(tǒng)硬件電路設(shè)計(jì)元件、結(jié)構(gòu)以及軟件設(shè)計(jì)要點(diǎn)中詳細(xì)描述了結(jié)構(gòu)設(shè)計(jì),并給出了各種重要的子程序流程圖。本文提出了一種具有四個(gè)數(shù)據(jù)位的編碼方式和解碼芯片,可以完成十二種數(shù)據(jù)傳輸?shù)脑O(shè)計(jì)方法,并詳細(xì)介紹了其設(shè)計(jì)方法和原理以及電氣跳躍的具體設(shè)計(jì),并具有獨(dú)特的硬件復(fù)位電路,講述了非常詳細(xì)的系統(tǒng)抗干擾措施和系統(tǒng)節(jié)能措施。本文將電路設(shè)計(jì)和控制方法的設(shè)計(jì)都應(yīng)用于單片機(jī)系統(tǒng)的設(shè)計(jì)中,其硬件和軟件都具有非常高的實(shí)用性和通用性。2.簡(jiǎn)介:隨著人們生活的逐步改善和安全意識(shí)的逐漸增強(qiáng),各種類型的保險(xiǎn)箱被廣泛應(yīng)用于人們的生活和工作中,因此密碼鎖系統(tǒng)的安全性變得非常重要?,F(xiàn)如今在市場(chǎng)上,保險(xiǎn)箱的密碼鎖具有以下幾種方式,一種是機(jī)械式的密碼鎖,它具有成本低,抗干擾能力強(qiáng)的優(yōu)點(diǎn),但它的安全性能較差,密鑰易于復(fù)制。固定式鍵盤是一種電子密碼鎖,成本相對(duì)較高,具有大量的密碼,不易理解優(yōu)點(diǎn),使用了這些電子密碼鎖系統(tǒng),即在保險(xiǎn)箱中在固定鍵盤的操作面板上進(jìn)行密碼操作。這使得用戶不得不在暴露的環(huán)境下進(jìn)行操作,非常容易被人看到或拍照,密碼不安全,并且操作安全性不高。市場(chǎng)上也有少量其他安全鎖,例如磁卡安全鎖、智能IC卡安全鎖、指紋安全鎖。磁卡安全鎖和智能1C卡安全鎖易于更換,具有易于操作的優(yōu)點(diǎn),但由于該卡本身具有結(jié)構(gòu)簡(jiǎn)單,磁條暴露的磁性層,存儲(chǔ)容量非常小,而且也沒(méi)有內(nèi)部安全措施,特別容易破譯,安全性很差,也由于磁卡和IC卡本身使用環(huán)境要求高,因此,在攜帶不方便的情況下,其穩(wěn)定性和可靠性也相對(duì)較低。相比較電子保險(xiǎn)箱具有操作簡(jiǎn)單,安全性高,易攜帶,不易破裂等優(yōu)點(diǎn)。3.紅外編碼和發(fā)送模塊:方案一:專用芯片解決方案。特殊的紅外編碼芯片種類很多,例如日本三菱公司的M50426AP、PT2262、BL9148、ZD6631等,這類芯片一般將載波振蕩,編碼傳輸兩種功能合二為一,具有很強(qiáng)的抗干擾能力,外圍電路簡(jiǎn)單,使用起來(lái)很方便,而且成本很低,大多數(shù)遙控設(shè)備都使用這種專用芯片。但是,ASIC具有致命的弱點(diǎn),那就是專用芯片的應(yīng)用靈活性差,其內(nèi)部代碼已被固定,無(wú)法修改內(nèi)部數(shù)據(jù),不適用于經(jīng)常需要更改的數(shù)據(jù)傳輸,而且專用芯片幾乎都是定向指令碼的遠(yuǎn)程控制方式,傳輸效率低,同時(shí)大多數(shù)專用芯片的內(nèi)部代碼和技術(shù)數(shù)據(jù)均已公開(kāi),安全性大大降低。方案二:微處理器和專用芯片的組合解決方案,程序由微處理器和專用編碼芯片PT2262組合完成編碼,載波的產(chǎn)生由MC4011和38kHz晶體振蕩器共同構(gòu)成,振蕩形成生38kHz方波。PT2262的功能是使數(shù)據(jù)以6位數(shù)據(jù)位并行傳輸?shù)姆绞?。PT2262將6位并行數(shù)據(jù)轉(zhuǎn)換為串行數(shù)據(jù),減輕了編程負(fù)擔(dān),并加快了傳輸速度。A6/D0、A11/D5~PT2262共有6個(gè)復(fù)用端口用于數(shù)據(jù)端口,PT2262自動(dòng)將微處理器6個(gè)數(shù)據(jù)從Dout端口發(fā)送為串行數(shù)據(jù)。該方案可以計(jì)算出密碼的數(shù)量,編碼和解碼算法以及同步信號(hào),大大提高了數(shù)據(jù)的安全性。缺點(diǎn)是使用PT2262會(huì)增加硬件成本和電路復(fù)雜性。該程序使用微處理器的I/O端口直接生成38KHz調(diào)制波,該波驅(qū)動(dòng)紅外發(fā)射二極管傳輸紅外數(shù)據(jù)。CPU計(jì)時(shí)器或軟件編程生成的38KHz方波,紅外編碼工作由該軟件完成。因此,紅外編碼方案可以任意設(shè)計(jì),外部?jī)H需簡(jiǎn)單的硬件電路,大大降低了電路的復(fù)雜度,有利于降低成本,減小體積。由于使用軟件編碼方案,占用CPU時(shí)間CPU的處理速度受到一定的影響,但是,由于遠(yuǎn)程控制的功能與單個(gè)系統(tǒng)相比,處理任務(wù)相對(duì)較小,對(duì)CPU處理效率的影響就是會(huì)增加編程軟件的負(fù)擔(dān)。相比之下,方案二不僅可以滿足主題的要求,電路非常簡(jiǎn)單,硬件成本非常低,僅增加了編程軟件的負(fù)擔(dān),使得紅外編碼非常靈活。4.系統(tǒng)軟件開(kāi)發(fā)環(huán)境:Keilc51是由51系列兼容MCUC語(yǔ)言軟件開(kāi)發(fā)系統(tǒng)公司生產(chǎn)的keil軟件,與匯編語(yǔ)言相比,C語(yǔ)言在功能、結(jié)構(gòu)、可讀性、維護(hù)性上具有明顯的優(yōu)勢(shì),易于使用。開(kāi)始使用匯編語(yǔ)言之后再使用C語(yǔ)言進(jìn)行開(kāi)發(fā)是,會(huì)有更加深刻的體會(huì)。Keilc51軟件提供了豐富的庫(kù)功能以及強(qiáng)大的集成開(kāi)發(fā)和調(diào)試工具。另一個(gè)重要的點(diǎn)就是,只要看一下編譯器生成的匯編代碼,您就可以體驗(yàn)到C51Keil生成的目標(biāo)代碼效率非常高,大多數(shù)語(yǔ)句生成的匯編代碼非常緊湊,易于了解。在開(kāi)發(fā)大型軟件時(shí)可以更好地體現(xiàn)高級(jí)語(yǔ)言的優(yōu)勢(shì)。C51工具包的整體結(jié)構(gòu),其中uVision和C51分別是用于WindowsIshell和Dos的集成開(kāi)發(fā)環(huán)境(IDE),用戶可以完成編輯,編譯,鏈接,調(diào)試,仿真和其他開(kāi)發(fā)過(guò)程。開(kāi)發(fā)人員可以使用IDE本身或其他編輯器來(lái)編輯C語(yǔ)言程序或程序集源文件。然后由C51和A51編譯器編譯以生成目標(biāo)文件(.OBJ)。目標(biāo)文件可以由LIB51庫(kù)文件創(chuàng)建,也可以與具有L51連接的庫(kù)文件一起創(chuàng)建,以生成絕對(duì)目標(biāo)文件(.ABS)。ABS文件由OH51轉(zhuǎn)換為標(biāo)準(zhǔn)的十六進(jìn)制文件,用于調(diào)試dScope51或tScope51,也用于源代碼的調(diào)試,模擬器用于直接在目標(biāo)板上進(jìn)行調(diào)試,也可以直接寫(xiě)入程序存儲(chǔ)器。5.紅外數(shù)據(jù)接收模塊:接收部分由單片機(jī)AT89S52中斷INTO,定時(shí)器T0和紅外數(shù)據(jù)接收模塊組成,從而構(gòu)成紅外遙控接收器,計(jì)時(shí)器用于測(cè)量?jī)蓚€(gè)脈沖序列之間的時(shí)間間隔,計(jì)時(shí)器設(shè)置為1,時(shí)間常數(shù)為0,在每次開(kāi)始測(cè)量之前清除計(jì)時(shí)器。中斷INT0由紅外接收電路的負(fù)脈沖觸發(fā),并且在單片機(jī)的響應(yīng)被中斷后啟動(dòng)計(jì)時(shí)器T0??紤]到發(fā)送器和接收器的中斷響應(yīng)延遲以及信號(hào)接收器受到時(shí)間延遲的影響,接收器允許脈沖間隔,最大誤差為100us,即二進(jìn)制數(shù)字“0”間隔為400us、600us,二進(jìn)制數(shù)字“1”脈沖沖的間隔范圍為1100us、900us,不在此范圍內(nèi)的脈沖串被認(rèn)為是干擾信號(hào)或誤差。接收器在一幀中接收數(shù)據(jù),當(dāng)紅外接
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 初中化學(xué)教學(xué)中實(shí)驗(yàn)安全教育的實(shí)踐與探索課題報(bào)告教學(xué)研究課題報(bào)告
- 面向中小學(xué)生的人工智能編程教育資源開(kāi)發(fā)與教學(xué)效果評(píng)價(jià)體系教學(xué)研究課題報(bào)告
- 外墻保溫與真石漆施工技術(shù)方案
- 2025-2030日用化工產(chǎn)品市場(chǎng)競(jìng)爭(zhēng)態(tài)勢(shì)分析及綠色產(chǎn)品開(kāi)發(fā)規(guī)劃審批
- 2025-2030日照港口物流行業(yè)行業(yè)現(xiàn)狀供需分析及投資評(píng)估規(guī)劃分析研究報(bào)告
- 2025-2030無(wú)人駕駛汽車行業(yè)市場(chǎng)技術(shù)前沿投資機(jī)會(huì)規(guī)劃分析研究報(bào)告
- 2025-2030無(wú)人車自動(dòng)駕駛技術(shù)領(lǐng)域供需發(fā)展趨勢(shì)及投資開(kāi)發(fā)評(píng)估
- 2025-2030無(wú)人機(jī)遙感數(shù)據(jù)智能分析產(chǎn)業(yè)發(fā)展前景
- 2025-2030無(wú)人機(jī)行業(yè)市場(chǎng)現(xiàn)狀供需分析創(chuàng)新產(chǎn)品發(fā)展評(píng)估研究報(bào)告
- 企業(yè)立法技術(shù)操作規(guī)范
- 2026年及未來(lái)5年市場(chǎng)數(shù)據(jù)中國(guó)汽車車身電子控制行業(yè)全景評(píng)估及投資規(guī)劃建議報(bào)告
- 征信修復(fù)協(xié)議書(shū)
- 黑龍江省哈爾濱市五區(qū)2025-2026學(xué)年八年級(jí)(五四學(xué)制)上學(xué)期期中語(yǔ)文試題(含答案)
- 2026年寧夏賀蘭工業(yè)園區(qū)管委會(huì)工作人員社會(huì)化公開(kāi)招聘?jìng)淇碱}庫(kù)及參考答案詳解1套
- 黃芪中藥課件
- 幼兒園老師面試高分技巧
- 運(yùn)營(yíng)總監(jiān)2025年年底工作總結(jié)及2026年度工作計(jì)劃
- 2026年管線鋼市場(chǎng)調(diào)研報(bào)告
- 2025年江蘇省公務(wù)員面試模擬題及答案
- 2025中國(guó)家庭品牌消費(fèi)趨勢(shì)報(bào)告-OTC藥品篇-
- 機(jī)器人學(xué):機(jī)構(gòu)、運(yùn)動(dòng)學(xué)及動(dòng)力學(xué) 課件全套 第1-8章 緒論-機(jī)器人綜合設(shè)計(jì)
評(píng)論
0/150
提交評(píng)論