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 Register Description
OveralloperationoftheStandardTMiscontrolledusingaseriesofregisters.Areadonlyregister
pairexiststostoretheinternalcounter10-bitvalue,whilearead/writeregisterpairexiststostore
theinternal10-bitCCRAvalue.Theremainingtworegistersarecontrolregisterswhichsetupthe
differentoperatingandcontrolmodesaswellasthethreeCCRPbits.
Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
TM0C0 T0PAU
T0CK2 T0CK1 T0CK0 T0ON T0RP2 T0PR1 T0PR0
TM0C1 T0M1 T0M0 T0IO1 T0IO0 T0OC T0POL T0DPX T0CCLR
TM0DL D7 D6 D5
D4 D3 D2 D1 D0
TM0DH D9 D8
TM0AL D7 D6 D5
D4 D3 D2 D1 D0
TM0AH D9 D8
10-bit Standard TM Register List
TM0C0 Register
Bit 7 6 5 4 3 2 1 0
Name T0PAU T0CK2 T0CK1 T0CK0 T0ON T0RP2 T0PR1 T0PR0
R/W R/W R/W R/W R/W R/W R/W R/W R/W
POR 0 0 0 0 0 0 0 0
Bit7 T0PAU:TM0CounterPauseControl
0:Run
1:Pause
Thecountercanbepausedbysettingthisbithigh.Clearingthebittozerorestores
normalcounteroperation.WheninaPauseconditiontheTMwillremainpoweredup
andcontinuetoconsumepower.Thecounterwillretainitsresidualvaluewhenthisbit
changesfromlowtohighandresumecountingfromthisvaluewhenthebitchanges
toalowvalueagain.
Bit6~4 T0CK2~T0CK0:SelectTM0Counterclock
000:f
SYS
/4
001:f
SYS
010:f
H
/16
011:f
H
/64
100:f
SUB
101:f
SUB
110:TCK0risingedgeclock
111:TCK0fallingedgeclock
ThesethreebitsareusedtoselecttheclocksourcefortheTM0.Theexternalpinclock
sourcecanbechosentobeactiveontherisingorfallingedge.Theclocksourcef
SYS
is
thesystemclock,whilef
H
istheHXToscillatorandf
SUB
isinternalclock,thedetails
ofwhichcanbefoundintheoscillatorsection.
Bit3 T0ON:TM0CounterOn/OffControl
0:Off
1:On
Thisbitcontrolstheoverallon/offfunctionoftheTM0.Settingthebithighenables
thecountertorun,clearingthebitdisablestheTM0.Clearingthisbittozerowill
stopthecounterfromcountingandturnofftheTM0whichwillreduceitspower
consumption.Whenthebitchangesstatefromlowtohightheinternalcountervalue
willberesettozero,howeverwhenthebitchangesfromhightolow,theinternal
counterwillretainitsresidualvalueuntilthebitreturnshighagain.IftheTM0isin
theCompareMatchOutputModethentheTM0outputpinwillberesettoitsinitial
condition,asspeciedbytheT0OCbit,whentheT0ONbitchangesfromlowtohigh.