Rev. 2.50 170 June 22, 2017 Rev. 2.50 171 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
ADCR0 Register
• HT66F20/HT66F30/HT66F40/HT66F50
Bit 7 6 5 4 3 2 1 0
Name START EOCB ADOFF ADRFS — ACS2
ACS1 ACS0
R/W R/W R R/W R/W — R/W R/W R/W
POR 0
1 1 0 — 0 0 0
Bit7 START:StarttheA/Dconversion
0→1→0:start
0→1:ResettheA/DconverterandsetEOCBto“1”
ThisbitisusedtoinitiateanA/Dconversionprocess.Thebitisnormallylowbutifset
highandthenclearedlowagain,theA/Dconverterwillinitiateaconversionprocess.
WhenthebitissethightheA/Dconverterwillbereset.
Bit6 EOCB:EndofA/Dconversionag
0:A/Dconversionended
1:A/Dconversioninprogress
ThisreadonlyagisusedtoindicatewhenanA/Dconversionprocesshascompleted.
Whentheconversionprocessisrunningthebitwillbehigh.
Bit5 ADOFF:ADCmodulepoweron/offcontrolbit
0:ADCmodulepoweron
1:ADCmodulepoweroff
ThisbitcontrolsthepowertotheA/Dinternalfunction.Thisbitshouldbecleared
tozerotoenabletheA/Dconverter.IfthebitissethighthentheA/Dconverterwill
beswitchedoffreducingthedevicepowerconsumption.AstheA/Dconverterwill
consumealimitedamountofpower,evenwhennotexecutingaconversion,thismay
beanimportantconsiderationinpowersensitivebatterypoweredapplications.
Note:1.itisrecommendedtosetADOFF=1beforeenteringIDLE/SLEEPModefor
savingpower.
2.ADOFF=1willpowerdowntheADCmodule.
Bit4 ADRFS:ADCDataFormatControl
0:ADCDataMSBisADRHbit7,LSBisADRLbit4
1:ADCDataMSBisADRHbit3,LSBisADRLbit0
Thisbitcontrolstheformatofthe12-bitconvertedA/DvalueinthetwoA/Ddata
registers.DetailsareprovidedintheA/Ddataregistersection.
Bit3 Unimplemented,readas“0”
Bit2~0 ACS2, ACS1, ACS0:SelectA/Dchannel(whenACS4is"0")
000:AN0
001:AN1
010:AN2
011:AN3
100:AN4
101:AN5
110:AN6
111:AN7
ThesearetheA/Dchannelselectcontrolbits.Asthereisonlyoneinternalhardware
A/DconvertereachoftheeightA/Dinputsmustberoutedtotheinternalconverter
usingthesebits.IfbitACS4intheADCR1registerissethighthentheinternal1.25V
willberoutedtotheA/DConverter.