Rev. 1.50 76 August 28, 2017 Rev. 1.50 77 August 28, 2017
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
Compact Type TM – CTM
TheCompacttypeTM,CTM,isonlycontainedintheHT66F0185device.Althoughthesimplest
formoftheTMtypes,theCompactTMtypestillcontainsthreeoperatingmodes,whichare
CompareMatchOutput,Timer/EventCounterandPWMOutputmodes.TheCompactTMcanalso
becontrolledwithanexternalinputpinandcandriveoneexternaloutputpin.
Device TM Core TM No. TM Input Pin TM Output Pin
HT66F0185 16-bit CTM TM2 TCK2 TP2
f
SYS
f
SYS
/4
f
H
/64
f
H
/16
f
TBC
TCKn
000
001
010
011
100
101
110
111
TnCK2~TnCK0
16-bit Count-up Counter
8-bit Comparator P
CCRP
b8~b15
b0~b15
16-bit Comparator A
TnON
TnPAU
Comparator A Match
Comparator P Match
Counter Clear
0
1
Output
Control
Polarity
Control
Pin
Control
TPn
TnOC
TnM1, TnM0
TnIO1, TnIO0
TnAF Interrupt
TnPF Interrupt
TnPOL TnCP
CCRA
TnCCLR
f
H
/8
Compact Type TM Block Diagram – n = 2 for HT66F0185 only
Compact TM Operation
TheCompactTMcoreisa16-bitcount-upcounterwhichisdrivenbyauserselectableinternalor
externalclocksource.Therearealsotwointernalcomparatorswiththenames,ComparatorAand
ComparatorP.ThesecomparatorswillcomparethevalueinthecounterwithCCRPandCCRA
registers.TheCCRPiseight-bitwidewhosevalueiscomparedwiththehighesteightbitsinthe
counterwhiletheCCRAissixteen-bitwideandthereforecompareswithallcounterbits.
Theonlywayofchangingthevalueofthe16-bitcounterusingtheapplicationprogram,isto
clearthecounterbychangingtheTnONbitfromlowtohigh.Thecounterwillalsobecleared
automaticallybyacounteroveroworacomparematchwithoneofitsassociatedcomparators.
Whentheseconditionsoccur,aTMinterruptsignalwillalsousuallybegenerated.TheCompact
TypeTMcanoperateinanumberofdifferentoperationalmodes,canbedrivenbydifferentclock
sourcesincludinganinputpinandcanalsocontrolanoutputpin.Alloperatingsetupconditionsare
selectedusingrelevantinternalregisters.