Rev. 2.50 112 June 22, 2017 Rev. 2.50 113 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
Compact Type TM – CTM
AlthoughthesimplestformofthethreeTMtypes,theCompactTMtypestillcontainsthree
operatingmodes,whichareCompareMatchOutput,Timer/EventCounterandPWMOutputmodes.
TheCompactTMcanalsobecontrolledwithanexternalinputpinandcandriveoneortwoexternal
outputpins.Thesetwoexternaloutputpinscanbethesamesignalortheinversesignal.
CTM Name TM No. TM Input Pin TM Output Pin
HT66F20
10-bit CTM 0 TCK0 TP0_0
HT66F30
10-bit CTM 0 TCK0 TP0_0, TP0_1
HT66F40 10-bit CTM 0 TCK0 TP0_0, TP0_1
HT66F50 10-bit CTM 0, 3 TCK0, TCK3 TP0_0, TP0_1, TP3_0, TP3_1
HT66F60 10-bit CTM 0, 3 TCK0, TCK3 TP0_0, TP0_1, TP3_0, TP3_1
Compact Type TM Block Diagram
Compact TM Operation
Atitscoreisa10-bitcount-upcounterwhichisdrivenbyauserselectableinternalorexternalclock
source.Therearealsotwointernalcomparatorswiththenames,ComparatorAandComparatorP.
ThesecomparatorswillcomparethevalueinthecounterwithCCRPandCCRAregisters.The
CCRPisthreebitswidewhosevalueiscomparedwiththehighestthreebitsinthecounterwhilethe
CCRAisthetenbitsandthereforecompareswithallcounterbits.
Theonlywayofchangingthevalueofthe10-bitcounterusingtheapplicationprogram,isto
clearthecounterbychangingtheTnONbitfromlowtohigh.Thecounterwillalsobecleared
automaticallybyacounteroveroworacomparematchwithoneofitsassociatedcomparators.
Whentheseconditionsoccur,aTMinterruptsignalwillalsousuallybegenerated.TheCompact
TypeTMcanoperateinanumberofdifferentoperationalmodes,canbedrivenbydifferentclock
sourcesincludinganinputpinandcanalsocontrolanoutputpin.Alloperatingsetupconditionsare
selectedusingrelevantinternalregisters.