EasyManuals Logo

Holtek HT66F30 User Manual

Default Icon
294 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #130 background imageLoading...
Page #130 background image
Rev. 2.50 130 June 22, 2017 Rev. 2.50 131 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
TM2C1 Register – 16-bit STM
Bit 7 6 5 4 3 2 1 0
Name
T2M1 T2M0 T2IO1 T2IO0 T2OC T2POL T2DPX T2CCLR
R/W R/W R/W R/W R/W R/W R/W R/W R/W
POR 0 0 0 0 0 0 0 0
Bit7~6 T2M1~T2M0:SelectTM2OperatingMode
00:CompareMatchOutputMode
01:CaptureInputMode
10:PWMModeorSinglePulseOutputMode
11:Timer/CounterMode
ThesebitssetuptherequiredoperatingmodefortheTM.Toensurereliableoperation
theTMshouldbeswitchedoffbeforeanychangesaremadetotheT2M1andT2M0
bits.IntheTimer/CounterMode,theTMoutputpincontrolmustbedisabled.
Bit5~4 T2IO1~T2IO0:SelectTP2_0,TP2_1outputfunction
CompareMatchOutputMode
00:Nochange
01:Outputlow
10:Outputhigh
11:Toggleoutput
PWMMode/SinglePulseOutputMode
00:PWMoutputinactivestate
01:PWMoutputactivestate
10:PWMoutput
11:Singlepulseoutput
CaptureInputMode
00:InputcaptureatrisingedgeofTP2_0,TP2_1
01:InputcaptureatfallingedgeofTP2_0,TP2_1
10:Inputcaptureatfalling/risingedgeofTP2_0,TP2_1
11:Inputcapturedisabled
Timer/counterMode:
Unused
ThesetwobitsareusedtodeterminehowtheTMoutputpinchangesstatewhena
certainconditionisreached.Thefunctionthatthesebitsselectdependsuponinwhich
modetheTMisrunning.
IntheCompareMatchOutputMode,theT2IO1andT2IO0bitsdeterminehowthe
TMoutputpinchangesstatewhenacomparematchoccursfromtheComparatorA.
TheTMoutputpincanbesetuptoswitchhigh,switchlowortotoggleitspresent
statewhenacomparematchoccursfromtheComparatorA.Whenthebitsareboth
zero,thennochangewilltakeplaceontheoutput.TheinitialvalueoftheTMoutput
pinshouldbesetupusingtheT2OCbitintheTM2C1register.Notethattheoutput
levelrequestedbytheT2IO1andT2IO0bitsmustbedifferentfromtheinitialvalue
setupusingtheT2OCbitotherwisenochangewilloccurontheTMoutputpinwhen
acomparematchoccurs.AftertheTMoutputpinchangesstateitcanberesettoits
initiallevelbychangingtheleveloftheT2ONbitfromlowtohigh.
InthePWMMode,theT2IO1andT2IO0bitsdeterminehowtheTMoutputpin
changesstatewhenacertaincomparematchconditionoccurs.ThePWMoutput
functionismodiedbychangingthesetwobits.Itisnecessarytochangethevalues
oftheT2IO1andT2IO0bitsonlyaftertheTMhasbeenswitchedoff.Unpredictable
PWMoutputswilloccuriftheT2IO1andT2IO0bitsarechangedwhentheTMis
running.

Table of Contents

Other manuals for Holtek HT66F30

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Holtek HT66F30 and is the answer not in the manual?

Holtek HT66F30 Specifications

General IconGeneral
BrandHoltek
ModelHT66F30
CategoryComputer Hardware
LanguageEnglish

Related product manuals