EasyManua.ls Logo

Holtek HT66F0175 - Periodic Type TM - PTM; Periodic TM Operation

Default Icon
207 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Rev. 1.50 102 August 28, 2017 Rev. 1.50 103 August 28, 2017
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
Periodic Type TM – PTM
ThePeriodicTypeTMcontainsveoperatingmodes,whichareCompareMatchOutput,Timer/
EventCounter,CaptureInput,SinglePulseOutputandPWMOutputmodes.ThePeriodicTMcan
alsobecontrolledwithoneexternalinputpinandcandriveoneexternaloutputpin.
Device TM Core TM No. TM Input Pin TM Output Pin
HT66F0175 10-bit PTM TM0, TM1 TCK0, TCK1 TP0, TP1
HT66F0185 10-bit PTM TM1 TCK1 TP1
f
SYS
f
SYS
/4
f
H
/64
f
H
/16
f
TBC
TCKn
000
001
010
011
100
101
110
111
TnCK2~TnCK0
10-bit Count-up Counter
10-bit Comparator P
CCRP
b0~b9
b0~b9
10-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
Edge
Detector
TnIO1, TnIO0
f
H
1
0
TnCAPTS
Periodic Type TM Block Diagram – n = 0 or 1
Periodic TM Operation
ThesizeofPeriodicTMis10-bitwideanditscoreisa10-bitcount-upcounterwhichisdrivenby
auserselectableinternalorexternalclocksource.Therearealsotwointernalcomparatorswiththe
names,ComparatorAandComparatorP.Thesecomparatorswillcomparethevalueinthecounter
withCCRPandCCRAregisters.TheCCRPandCCRAcomparatorsare10-bitwidewhosevalueis
respectivelycomparedwithallcounterbits.
Theonlywayofchangingthevalueofthe10-bitcounterusingtheapplicationprogramisto
clearthecounterbychangingtheTnONbitfromlowtohigh.Thecounterwillalsobecleared
automaticallybyacounteroveroworacomparematchwithoneofitsassociatedcomparators.
Whentheseconditionsoccur,aTMinterruptsignalwillalsousuallybegenerated.ThePeriodic
TypeTMcanoperateinanumberofdifferentoperationalmodes,canbedrivenbydifferentclock
sourcesincludinganinputpinandcanalsocontroltheoutputpins.Alloperatingsetupconditions
areselectedusingrelevantinternalregisters.

Table of Contents