Rev. 2.50 172 June 22, 2017 Rev. 2.50 173 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
• HT66F60
Bit 7 6 5 4 3 2 1 0
Name START EOCB ADOFF ADRFS ACS3 ACS2
ACS1 ACS0
R/W R/W R R/W R/W R/W R/W R/W R/W
POR 0
1 1 0 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~0 ACS3, ACS2, ACS1, ACS0:SelectA/Dchannel(whenACS4is"0")
0000:AN0
0001:AN1
0010:AN2
0011:AN3
0100:AN4
0101:AN5
0110:AN6
0111:AN7
1000:AN8
1001:AN9
1010:AN10
1011:AN11
1100~1111:Undened,can'tbeused
ThesearetheA/Dchannelselectcontrolbits.Asthereisonlyoneinternalhardware
A/DconvertereachoftheeightA/Dinputsmustberoutedtotheinternalconverter
usingthesebits.IfbitACS4intheADCR1registerissethighthentheinternal1.25V
willberoutedtotheA/DConverter.