User`s guide

Rev. 1.10 80 November 14, 2014 Rev. 1.10 81 November 14, 2014
HT66FW2230
Wireless Charger A/D Flash 8-Bit MCU
CCRA
CCRP
Counter Value
Counter Cleared
by CCRA
CCRP Int.
Flag TnPF
CCRA Int.
Flag TnAF
PWM Output
TM Pin
TnOC = 1
TnON bit
PWM Duty Cycle
set by CCRP
PWM Period
set by CCRA
TnIO1, TnIO0 = 10 PWM Output
TnIO1, TnIO0 = 00
Output Inactive
TnIO1, TnIO0 = 10
Interrupts
still generated
Here TnIO1, TnIO0 = 00
Output Forced to Inactive
level but PWM function
keeps running internally
TnIO1, TnIO0 = 10
Resume PWM Output
Counter Stop
if TnON bit low
Counter reset
when TnON
returns high
PWM resumes
operation
Time
TnPOL bit
Output Inverts
When TnPOL = 1
TM Pin
TnOC = 0
TnPAU bit
ResumePause
TnDPX = 1; TnM1, TnM0 = 10
Output controlled by
other pin-shared function
PWM Mode – TnDPX=1
Note:1.HereTnDPX=1-CounterclearedbyCCRA
2.AcounterclearsetsPWMPeriod
3.TheinternalPWMfunctioncontinuesevenwhenTnIO[1:0]=00or01
4.TheTnCCLRbithasnoinuenceonPWMoperation
5.n=0
Single Pulse Mode
Toselectthismode,bitsT0M1andT0M0intheTM0C1registershouldbesetto10respectively
andalsotheT0IO1andT0IO0bitsshouldbesetto11respectively.TheSinglePulseOutputMode,
asthenamesuggests,willgenerateasingleshotpulseontheTMoutputpin.
ThetriggerforthepulseoutputleadingedgeisalowtohightransitionoftheT0ONbit,whichcan
beimplementedusingtheapplicationprogram.HoweverintheSinglePulseMode,theT0ONbit
canalsobemadetoautomaticallychangefromlowtohighusingtheexternalTCK0pin,whichwill
inturninitiatetheSinglePulseoutput.WhentheT0ONbittransitionstoahighlevel,thecounter
willstartrunningandthepulseleadingedgewillbegenerated.TheT0ONbitshouldremainhigh
whenthepulseisinitsactivestate.Thegeneratedpulsetrailingedgewillbegeneratedwhenthe
T0ONbitisclearedtozero,whichcanbeimplementedusingtheapplicationprogramorwhena
comparematchoccursfromComparatorA.