EasyManuals Logo

Holtek HT66F004 User Manual

Default Icon
144 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 #85 background imageLoading...
Page #85 background image
Rev. 1.71 84 April 11, 2017 Rev. 1.71 85 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
Bit3 PTnON:PTMCounterOn/OffControl
0:Off
1:On
Thisbitcontrolstheoverallon/offfunctionoftheTM.Settingthebithighenablesthecounterto
run,clearingthebitdisablestheTM.Clearingthisbittozerowillstopthecounterfromcounting
andturnofftheTMwhichwillreduceitspowerconsumption.Whenthebitchangesstatefrom
lowtohightheinternalcountervaluewillberesettozero,howeverwhenthebitchangesfrom
hightolow,theinternalcounterwillretainitsresidualvalueuntilthebitreturnshighagain.
IftheTMisintheCompareMatchOutputModethentheTMoutputpinwillberesettoitsinitial
condition,asspeciedbytheTMOutputcontrolbit,whenthebitchangesfromlowtohigh.
Bit2~0 Unimplemented,readas“0”
PTMnC1 Register
Bit 7 6 5 4 3 2 1 0
Name PTnM1 PTnM0 PTnIO1 PTnIO0 PTnOC PTnPOL PTnCKS PTnCCLR
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 PTnM1~ PTnM0:SelectPTMOperation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PTnM1andPTnM0bits.IntheTimer/
CounterMode,thePTMoutputpinstateisundened.
Bit5~4 PTnIO1~ PTnIO0:SelectPTM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PTPnI
01:InputcaptureatfallingedgeofPTPnI
10:Inputcaptureatfalling/risingedgeofPTPnI
11:Inputcapturedisabled
Timer/counterMode
Unused
ThesetwobitsareusedtodeterminehowtheTMoutputpinchangesstatewhenacertain
conditionisreached.ThefunctionthatthesebitsselectdependsuponinwhichmodetheTMis
running.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Holtek HT66F004 Specifications

General IconGeneral
BrandHoltek
ModelHT66F004
CategoryControl Unit
LanguageEnglish

Related product manuals