Rev. 1.50 106 August 28, 2017 Rev. 1.50 107 August 28, 2017
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
Bit3 TnOC:TMnTPnOutputcontrol
CompareMatchOutputMode
0:Initiallow
1:Initialhigh
PWMOutputMode/SinglePulseOutputMode
0:Activelow
1:Activehigh
ThisistheoutputcontrolbitfortheTMnoutputpin.Itsoperationdependsupon
whetherTMnisbeingusedintheCompareMatchOutputModeorinthePWMMode/
SinglePulseOutputMode.IthasnoeffectiftheTMnisintheTimer/CounterMode.
IntheCompareMatchOutputModeitdeterminesthelogicleveloftheTMnoutput
pinbeforeacomparematchoccurs.InthePWMMode/SinglePulseOutputModeit
determinesifthePWMsignalisactivehighoractivelow.
Bit2 TnPOL:TMnTPnOutputpolaritycontrol
0:Non-inverted
1:Inverted
ThisbitcontrolsthepolarityoftheTPnoutputpin.WhenthebitissethightheTMn
outputpinwillbeinvertedandnotinvertedwhenthebitiszero.Ithasnoeffectifthe
TMnisintheTimer/CounterMode.
Bit1 TnCAPTS:TMnCaptureTriggerSourceselection
0:FromTPnpin
1:FromTCKnpin
Bit0 TnCCLR:TMnCounterClearconditionselection
0:ComparatorPmatch
1:ComparatorAmatch
Thisbitisusedtoselectthemethodwhichclearsthecounter.Rememberthatthe
PeriodicTMcontainstwocomparators,ComparatorAandComparatorP,eitherof
whichcanbeselectedtocleartheinternalcounter.WiththeTnCCLRbitsethigh,
thecounterwillbeclearedwhenacomparematchoccursfromtheComparatorA.
Whenthebitislow,thecounterwillbeclearedwhenacomparematchoccursfrom
theComparatorPorwithacounteroverow.Acounteroverowclearingmethodcan
onlybeimplementediftheCCRPbitsareallclearedtozero.TheTnCCLRbitisnot
usedinthePWMOutput,SinglePulseOutputorCaptureInputMode.