EasyManua.ls Logo

Holtek HT66F0175 - Page 107

Default Icon
207 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
Bit3 TnOC:TMnTPnOutputcontrol
CompareMatchOutputMode
0:Initiallow
1:Initialhigh
PWMOutputMode/SinglePulseOutputMode
0:Activelow
1:Activehigh
ThisistheoutputcontrolbitfortheTMnoutputpin.Itsoperationdependsupon
whetherTMnisbeingusedintheCompareMatchOutputModeorinthePWMMode/
SinglePulseOutputMode.IthasnoeffectiftheTMnisintheTimer/CounterMode.
IntheCompareMatchOutputModeitdeterminesthelogicleveloftheTMnoutput
pinbeforeacomparematchoccurs.InthePWMMode/SinglePulseOutputModeit
determinesifthePWMsignalisactivehighoractivelow.
Bit2 TnPOL:TMnTPnOutputpolaritycontrol
0:Non-inverted
1:Inverted
ThisbitcontrolsthepolarityoftheTPnoutputpin.WhenthebitissethightheTMn
outputpinwillbeinvertedandnotinvertedwhenthebitiszero.Ithasnoeffectifthe
TMnisintheTimer/CounterMode.
Bit1 TnCAPTS:TMnCaptureTriggerSourceselection
0:FromTPnpin
1:FromTCKnpin
Bit0 TnCCLR:TMnCounterClearconditionselection
0:ComparatorPmatch
1:ComparatorAmatch
Thisbitisusedtoselectthemethodwhichclearsthecounter.Rememberthatthe
PeriodicTMcontainstwocomparators,ComparatorAandComparatorP,eitherof
whichcanbeselectedtocleartheinternalcounter.WiththeTnCCLRbitsethigh,
thecounterwillbeclearedwhenacomparematchoccursfromtheComparatorA.
Whenthebitislow,thecounterwillbeclearedwhenacomparematchoccursfrom
theComparatorPorwithacounteroverow.Acounteroverowclearingmethodcan
onlybeimplementediftheCCRPbitsareallclearedtozero.TheTnCCLRbitisnot
usedinthePWMOutput,SinglePulseOutputorCaptureInputMode.

Table of Contents