Rev. 1.50 104 August 28, 2017 Rev. 1.50 105 August 28, 2017
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
TMnC0 Register
Bit 7 6 5 4 3 2 1 0
Name TnPAU TnCK2 TnCK1 TnCK0 TnON — — —
R/W R/W R/W R/W R/W R/W — — —
POR 0 0 0 0 0 — — —
Bit7 TnPAU:TMnCounterPausecontrol
0:Run
1:Pause
Thecountercanbepausedbysettingthisbithigh.Clearingthebittozerorestores
normalcounteroperation.WheninaPauseconditiontheTMnwillremainpoweredup
andcontinuetoconsumepower.Thecounterwillretainitsresidualvaluewhenthisbit
changesfromlowtohighandresumecountingfromthisvaluewhenthebitchanges
toalowvalueagain.
Bit6~4 TnCK2~TnCK0:SelectTMnCounterclock
000:f
SYS
/4
001:f
SYS
010:f
H
/16
011:f
H
/64
100:f
TBC
101:f
H
110:TCKnrisingedgeclock
111:TCKnfallingedgeclock
ThesethreebitsareusedtoselecttheclocksourcefortheTMn.Theexternalpinclock
sourcecanbechosentobeactiveontherisingorfallingedge.Theclocksourcef
SYS
is
thesystemclock,whilef
H
andf
TBC
areotherinternalclocks,thedetailsofwhichcan
befoundintheoscillatorsection.
Bit3 TnON:TMnCounterOn/Offcontrol
0:Off
1:On
Thisbitcontrolstheoverallon/offfunctionoftheTMn.Settingthebithighenables
thecountertorunwhileclearingthebitdisablestheTMn.Clearingthisbittozero
willstopthecounterfromcountingandturnofftheTMnwhichwillreduceitspower
consumption.Whenthebitchangesstatefromlowtohightheinternalcountervalue
willberesettozero,howeverwhenthebitchangesfromhightolow,theinternal
counterwillretainitsresidualvalueuntilthebitreturnshighagain.IftheTMnisin
theCompareMatchOutputModethentheTMnoutputpinwillberesettoitsinitial
condition,asspeciedbytheTnOCbit,whentheTnONbitchangesfromlowtohigh.
Bit2~0 Unimplemented,readas“0”