EasyManuals Logo

Holtek HT66F002 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 #71 background imageLoading...
Page #71 background image
Rev. 1.71 70 April 11, 2017 Rev. 1.71 71 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2~0 ST0RP2~ ST0RP0:STMCCRP3-bitregister,comparedwiththeSTMCounterbit9~bit7
ComparatorPMatchPeriod
000:1024STM0clocks
001:128STM0clocks
010:256STM0clocks
011:384STM0clocks
100:512STM0clocks
101:640STM0clocks
110:768STM0clocks
111:896STM0clocks
ThesethreebitsareusedtosetupthevalueontheinternalCCRP3-bitregister,whicharethen
comparedwiththeinternalcounter’shighestthreebits.Theresultofthiscomparisoncanbe
selectedtocleartheinternalcounteriftheST0CCLRbitissettozero.SettingtheST0CCLRbit
tozeroensuresthatacomparematchwiththeCCRPvalueswillresettheinternalcounter.Asthe
CCRPbitsareonlycomparedwiththehighestthreecounterbits,thecomparevaluesexistin128
clockcyclemultiples.Clearingallthreebitstozeroisineffectallowingthecountertooverow
atitsmaximumvalue.
STM0C1 Register
Bit 7 6 5 4 3 2 1 0
Name ST0M1 ST0M0 ST0IO1 ST0IO0 ST0OC ST0POL ST0DPX ST0CCLR
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 ST0M1~ ST0M0:SelectSTM0OperatingMode
00:CompareMatchOutputMode
01:CaptureInputMode
10:PWMoutputModeorSinglePulseOutputMode
11:Timer/CounterMode
ThesebitssetuptherequiredoperatingmodefortheSTM.ToensurereliableoperationtheSTM
shouldbeswitchedoffbeforeanychangesaremadetotheST0M1andST0M0bits.IntheTimer/
CounterMode,theSTMoutputpinstateisundened.
bit5~4 ST0IO1~ ST0IO0:SelectSTM0function
CompareMatchOutputMode
00:Nochange
01:Outputlow
10:Outputhigh
11:Toggleoutput
PWMoutput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STP0I
01:InputcaptureatfallingedgeofSTP0I
10:Inputcaptureatfalling/risingedgeofSTP0I
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 HT66F002 and is the answer not in the manual?

Holtek HT66F002 Specifications

General IconGeneral
BrandHoltek
ModelHT66F002
CategoryControl Unit
LanguageEnglish

Related product manuals