User`s guide
Rev. 1.10 72 November 14, 2014 Rev. 1.10 73 November 14, 2014
HT66FW2230
Wireless Charger A/D Flash 8-Bit MCU
Standard Type TM – STM
TheStandardTypeTMcontainsveoperatingmodes,whichareCompareMatchOutput,Timer/
EventCounter,CaptureInput,SinglePulseOutputandPWMOutputmodes.TheStandardTMcan
alsobecontrolledwithanexternalinputpinandcandriveoneexternaloutputpins.
Name TM No. TM Input Pin TM Output Pin
10-bit STM 0 TCK0 TP0
Standard Type TM Block Diagram (n=0)
Standard TM Operation
Atitscoreisa10-bitcount-upcounterwhichisdrivenbyauserselectableinternalorexternalclock
source.Therearealsotwointernalcomparatorswiththenames,ComparatorAandComparator
P.ThesecomparatorswillcomparethevalueinthecounterwithCCRPandCCRAregisters.The
CCRPis3-bitswidewhosevalueiscomparedwiththehighest3bitsinthecounterwhiletheCCRA
isthe10bitsandthereforecompareswithallcounterbits.
Theonlywayofchangingthevalueofthe10-bitcounterusingtheapplicationprogram,isto
clearthecounterbychangingtheT2ONbitfromlowtohigh.Thecounterwillalsobecleared
automaticallybyacounteroveroworacomparematchwithoneofitsassociatedcomparators.
Whentheseconditionsoccur,aTMinterruptsignalwillalsousuallybegenerated.TheStandard
TypeTMcanoperateinanumberofdifferentoperationalmodes,canbedrivenbydifferentclock
sourcesincludinganinputpinandcanalsocontrolanoutputpin.Alloperatingsetupconditionsare
selectedusingrelevantinternalregisters.