EasyManua.ls Logo

Holtek HT66F0175 - TM External Pins

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 72 August 28, 2017 Rev. 1.50 73 August 28, 2017
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
TM Clock Source
TheclocksourcewhichdrivesthemaincounterineachTMcanoriginatefromvarioussources.
TheselectionoftherequiredclocksourceisimplementedusingtheTnCK2~TnCK0bitsintheTM
controlregisters.Theclocksourcecanbearatioofthesystemclock,f
SYS
,ortheinternalhighclock,
f
H
,thef
TBC
clocksourceortheexternalTCKnpin.TheTCKnpinclocksourceisusedtoallowan
externalsignaltodrivetheTMasanexternalclocksourceforeventcounting.
TM Interrupts
TheCompact,StandardorPeriodictypeTMhastwointernalinterrupts,oneforeachoftheinternal
comparatorAorcomparatorP,whichgenerateaTMinterruptwhenacomparematchcondition
occurs.WhenaTMinterruptisgenerated,itcanbeusedtoclearthecounterandalsotochangethe
stateoftheTMoutputpin.
TM External Pins
EachoftheTMs,irrespectiveofwhattype,hasoneTMinputpin,withthelabelTCKn.TheTM
inputpinisessentiallyaclocksourcefortheTMandisselectedusingtheTnCK2~TnCK0bitsin
theTMnC0register.ThisexternalTMinputpinallowsanexternalclocksourcetodrivetheinternal
TM.ThisexternalTMinputpinissharedwithotherfunctionsbutwillbeconnectedtotheinternal
TMifselectedusingtheTnCK2~TnCK0bits.TheTMinputpincanbechosentohaveeithera
risingorfallingactiveedge.TheTCKnpinisalsousedastheexternaltriggerinputpininsingle
pulseoutputmodefortheSTMandPTMrespectively.
TheTMseachhaveoneoutputpinwiththelabelTPn.WhentheTMisintheCompareMatch
OutputMode,thesepinscanbecontrolledbytheTMtoswitchtoahighorlowlevelortotoggle
whenacomparematchsituationoccurs.TheexternalTPnoutputpinisalsothepinwherethe
TMgeneratesthePWMoutputwaveform.TheTPnpinactsasaninputwhentheTMissetupto
operateintheCaptureInputMode.AstheTPnpinsarepin-sharedwithotherfunctions,theTPn
pinfunctionisenabledordisabledaccordingtotheinternalTMon/offcontrol,operationmodeand
outputcontrolsettings.WhenthecorrespondingTMcongurationselectstheTPnpintobeusedas
anoutputpin,theassociatedpinwillbesetupasanexternalTMoutputpin.IftheTMconguration
selectstheTPnpintobesetupasaninputpin,theinputsignalsuppliedontheassociatedpincan
bederivedfromanexternalsignalandotherpin-sharedoutputfunction.IftheTMconguration
determinesthattheTPnpinfunctionisnotused,theassociatedpinwillbecontrolledbyother
pin-sharedfunctions.ThedetailsoftheTPnpinforeachTMtypeanddeviceareprovidedinthe
accompanyingtable.
Device STM PTM CTM Register
HT66F0175
TCK0; TP0
TCK1; TP1
TMPC
HT66F0185 TCK0; TP0 TCK1; TP1 TCK2; TP2 TMPC
TM External Pins

Table of Contents