EasyManua.ls Logo

Holtek HT66F30 - Page 183

Default Icon
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 182 June 22, 2017 Rev. 2.50 183 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
Bit3 C0OS:Outputpathselect
0:C0Xpin
1:Internaluse
Thisisthecomparatoroutputpathselectcontrolbit.Ifthebitissetto0andthe
C0SELbitis1thecomparatoroutputisconnectedtoanexternalC0Xpin.Ifthebit
issetto1ortheC0SELbitis0thecomparatoroutputsignalisonlyusedinternally
bythedeviceallowingthesharedcomparatoroutputpintoretainitsnormalI/O
operation.
Bit2~1 Unimplemented,readas“0”
Bit0 C0HYEN:HysteresisControl
0:Off
1:On
Thisisthehysteresiscontrolbitandifsethighwillapplyalimitedamountof
hysteresistothecomparator,asspeciedintheComparatorElectricalCharacteristics
table.Thepositivefeedbackinducedbyhysteresisreducestheeffectofspurious
switchingnearthecomparatorthreshold.
CP1C Register
Bit 7 6 5 4 3 2 1 0
Name
C1SEL C1EN C1POL C1OUT C1OS C1HYEN
R/W R/W R/W R/W R R/W R/W
POR
1 0 0 0 0 1
Bit7 C1SEL:SelectComparatorpinsorI/Opins
0:I/Opinselect
1:Comparatorpinselect
ThisistheComparatorpinorI/Opinselectbit.Ifthebitishighthecomparatorwill
beselectedandthetwocomparatorinputpinswillbeenabled.Asaresult,thesetwo
pinswilllosetheirI/Opinfunctions.Anypull-highcongurationoptionsassociated
withthecomparatorsharedpinswillalsobeautomaticallydisconnected.
Bit6 C1EN:ComparatorOn/Offcontrol
0:Off
1:On
ThisistheComparatoron/offcontrolbit.Ifthebitiszerothecomparatorwillbe
switchedoffandnopowerconsumedevenifanalogvoltagesareappliedtoitsinputs.
Forpowersensitiveapplicationsthisbitshouldbeclearedtozeroifthecomparatoris
notusedorbeforethedeviceenterstheSLEEPorIDLEmode.
Bit5 C1POL:Comparatoroutputpolarity
0:Outputnotinverted
1:Outputinverted
Thisisthecomparatorpolaritybit.IfthebitiszerothentheC1OUTbitwillreect
thenon-invertedoutputconditionofthecomparator.Ifthebitishighthecomparator
C1OUTbitwillbeinverted.
Bit4 C1OUT:Comparatoroutputbit
C1POL=0
0:C1+<C1-
1:C1+>C1-
C1POL=1
0:C1+>C1-
1:C1+<C1-
Thisbitstoresthecomparatoroutputbit.Thepolarityofthebitisdeterminedbythe
voltagesonthecomparatorinputsandbytheconditionoftheC1POLbit.

Table of Contents

Other manuals for Holtek HT66F30

Related product manuals