User`s guide
Rev. 1.10 64 November 14, 2014 Rev. 1.10 65 November 14, 2014
HT66FW2230
Wireless Charger A/D Flash 8-Bit MCU
TM1C1 Register
Bit 7 6 5 4 3 2 1 0
Name T1M1 T1M0 T1IO1 T1IO0 T1OC T1POL T1DPX T1CCLR
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
Bit7~6 T1M1~T1M0: SelectTM1OperatingMode
00:CompareMatchOutputMode
01:Undened
10:PWMMode
11:Timer/CounterMode
ThesebitssetuptherequiredoperatingmodefortheTM.Toensurereliableoperation
theTMshouldbeswitchedoffbeforeanychangesaremadetotheT1M1andT1M0
bits.IntheTimer/CounterMode,theTMoutputpincontrolmustbedisabled.
Bit5~4 T1IO1~T1IO0:SelectTP1_0,TP1_1outputfunction
CompareMatchOutputMode
00:Nochange
01:Outputlow
10:Outputhigh
11:Toggleoutput
PWMMode
00:PWMOutputinactivestate
01:PWMOutputactivestate
10:PWMoutput
11:Undened
Timer/counterMode
unused
ThesetwobitsareusedtodeterminehowtheTM1outputpinchangesstatewhena
certainconditionisreached.Thefunctionthatthesebitsselectdependsuponinwhich
modetheTM1isrunning.
IntheCompareMatchOutputMode,theT1IO1andT1IO0bitsdeterminehowthe
TM1outputpinchangesstatewhenacomparematchoccursfromtheComparatorA.
TheTM1outputpincanbesetuptoswitchhigh,switchlowortotoggleitspresent
statewhenacomparematchoccursfromtheComparatorA.Whenthebitsareboth
zero,thennochangewilltakeplaceontheoutput.TheinitialvalueoftheTM1output
pinshouldbesetupusingtheT1OCbitintheTM1C1register.Notethattheoutput
levelrequestedbytheT1IO1andT1IO0bitsmustbedifferentfromtheinitialvalue
setupusingtheT1OCbitotherwisenochangewilloccurontheTM1outputpinwhen
acomparematchoccurs.AftertheTM1outputpinchangesstateitcanberesettoits
initiallevelbychangingtheleveloftheT1ONbitfromlowtohigh.
InthePWMMode,theT1IO1andT1IO0bitsdeterminehowtheTMoutputpin
changesstatewhenacertaincomparematchconditionoccurs.ThePWMoutput
functionismodifiedbychangingthesetwobits.Itisnecessarytoonlychangethe
valuesoftheT1IO1andT1IO0bitsonlyaftertheTM1hasbeenswitchedoff.
UnpredictablePWMoutputswilloccuriftheT1IO1andT1IO0bitsarechangedwhen
theTMisrunning.