User`s guide

Rev. 1.10 76 November 14, 2014 Rev. 1.10 77 November 14, 2014
HT66FW2230
Wireless Charger A/D Flash 8-Bit MCU
IftheT0CCLRbitintheTM0C1registerishighthenthecounterwillbeclearedwhenacompare
matchoccursfromComparatorA.However,hereonlytheT0AFinterruptrequestflagwillbe
generatedevenifthevalueoftheCCRPbitsislessthanthatoftheCCRAregisters.Thereforewhen
T0CCLRishighnoT0PFinterruptrequestagwillbegenerated.IntheCompareMatchOutput
Mode,theCCRAcannotbesetto“0”.
Asthenameofthemodesuggests,afteracomparisonismade,theTMoutputpin,willchange
state.TheTMoutputpinconditionhoweveronlychangesstatewhenaT0AFinterruptrequestag
isgeneratedafteracomparematchoccursfromComparatorA.TheT0PFinterruptrequestflag,
generatedfromacomparematchoccursfromComparatorP,willhavenoeffectontheTMoutput
pin.ThewayinwhichtheTMoutputpinchangesstatearedeterminedbytheconditionofthe
T0IO1andT0IO0bitsintheTM0C1register.TheTMoutputpincanbeselectedusingtheT0IO1
andT0IO0bitstogohigh,togolowortotogglefromitspresentconditionwhenacomparematch
occursfromComparatorA.TheinitialconditionoftheTMoutputpin,whichissetupafterthe
T0ONbitchangesfromlowtohigh,issetupusingtheT0OCbit.NotethatiftheT0IO1andT0IO0
bitsarezerothennopinchangewilltakeplace.
Time
Output inverts
when TnPOL is high
Output controlled
by other pin-shared function
Output Pin
Reset to initial value
Output not affected by
TnAF flag. Remains High
until reset by TnON bit
Here TnIO1, TnIO0 = 11
Toggle Output Select
Now TnIO1, TnIO0 = 10
Active High Output
Select
Output Pin set
to Initial Level
Low if TnOC = 0
Output Toggle
with TnAF flag
CCRA
CCRP
0x3FF
Counter
overflow
CCRA Int.
Flag TnAF
CCRP Int.
Flag TnPF
CCRP > 0
Counter cleared by CCRP value
TPnA O/P Pin
TnON bit
Pause Counter
Reset
TnCCLR = 0; TnM[1:0] = 00
TnPAU bit
Resume
Stop
CCRP > 0
CCRP = 0
TnAPOL bit
Counter Value
Compare Match Output Mode – TnCCLR=0
Note:1.WithTnCCLR=0aComparatorPmatchwillclearthecounter
2.TheTMoutputpincontrolledonlybytheTnAFag
3.TheoutputpinresettoinitialstatebyaTnONbitrisingedge
4.n=0