Rev. 2.50 132 June 22, 2017 Rev. 2.50 133 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
• TM2DL Register – 16-bit STM
Bit 7 6 5 4 3 2 1 0
Name
D7 D6 D5 D4 D3 D2 D1 D0
R/W R R R R R R R R
POR 0 0 0 0 0 0 0 0
Bit7~0 TM2DL:TM2CounterLowByteRegisterbit7~bit0
TM216-bitCounterbit7~bit0
• TM2DH Register – 16-bit STM
Bit 7 6 5 4 3 2 1 0
Name
D15 D14 D13 D12 D11 D10 D9 D8
R/W R R R R R R R R
POR 0 0 0 0 0 0 0 0
Bit7~0 TM2DH:TM2CounterHighByteRegisterbit7~bit0
TM216-bitCounterbit15~bit8
• TM2AL Register – 16-bit STM
Bit 7 6 5 4 3 2 1 0
Name
D7 D6 D5 D4 D3 D2 D1 D0
R/W R/W R/W R/W R/W R/W R/W R/W R/W
POR 0 0 0 0 0 0 0 0
Bit7~0 TM2AL:TM2CCRALowByteRegisterbit7~bit0
TM216-bitCCRAbit7~bit0
• TM2AH Register – 16-bit STM
Bit 7 6 5 4 3 2 1 0
Name
D15 D14 D13 D12 D11 D10 D9 D8
R/W R/W R/W R/W R/W R/W R/W R/W R/W
POR 0 0 0 0 0 0 0 0
Bit7~0 TM2AH:TM2CCRAHighByteRegisterbit7~bit0
TM216-bitCCRAbit15~bit8
• TM2RP Register – 16-bit STM
Bit 7 6 5 4 3 2 1 0
Name
D7 D6 D5 D4 D3 D2 D1 D0
R/W R/W R/W R/W R/W R/W R/W R/W R/W
POR 0 0 0 0 0 0 0 0
Bit7~0 TM2RP:TM2CCRPRegisterbit7~bit0
TM2CCRP8-bitregister,comparedwiththeTM2Counterbit15~bit8.ComparatorP
MatchPeriod
0:65536TM2clocks
1~255:256×(1~255)TM2clocks
TheseeightbitsareusedtosetupthevalueontheinternalCCRP8-bitregister,which
arethencomparedwiththeinternalcounter'shighesteightbits.Theresultofthis
comparisoncanbeselectedtocleartheinternalcounteriftheT2CCLRbitissetto
zero.SettingtheT2CCLRbittozeroensuresthatacomparematchwiththeCCRP
valueswillresettheinternalcounter.AstheCCRPbitsareonlycomparedwiththe
highesteightcounterbits,thecomparevaluesexistin256clockcyclemultiples.
Clearingalleightbitstozeroisineffectallowingthecountertooverflowatits
maximumvalue.