Tkool Electronics

DescriptionDS1302isalow-powerreal-timeclockchipwithtricklecurrentchargingcapability.Itcantimetheyear,month,day,week,hour,minute,andsecond.ThisVideoIntroducesDS1302ArduinoRealtimeClockCatalogDescriptionDS1302PinoutDS1302DocumentsandMediaDS1302CADModelsDS1302ParametersDS1302FeaturesDS1302AdvantageDS1302ApplicationsDS1302TypicalOperatingCircuitDS1302EnvironmentalandExportClassificationsDS1302BlockDiagramHowtoUseDS1302DS1302RTCModuleDS1302CommandByteFAQOrdering&QuantityDS1302PinoutThefigurebelowshowsthepinarrangementofDS1302.Amongthem,Vcc2isthemainpowersupply,andVCC1isthebackuppowersupply.Thecontinuousoperationoftheclockcanbemaintainedevenwhenthemainpowerisoff.DS1302ispoweredbythelargerofVcc1orVcc2.WhenVcc2isgreaterthanVcc1+0.2V,Vcc2suppliespowertoDS1302.WhenVcc2islessthanVcc1,DS1302ispoweredbyVcc1.X1andX2aretheoscillationsourcesandanexternal32.768kHzcrystaloscillator.RSTisthereset/chipselectline.AlldatatransfersarestartedbydrivingtheRSTinputtohigh.RSTinputhastwofunctions:First,RSTturnsonthecontrollogic,allowingtheaddress/commandsequencetobesenttotheshiftregister;second,RSTprovidesamethodtoterminatesingle-byteormulti-bytedatatransmission.WhenRSTishigh,alldatatransfersareinitialized,allowingoperationsonDS1302.IfRSTissettoalowlevelduringthetransfer,thedatatransferwillbeterminatedandtheI/Opinwillbecomehighimpedance.Duringpower-onoperation,RSTmustremainlowbeforeVcc2.0V.OnlywhenSCLKislow,canRSTbesethigh.I/Oisaserialdatainputandoutputterminal(two-way),whichwillbedescribedindetaillater.SCLKistheclockinputterminal.PinNumberPinNameDescription1VCC2PrimaryPower-SupplyPininDualSupplyConfiguration.VCC1isconnectedtoabackupsourcetomaintainthetimeanddateintheabsenceofprimarypower.TheDS1302operatesfromthelargerofVCC1orVCC2.WhenVCC2isgreaterthanVCC1+0.2V,VCC2powerstheDS1302.WhenVCC2islessthanVCC1,VCC1powerstheDS1302.2X1ConnectionsforStandard32.768kHzQuartzCrystal.Theinternaloscillatorisdesignedforoperationwithacrystalhavingaspecifiedloadcapacitanceof6pF.Formoreinformationoncrystalselectionandcrystallayoutconsiderations,refertoApplicationNote58:CrystalConsiderationsforDallasReal-TimeClocks.TheDS1302canalsobedrivenbyanexternal32.768kHzoscillator.Inthisconfiguration,theX1pinisconnectedtotheexternaloscillatorsignalandtheX2pinisfloated.3X24GNDGround5CEInput.CEsignalmustbeassertedhighduringareadorawrite.Thispinhasaninternal40kΩ(typ)pulldownresistortoground.Note:PreviousdatasheetrevisionsreferredtoCEasRST.Thefunctionalityofthepinhasnotchanged.6I/OInput/Push-PullOutput.TheI/Opinisthebidirectionaldatapinforthe3-wireinterface.Thispinhasaninternal40kΩ(typ)pulldownresistortoground.7SCLKInput.SCLKisusedtosynchronizedatamovementontheserialinterface.Thispinhasaninternal40kΩ(typ)pulldownresistortoground.8VCC1Low-PowerOperationinSingleSupplyandBattery-OperatedSystemsandLowPowerBatteryBackup.Insystemsusingthetricklecharger,therechargeableenergysourceisconnectedtothispin.ULrecognizedtoensureagainstreversechargingcurrentwhenusedwithalithiumbattery.DS1302DocumentsandMediaDatasheetsDS1302OtherRelatedDocumentsTipsforWritingBulletproofReal-TimeClockControlCodeMfgApplicationNotesEstimatingSuperCapacitorBackupTimeonTrickle-ChargerReal-TimeClocksSelectingaBackupSourceforReal-TimeClocksOscillatorDesignConsiderationsforLow-CurrentApplicationsStateMachineLogicinBinary-CodedDecimal(BCD)-FormattedReal-TimeClocksEnvironmentalInformationHalogenCertificateRedPhosphorousCertificateMaterialDeclarationDS1302PCNObsolescence/EOLMultDevOBS15/Jul/2015HTMLDatasheetDS1302EDA/CADModelsDS1302bySnapEDADS1302byUltraLibrarianDS1302CADModelsDS1302SymbolDS1302FootprintDS1302ParametersBaseProductNumberDS1302BatteryBackupSwitchingBackupSwitchingCategoryIntegratedCircuits(ICs)Clock/Timing-RealTimeClocksCurrent-Timekeeping(Max)0.3A~1A@2V~5VDateFormatYY-MM-DD-ddFeaturesLeapYear,NVSRAM,Trickle-ChargerFunctionCalendar,Clock,NVTimekeepingRAM,TrickleChargerInterface3-WireSerialManufacturerMaximIntegratedMaximumOperatingTemperature+70CMinimumOperatingTemperature0CMountingStyleThroughHoleOperatingTemperature0C~70CPackageTubePackage/Case8-DIP(0.300,7.62mm)PackagingTubePartStatusObsoleteProductCategoryRealTimeClockRoHSNRTCBusInterfaceSerialRTCMemorySize31BSubcategoryClockTimerICsSupplierDevicePackage8-PDIPSupplyVoltage-Max5.5VSupplyVoltage-Min2VTimeFormatHH:MM:SS(12/24hr)TypeClock/CalendarVoltage-Supply,Battery2V~5.5VDS1302FeaturesCompletelyManagesAllTimekeepingFunctionsoReal-TimeClockCountsSeconds,Minutes,Hours,DateoftheMonth,Month,DayoftheWeek,andYearwithLeap-YearCompensationValidUpto2100o31x8Battery-BackedGeneral-PurposeRAMSimpleSerialPortInterfacestoMostMicrocontrollersoSimple3-WireInterfaceoTTL-Compatible(VCC=5V)oSingle-ByteorMultiple-Byte(BurstMode)DataTransferforReadorWriteofClockorRAMDataLowPowerOperationExtendsBatteryBackupRunTimeo2.0Vto5.5VFullOperationoUsesLessThan300nAat2.0V8-PinDIPand8-PinSOMinimizesRequiredSpaceOptionalIndustrialTemperatureRange:-40Cto+85CSupportsOperationinaWideRangeofApplicationsUnderwritersLaboratories(UL)RecognizedDS1302AdvantageTheDS1302trickle-chargetimekeepingchipcontainsareal-timeclock/calendarand31bytesofstaticRAM.Itcommunicateswithamicroprocessorviaasimpleserialinterface.Thereal-timeclock/calendarprovidesseconds,minutes,hours,day,date,month,andyearinformation.Theendofthemonthdateisautomaticallyadjustedformonthswithfewerthan31days,includingcorrectionsforleapyear.Theclockoperatesineitherthe24-houror12-hourformatwithanAM/PMindicator.InterfacingtheDS1302withamicroprocessorissimplifiedbyusingsynchronousserialcommunication.Onlythreewiresarerequiredtocommunicatewiththeclock/RAM:CE,I/O(dataline),andSCLK(serialclock).Datacanbetransferredtoandfromtheclock/RAM1byteatatimeorinaburstofupto31bytes.TheDS1302isdesignedtooperateonverylowpowerandretaindataandclockinformationonlessthan1W.TheDS1302isthesuccessortotheDS1202.InadditiontothebasictimekeepingfunctionsoftheDS1202,theDS1302hastheadditionalfeaturesofdualpowerpinsforprimaryandbackuppowersupplies,programmabletricklechargerforVCC1,andsevenadditionalbytesofscratchpadmemory.DS1302ApplicationsTheapplicationsofDS1302includeincorporateddigitalclocks/timersofvariousmodulesinourreallives.OtherequivalentsICsofRTCare:DS1307,DS3231,DS3232DS1302TypicalOperatingCircuitDS1302EnvironmentalandExportClassificationsAttributeDescriptionRoHSStatusRoHSnon-compliantMoistureSensitivityLevel(MSL)1(Unlimited)HowtoUseDS1302AtypicaloperatingcircuitforDS1302isgivenbelow.DS1302havetwopowerinput,oneisfromcellandotherisfromcontroller.Acrystaloscillatorof32.768kHzisusedtogeneraterequiredfrequency.ForinterfacingDataline,ResetPinandSerial-clockpinsofDS1302areconnectedwiththemicro-controller.DS1302BlockDiagramDS1302RTCModuleDS1302isatickle-chargetimekeepingchipwhichcontainsareal-timeclock/calendarand31bytesofstaticRAM.DS1302usesserialcommunicationtointeractwithmicrocontrollers.Also,itautomaticallyadjustthedateforthemonthwithfewerdays.Clockoperatesin24hror12hrformatwithanAM/PMindicator.DS1302chipisalsocommonlyusedasDS1302RTCmodulewhichcomeswitha32kHzcrystalandon-boardbatterybackupallinasmallSIPmodulethatiscompatiblewithabreadboard.DS1302moduleareusedbymakerswithArduino,RaspberryPiandotherMicro-controllers.ADS1302RTCmodulepinoutisshowninbelowimage.DS1302CommandByteAcommandbyteinitiateseachdatatransfer.TheMSB(bit7)mustbealogic1.Ifitis0,writestotheDS1302willbedisabled.Bit6specifiesclock/calendardataiflogic0orRAMdataiflogic1.Bits1to5specifythedesignatedregisterstobeinputoroutput,andtheLSB(bit0)specifiesawriteoperation(input)iflogic0orreadoperation(output)iflogic1.ThecommandbyteisalwaysinputstartingwiththeLSB(bit0).DS1302RegisterDS1302has12registers,ofwhich7registersarerelatedtocalendarandclock.ThestoreddatabitsareintheformofBCDcodes.Thecalendar,timeregistersandtheircontrolwordsareshowninTable1.Inaddition,DS1302alsohasyearregister,controlregister,chargingregister,clockburstregister,andRAM-relatedregisters.Theclockburstregistercanreadandwritethecontentsofallregistersexceptthechargingregisterinsequenceatonetime.TheDS1302andRAM-relatedregistersaredividedintotwocategories:OneisasingleRAMunit,with31intotal.Eachunitisconfiguredasan8-bitbyte,anditscommandcontrolwordisC0H~FDH.Amongthem,oddnumbersarereadoperations,andevennumbersarewriteoperations;theothertypeisRAMregistersinburstmode.Inthismode,all31bytesofRAMcanbereadandwrittenatonce,andthecommandcontrolwordsareFEH(write)andFFH(read).FAQWhatisDS1302?DS1302isatickle-chargetimekeepingchipwhichcontainsareal-timeclock/calendarand31bytesofstaticRAM.DS1302usesserialcommunicationtointeractwithmicrocontrollers.Also,itautomaticallyadjustthedateforthemonthwithfewerdays.WhatdoesanRTCdo?Areal-timeclock(RTC)isacomputerclock(mostoftenintheformofanintegratedcircuit)thatkeepstrackofthecurrenttime.Althoughthetermoftenreferstothedevicesinpersonalcomputers,serversandembeddedsystems,RTCsarepresentinalmostanyelectronicdevicewhichneedstokeepaccuratetime.HowdoyouuseRTC?WiringItUp.5VisusedtopowertotheRTCchipwhenyouwanttoqueryitforthetime.Ifthereisno5Vsignal,thechipgoestosleepusingthecoincellforbackup.ConnectGNDtocommonpower/dataground.ConnecttheSCLpintotheI2CclockSCLpinonyourArduino....ConnecttheSDApintotheI2CdataSDApinonyourArduino.

