User`s guide
Rev. 1.10 60 November 14, 2014 Rev. 1.10 61 November 14, 2014
HT66FW2230
Wireless Charger A/D Flash 8-Bit MCU
Compact Type TM – CTM
AlthoughthesimplestformofthetwoTMtypes,theCompactTMtypestillcontainsthreeoperating
modes,whichareCompareMatchOutput,Timer/EventCounterandPWMOutputmodes.The
CompactTMcanalsobecontrolledwithanexternalinputpinandcandrivetwoexternaloutput
pins.Thesetwoexternaloutputpinscanbethesamesignalortheinversesignal.
Compact Type TM Block Diagram (n=1)
Compact TM Operation
Atitscoreisa10-bitcount-upcounterwhichisdrivenbyauserselectableinternalorexternalclock
source.Therearealsotwointernalcomparatorswiththenames,ComparatorAandComparator
P.ThesecomparatorswillcomparethevalueinthecounterwithCCRPandCCRAregisters.The
CCRPisthreebitswidewhosevalueiscomparedwiththehighestthreebitsinthecounterwhilethe
CCRAisthetenbitsandthereforecompareswithallcounterbits.
Theonlywayofchangingthevalueofthe10-bitcounterusingtheapplicationprogram,isto
clearthecounterbychangingtheT1ONbitfromlowtohigh.Thecounterwillalsobecleared
automaticallybyacounteroveroworacomparematchwithoneofitsassociatedcomparators.
Whentheseconditionsoccur,aTMinterruptsignalwillalsousuallybegenerated.TheCompact
TypeTMcanoperateinanumberofdifferentoperationalmodes,canbedrivenbydifferentclock
sourcesincludinganinputpinandcanalsocontrolanoutputpin.Alloperatingsetupconditionsare
selectedusingrelevantinternalregisters.