| Electronic Components Datasheet Search |
|
HT45F56 Datasheet(PDF) 51 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F56 Datasheet(HTML) 51 Page - Holtek Semiconductor Inc |
|
51 / 90 page ![]() Rev. 1.11 50 April 11, 2017 Rev. 1.11 51 April 11, 2017 HT45F56 Shock Detector Flash MCU HT45F56 Shock Detector Flash MCU Compact Type Timer Module – CTM Oneofthemostfundamentalfunctionsinanymicrocontrollerdevicesistheabilitytocontrol andmeasuretime.ToimplementtimerelatedfunctionsthedeviceincludesoneTimerModule, generallyabbreviatedtothenameTM.ThisTMisthesimplesttypeoftheTMswhichcontainsa multi-purposetimingunit.AlthoughthesimplestformoftheTMtypes,theCompactTMtypestill containsthreeoperatingmodes,whichareCompareMatchOutput,Timer/EventCounterandPWM Outputmodes.TheCompactTMcanalsobecontrolledwithanexternalinputpinandcandriveone externaloutputpin. ThekeytounderstandinghowtheTMoperatesistoseeitintermsofafreerunningcount-up counterwhosevalueisthencomparedwiththevalueofpre-programmedinternalcomparators. Whenthefreerunningcount-upcounterhasthesamevalueasthepre-programmedcomparator, knownasacomparematchsituation,aTMinterruptsignalwillbegeneratedwhichcanclearthe counterandperhapsalsochangetheconditionoftheTMoutputpin.TheCTMhastwointerrupts, oneforeachoftheinternalcomparatorAorcomparatorP,whichgenerateaTMinterruptwhen acomparematchconditionoccurs.WhenaTMinterruptisgenerated,itcanbeusedtoclearthe counterandalsotochangethestateoftheTMoutputpin. TheinternalTMcounterisdrivenbyauserselectableclocksource,whichcanbeaninternal clockoranexternalpin.Theselectionoftherequiredclocksourceisimplementedusingthe CTCK2~CTCK0bitsintheCTMcontrolregisters.Theclocksourcecanbearatioofthesystem clock,fSYS,ortheinternalhighclock,fH,thefSUBclocksourceortheexternalCTCKpin.TheCTCK pinclocksourceisusedtoallowanexternalsignaltodrivetheTMasanexternalclocksourcefor eventcounting. TheTMoutputpincanbeselectedusingthecorrespondingpin-sharedfunctionselectionbits describedinthePin-sharedFunctionsection.WhentheTMisintheCompareMatchOutputMode, thesepinscanbecontrolledbytheTMtoswitchtoahighorlowlevelortotogglewhenacompare matchsituationoccurs.TheexternalCTPoutputpinisalsothepinwheretheTMgeneratesthe PWMoutputwaveform.AstheTMoutputpinsarepin-sharedwithotherfunctions,theTMoutput functionmustfirstbesetupusingrelevantpin-sharedfunctionselectionregister. CTM Core CTM Input Pin CTM Output Pin 10-bit CTM CTCK CTP fSYS fSYS/4 fH/64 fH/16 fSUB CTCK 000 001 010 011 100 101 110 111 CTCK2~CTCK0 10-bit Count-up Counter 3-bit Comparator P CCRP b7~b9 b0~b9 10-bit Comparator A CTON CTPAU Comparator A Match Comparator P Match Counter Clear 0 1 Output Control Polarity Control Pin Control CTP CTOC CTM1, CTM0 CTIO1, CTIO0 CTMAF Interrupt CTMPF Interrupt CTPOL Pin-shared control bit CCRA CTCCLR fSUB Compact Type TM Block Diagram |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |