EasyManua.ls Logo

Holtek HT66F20 - Enhanced TM Operation; Enhanced Type TM Register Description

Holtek HT66F20
294 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. 2.50 144 June 22, 2017 Rev. 2.50 145 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
Enhanced TM Operation
Atitscoreisa10-bitcount-up/count-downcounterwhichisdrivenbyauserselectableinternal
orexternalclocksource.Therearethreeinternalcomparatorswiththenames,ComparatorA,
ComparatorBandComparatorP.Thesecomparatorswillcomparethevalueinthecounterwiththe
CCRA,CCRBandCCRPregisters.TheCCRPcomparatoris3-bitswidewhosevalueiscompared
withthehighest3-bitsinthecounterwhileCCRAandCCRBare10-bitswideandtherefore
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Enhanced
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outputpins.Alloperatingsetupconditionsare
selectedusingrelevantinternalregisters.
Enhanced Type TM Register Description
OveralloperationoftheEnhancedTMiscontrolledusingaseriesofregisters.Areadonlyregister
pairexiststostoretheinternalcounter10-bitvalue,whiletworead/writeregisterpairsexisttostore
theinternal10-bitCCRAandCCRBvalue.Theremainingthreeregistersarecontrolregisterswhich
setupthedifferentoperatingandcontrolmodesaswellasthethreeCCRPbits.
Register
Name
Bit
7 6 5 4 3 2 1 0
TM1C0 T1PAU T1CK2 T1CK1 T1CK0 T1ON T1RP2 T1RP1 T1RP0
TM1C1 T1AM1 T1AM0 T1AIO1 T1AIO0 T1AOC T1APOL T1CDN T1CCLR
TM1C2 T1BM1 T1BM0 T1BIO1 T1BIO0 T1BOC T1BPOL T1PWM1 T1PWM0
TM1DL D7 D6 D5 D4 D3 D2 D1 D0
TM1DH D9 D8
TM1AL D7 D6 D5 D4 D3 D2 D1 D0
TM1AH D9 D8
TM1BL D7 D6 D5 D4 D3 D2 D1 D0
TM1BH D9 D8
10-bit Enhanced TM Register List (if ETM is TM1)

Table of Contents

Related product manuals