STM32F746VET6-100-LQFP-STMicroelectronics

IntroductionTheLM741seriesaregeneral-purposeoperationalamplifiers.Itisintendedforawiderangeofanalogu

STM32F031K6U7-32-UFQFN Exposed Pad-STMicroelectronics

IntroductionInordertosolvetheproblemoftransientdistortion,thetypicalapplicationcircuitofLM3886powera

STM32F103VET6TR-100-LQFP-STMicroelectronics

IIntroductionLM567isatonedecodingphase-lockedloopintegratedcircuit.Itiscompactindesign,simpleincircu

STM32F042C6T6-48-LQFP-STMicroelectronics

I.IntroductiontoGalvanometerThegalvanometerisanimportanttestinginstrument.Itisahigh-sensitivitymecha

STM32F429IIH6-176-UFBGA-STMicroelectronics

IIntroductionHere,youcanlearnabouttheAD620instrumentamplifiercircuit.Besides,youcanalsobrowseAD620ma

STM32F765VGT6-100-LQFP-STMicroelectronics

IDescriptionThisblogintroducesatemperatureacquisitionandalarmsystembasedonAT89S52microcontrollerandD

STM32F301R6T6-64-LQFP-STMicroelectronics

IntroductionLM3886isahigh-performanceaudiopoweramplifier.ItexhibitsextremelylowTHD+Nvaluesof0.03%att

STM32F102R6T6A-64-LQFP-STMicroelectronics

L298DescriptionTheL298isanintegratedmonolithiccircuitina15-leadMultiwattandPowerSO20packages.Itisahi

STM32F469NIH7-216-TFBGA-STMicroelectronics

DescriptionDS18B20isatemperaturesensorofMaxim.Thesingle-chipmicrocomputercancommunicatewithDS18B20th

L7805CV-DG-CSTSZX0100-ST

IntroductionInrecentyears,withthecontinuousdevelopmentofnewtechnologies,storagebatteriesasapowersour

Powered By Tkool Electronics

Copyright Your WebSite.sitemap