Rev. 2.50 128 June 22, 2017 Rev. 2.50 129 June 22, 2017
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
16-bit Standard TM Register List - HT66F40/HT66F50/HT66F60
• TM2C0 Register – 16-bit STM
Bit 7 6 5 4 3 2 1 0
Name T2PAU T2CK2
T2CK1 T2CK0 T2ON — — —
R/W R/W R/W R/W R/W R/W — — —
POR 0 0 0 0 0 — — —
Bit7 T2PAU:TM2CounterPauseControl
0:Run
1:Pause
Thecountercanbepausedbysettingthisbithigh.Clearingthebittozerorestores
normalcounteroperation.WheninaPauseconditiontheTMwillremainpoweredup
andcontinuetoconsumepower.Thecounterwillretainitsresidualvaluewhenthisbit
changesfromlowtohighandresumecountingfromthisvaluewhenthebitchanges
toalowvalueagain.
Bit6~4 T2CK2, T2CK1, T2CK0:SelectTM2Counterclock
000:f
SYS
/4
001:f
SYS
010:f
H
/16
011:f
H
/64
100:f
TBC
101:Undened
110:TCK2risingedgeclock
111:TCK2fallingedgeclock
ThesethreebitsareusedtoselecttheclocksourcefortheTM.SelectingtheReserved
clockinputwilleffectivelydisabletheinternalcounter.Theexternalpinclocksource
canbechosentobeactiveontherisingorfallingedge.Theclocksourcef
SYS
isthe
systemclock,whilef
H
andf
TBC
areotherinternalclocks,thedetailsofwhichcanbe
foundintheoscillatorsection.
Bit3 T2ON:TM2CounterOn/OffControl
0:Off
1:On
Thisbitcontrolstheoverallon/offfunctionoftheTM.Settingthebithighenablesthe
countertorun,clearingthebitdisablestheTM.Clearingthisbittozerowillstopthe
counterfromcountingandturnofftheTMwhichwillreduceitspowerconsumption.
Whenthebitchangesstatefromlowtohightheinternalcountervaluewillberesetto
zero,howeverwhenthebitchangesfromhightolow,theinternalcounterwillretain
itsresidualvalueuntilthebitreturnshighagain.
IftheTMisintheCompareMatchOutputModethentheTMoutputpinwillbereset
toitsinitialcondition,asspeciedbytheT2OCbit,whentheT2ONbitchangesfrom
lowtohigh.
Bit2~0 Unimplemented,readas“0”