Rev. 1.71 82 April 11, 2017 Rev. 1.71 83 April 11, 2017
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
Periodic Type TM – PTM
ThePeriodicTypeTMcontainsveoperatingmodes,whichareCompareMatchOutput,Timer/
EventCounter,CaptureInput,SinglePulseOutputandPWMOutputmodes.ThePeriodicTMcan
alsobecontrolledwithtwoexternalinputpinsandcandrivetwoexternaloutputpins.
Device Name TM Input Pin TM Output Pin
HT66F003 10-bit PTM PTCK1, PTP1I PTP1,PTP1B
HT66F004 10-bit PTM
PTCK0, PTP0I
PTCK1, PTP1I
PTP0,PTP0B
PTP1,PTP1B
Periodic TM Operation
Atitscoreisa10-bitcount-upcounterwhichisdrivenbyauserselectableinternalorexternalclock
source.Therearetwointernalcomparatorswiththenames,ComparatorAandComparatorP.These
comparatorswillcomparethevalueinthecounterwiththeCCRAandCCRPregisters.
Theonlywayofchangingthevalueofthe10-bitcounterusingtheapplicationprogram,isto
clearthecounterbychangingthePTnONbitfromlowtohigh.Thecounterwillalsobecleared
automaticallybyacounteroveroworacomparematchwithoneofitsassociatedcomparators.
Whentheseconditionsoccur,aTMinterruptsignalwillalsousuallybegenerated.ThePeriodic
TypeTMcanoperateinanumberofdifferentoperationalmodes,canbedrivenbydifferentclock
sourcesincludinganinputpinandcanalsocontroltheoutputpin.Alloperatingsetupconditionsare
selectedusingrelevantinternalregisters.
Periodic Type TM Block Diagram (n=0 or 1)