STM32FEBKxxDescriptionRTC(real-timeclock)andbackupregisters
TheRTCandthebackupregistersaresuppliedthroughaswitchthattakespowereitheronVDDsupplywhenpresentorthroughtheVBATpin.Thebackupregisters(ten16-bitregisters)canbeusedtostoredatawhenVDDpowerisnotpresent.Thereal-timeclockprovidesasetofcontinuouslyrunningcounterswhichcanbeusedwithsuitablesoftwaretoprovideaclockcalendarfunction,andprovidesanalarminterruptandaperiodicinterrupt.Itisclockedbyanexternal32.768kHzoscillator,theinternallowpowerRCoscillatorortheHighSpeedExternalclockdividedby128.TheinternallowpowerRChasatypicalfrequencyof32kHz.TheRTCcanbecalibratedusinganexternal512Hzoutputtocompensateforanynaturalquartzdeviation.TheRTCfeaturesa32-bitprogrammablecounterforlongtermmeasurementusingtheCompareregistertogenerateanalarm.A20-bitprescalerisusedforthetimebaseclockandisbydefaultconfiguredtogenerateatimebaseof1secondfromaclockat32.768kHz.Independentwatchdog
Theindependentwatchdogisbasedona12-bitdowncounterand8-bitprescaler.Itisclockedfromanindependent32kHzinternalRCandasitoperatesindependentlyfromthemainclock,itcanoperateinStopandStandbymodes.Itcanbeusedeitherasawatchdogtoresetthedevicewhenaproblemoccurs,orasafreerunningtimerforapplicationtimeoutmanagement.Itishardwareorsoftwareconfigurablethroughtheoptionbytes.Thecountercanbefrozenindebugmode.Windowwatchdog
Thewindowwatchdogisbasedona7-bitdowncounterthatcanbesetasfreerunning.Itcanbeusedasawatchdogtoresetthedevicewhenaproblemoccurs.Itisclockedfromthemainclock.Ithasanearlywarninginterruptcapabilityandthecountercanbefrozenindebugmode.SysTicktimer
ThistimerisdedicatedforOS,butcouldalsobeusedasastandarddowncounter.Itfeatures:?A24-bitdowncounter???AutoreloadcapabilityMaskablesysteminterruptgenerationwhenthecounterreaches0.ProgrammableclocksourceGeneralpurposetimers(TIMx)
Thereareupto3synchronizablestandardtimersembeddedintheSTM32FEBKxxperformancelinedevices.Thesetimersarebasedona16-bitauto-reloadup/downcounter,a16-bitprescalerandfeature4independentchannelseachforinputcapture/outputcompare,PWMoronepulsemodeoutput.Thisgivesupto12inputcaptures/outputcompares/PWMsonthelargestpackages.TheycanworktogetherwiththeAdvancedControlTimerviatheTimerLinkfeatureforsynchronizationoreventchaining.Thecountercanbefrozenindebugmode.AnyofthestandardtimerscanbeusedtogeneratePWMoutputs.EachofthetimershasindependentDMArequestgenerations.11/67https://houcheng-power.taobao.comwww.st.comSTM32FEBKxxDescriptionAdvancedcontroltimer(TIM1)
Theadvancedcontroltimer(TIM1)canbeseenasathree-phasePWMmultiplexedon6channels.Itcanalsobeseenasacompletegeneral-purposetimer.The4independentchannelscanbeusedfor?????InputCaptureOutputComparePWMgeneration(edgeorcenter-alignedmodes)OnePulseModeoutputComplementaryPWMoutputswithprogrammableinserteddead-times.Ifconfiguredasastandard16-bittimer,ithasthesamefeaturesastheTIMxtimer.Ifconfiguredasthe16-bitPWMgenerator,ithasfullmodulationcapability(0-100%).Thecountercanbefrozenindebugmode.ManyfeaturesaresharedwiththoseofthestandardTIMtimerswhichhavethesamearchitecture.TheadvancedcontroltimercanthereforeworktogetherwiththeTIMtimersviatheTimerLinkfeatureforsynchronizationoreventchaining.I2Cbus
UptotwoI2Cbusinterfacescanoperateinmulti-masterandslavemodes.Theycansupportstandardandfastmodes.Theysupportdualslaveaddressing(7-bitonly)andboth7/10-bitaddressinginmastermode.AhardwareCRCgeneration/verificationisembedded.TheycanbeservedbyDMAandtheysupportSMBus2.0/PMBus.Universalsynchronous/asynchronousreceivertransmitter(USART)
OneoftheUSARTinterfacesisabletocommunicateatspeedsofupto4.5Mbit/s.Theotheravailableinterfacescommunicateatupto2.25Mbit/s.TheyprovidehardwaremanagementoftheCTSandRTSsignals,IrDASIRENDECsupport,areISO7816compliantandhaveLINMaster/Slavecapability.AllUSARTinterfacescanbeservedbytheDMAcontroller.Serialperipheralinterface(SPI)
UptotwoSPIsareabletocommunicateupto18Mbits/sinslaveandmastermodesinfull-duplexandsimplexcommunicationmodes.The3-bitprescalergives8mastermodefrequenciesandtheframeisconfigurablefrom8-bitto16-bit.ThehardwareCRCgeneration/verificationsupportsbasicSDCard/MMCmodes.BothSPIscanbeservedbytheDMAcontroller.Controllerareanetwork(CAN)
TheCANiscompliantwithspecifications2.0AandB(active)withabitrateupto1Mbit/s.Itcanreceiveandtransmitstandardframeswith11-bitidentifiersaswellasextendedframeswith29-bitidentifiers.Ithasthreetransmitmailboxes,tworeceiveFIFOswith3stagesand14scalablefilterbanks.12/67https://houcheng-power.taobao.comwww.st.comSTM32FEBKxxDescriptionUniversalserialbus(USB)
TheSTM32FEBKxxperformancelineembedsaUSBdeviceperipheralcompatiblewiththeUSBFull-speed12Mbs.TheUSBinterfaceimplementsafullspeed(12Mbit/s)functioninterface.Ithassoftwareconfigurableendpointsettingandsuspend/resumesupport.Thededicated48MHzclocksourceisgeneratedfromtheinternalmainPLL.GPIOs(general-purposeinputs/outputs)
EachoftheGPIOpinscanbeconfiguredbysoftwareasoutput(push-pulloropen-drain),asinput(withorwithoutpull-uporpull-down)orasperipheralalternatefunction.MostoftheGPIOpinsaresharedwithdigitaloranalogalternatefunctions.AllGPIOsarehighcurrent-capable.TheI/OsalternatefunctionconfigurationcanbelockedifneededfollowingaspecificsequenceinordertoavoidspuriouswritingtotheI/Osregisters.I/OsonAPB2withupto18MHztogglingspeedADC(analogtodigitalconverter)
Two12-bitAnalogtoDigitalConvertersareembeddedintoSTM32FEBKxxperformancelinedevicesandeachADCsharesupto16externalchannels,performingconversionsinsingle-shotorscanmodes.Inscanmode,automaticconversionisperformedonaselectedgroupofanaloginputs.AdditionallogicfunctionsembeddedintheADCinterfaceallow:???SimultaneoussampleandholdInterleavedsampleandholdSingleshuntTheADCcanbeservedbytheDMAcontroller.Ananalogwatchdogfeatureallowsveryprecisemonitoringoftheconvertedvoltageofone,someorallselectedchannels.Aninterruptisgeneratedwhentheconvertedvoltageisoutsidetheprogrammedthresholds.Theeventsgeneratedbythestandardtimers(TIMx)andtheAdvancedControltimer(TIM1)canbeinternallyconnectedtotheADCstarttrigger,injectiontrigger,andDMAtriggerrespectively,toallowtheapplicationtosynchronizeA/Dconversionandtimers.Temperaturesensor
Thetemperaturesensorhastogeneratealinearvoltagewithanyvariationintemperature.Theconversionrangeisbetween2V TheARMSWJ-DPInterfaceisembedded.andisacombinedJTAGandserialwiredebugportthatenableseitheraserialwiredebugoraJTAGprobetobeconnectedtothetarget.TheJTAGTMSandTCKpinsaresharedrespectivelywithSWDIOandSWCLKandaspecificsequenceontheTMSpinisusedtoswitchbetweenJTAG-DPandSW-DP.13/67https://houcheng-power.taobao.comwww.st.comDescriptionFigure1.STM32FEBKxxperformancelineblockdiagramSTM32FEBKxxJTAG&SWDJNTRSTJTDIJTCKISWCLKJTMSISWDIOJTDOasAFpbusIbusTraceC。ntr。ller。POWERVOLT.REG.3.3VTO1.8V@VDDVDD=2t。3.6VVSSCORTEXM3CPUFmax:72MHzDbusFLASH128KB64bitBusMatrixNVICSystemflashblSRAM20KBPCLK1PCLK2HCLKFCLKRC8MHzRC32kHz@VDDA@VBATAHB2APB1PLL&CLOCKMANAGT@VDDXTALOSC4-16MHzOSCINOSCOUTGPDMAAHB:Fmax=48I72MHz7channelsIWDGStandbyinterfaceVBATOSC32INOSC32OUTANTITAMP@VDDANRSTVDDAVSSASUPPLYSUPERVISIONPORIPDRPVDEXTIWAKEUPGPIOAGPIOBGPIOCGPIODGPIOEAPB2:Fmax=48I72MHzRstIntAHB2APB2XTAL32kHzRTCAWUBackupreg80AFPA[15:0]PB[15:0]PC[15:0]PD[15:0]PE[15:0]BackupinterfaceTIM2TIM3APB1:Fmax=24I36MHzTIM4USART2USART32x(8x16bit)SPI24Channels4Channels8ChannelsRX,TX,CTS,RTS,SmartCardasAFRX,TX,CTS,RTS,SmartCardasAFMOSI,MISO,SCK,NSSasAFSCL,SDA,SMBALasAFSCL,SDAasAFUSBDPICANTXUSBDMICANRX4Channels3c。mpl.ChannelsBrkinputMOSI,MISO,SCK,NSSasAFRX,TX,CTS,RTS,SmartCardasAFTIM1SPI1USART1@VDDAI2C1I2C2bxCANUSB2.0FS16AFVREF+VREF-12bitADC1IFSRAM512B12bitADC2IFWWDGTempsens。rai143901.2. TA=–40°Cto+105°C(junctiontemperatureupto125°C).AF=alternatefunctiononI/Oportpin. 14/67https://houcheng-power.taobao.comwww.st.comSTM32FEBKxxPindescriptions3Pindescriptions Figure2.STM32FEBKxxperformancelineLQFP100pinoutVDD_3VSS_3PE1PE0PB9PB8BOOT0PB7PB6PB5PB4PB3PD7PD6PD5PD4PD3PD2PD1PD0PC12PC11PC10PA15PA14PE2PE3PE4PE5PE6VBATPC13-ANTI_TAMPPC14-OSC32_INPC15-OSC32_OUTVSS_5VDD_5OSC_INOSC_OUTNRSTPC0PC1PC2PC3VSSAVREF-VREF+VDDAPA0-WKUPPA1PA21234567891011121314151617181920212223242510099989796959493929190898887868584838281807978777675747372717069686766656463626160595857565554535251LQFP100VDD_2VSS_2NCPA13PA12PA11PA10PA9PA8PC9PC8PC7PC6PD15PD14PD13PD12PD11PD10PD9PD8PB15PB14PB13PB12PA3VSS_4VDD_4PA4PA5PA6PA7PC4PC5PB0PB1PB2PE7PE8PE9PE10PE11PE12PE13PE14PE15PB10PB11VSS_1VDD_126272829303132333435363738394041424344454647484950ai14391https://houcheng-power.taobao.comwww.st.com15/67