| Electronic Components Datasheet Search |
|
HT45F39 Datasheet(PDF) 46 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F39 Datasheet(HTML) 46 Page - Holtek Semiconductor Inc |
|
46 / 102 page ![]() Rev. 1.10 46 July 01, 2016 Rev. 1.10 47 July 01, 2016 HT45F39/HT45F391 Ultrasonic Distance Measurement 8-bit Flash MCU HT45F39/HT45F391 Ultrasonic Distance Measurement 8-bit Flash MCU TM Operation ThekeytounderstandinghowtheTMoperatesistoseeitintermsofafreerunningcounterwhose valueisthencomparedwiththevalueofpre-programmedinternalcomparators.Whenthefree runningcounterhasthesamevalueasthepre-programmedcomparator,knownasacomparematch situation,aTMinterruptsignalwillbegeneratedwhichcanclearthecounterandperhapsalso changetheconditionoftheTMoutputpin.TheinternalTMcounterisdrivenbyauserselectable clocksource,whichcanbeaninternalclockoranexternalpin. TM Clock Source TheclocksourcewhichdrivesthemaincounterineachTMcanoriginatefromvarioussources. TheselectionoftherequiredclocksourceisimplementedusingtheTnCK2~TnCK0bitsintheTM controlregisters.TheclocksourcecanbearatioofthesystemclockfSYSortheexternalTCKnpin. TheTCKnpinclocksourceisusedtoallowanexternalsignaltodrivetheTMasanexternalclock sourceorforeventcounting. TM Interrupts TheCompactTMshavetwointernalinterrupts,oneforeachoftheinternalcomparatorAor comparatorP,whichgenerateaTMinterruptwhenacomparematchconditionoccurs.Whena TMinterruptisgenerateditcanbeusedtoclearthecounterandalsotochangethestateoftheTM outputpin. TM External Pins EachoftheTMshasoneTMinputpin,withthelabelTCKn.TheTMinputpin,isessentiallya clocksourcefortheTMandisselectedusingtheTnCK2~TnCK0bitsintheTMnC0register.This externalTMinputpinallowsanexternalclocksourcetodrivetheinternalTM.ThisexternalTM inputpinissharedwithotherfunctionsbutwillbeconnectedtotheinternalTMifselectedusingthe TnCK2~TnCK0bits.TheTMinputpincanbechosentohaveeitherarisingorfallingactiveedge. TheTMseachhaveoneormoreoutputpinswiththelabelTPn.WhentheTMisintheCompare MatchOutputMode,thesepinscanbecontrolledbytheTMtoswitchtoahighorlowlevelorto togglewhenacomparematchsituationoccurs.TheexternalTPnoutputpinisalsothepinwherethe TMgeneratesthePWMoutputwaveform.AstheTMoutputpinsarepin-sharedwithotherfunction, theTMoutputfunctionmustfirstbesetupusingregisters.Asinglebitinoneoftheregisters determinesifitsassociatedpinistobeusedasanexternalTMoutputpinorifitistohaveanother function. |
|
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 |