Rev. 2.50 180 June 22, 2017 Rev. 2.50 181 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
Comparators
Twoindependentanalogcomparatorsarecontainedwithinthesedevices.Thesefunctionsoffer
exibilityviatheirregistercontrolledfeaturessuchaspower-down,polarityselect,hysteresisetc.
InsharingtheirpinswithnormalI/OpinsthecomparatorsdonotwastepreciousI/Opinsifthere
functionsareotherwiseunused.
Comparator
Comparator Operation
Thedevicecontainstwocomparatorfunctionswhichareusedtocomparetwoanalogvoltages
andprovideanoutputbasedontheirdifference.Fullcontroloverthetwointernalcomparators
isprovidedviatwocontrolregisters,CP0CandCP1C,oneassignedtoeachcomparator.The
comparatoroutputisrecordedviaabitintheirrespectivecontrolregister,butcanalsobetransferred
outontoasharedI/Opin.Additionalcomparatorfunctionsinclude,outputpolarity,hysteresis
functionsandpowerdowncontrol.
Anypull-highresistorsconnectedtothesharedcomparatorinputpinswillbeautomatically
disconnectedwhenthecomparatorisenabled.Asthecomparatorinputsapproachtheirswitching
level,somespuriousoutputsignalsmaybegeneratedonthecomparatoroutputduetotheslow
risingorfallingnatureoftheinputsignals.Thiscanbeminimisedbyselectingthehysteresis
functionwillapplyasmallamountofpositivefeedbacktothecomparator.Ideallythecomparator
shouldswitchatthepointwherethepositiveandnegativeinputssignalsareatthesamevoltage
level,however,unavoidableinputoffsetsintroducesomeuncertaintieshere.Thehysteresisfunction,
ifenabled,alsoincreasestheswitchingoffsetvalue.