Rev. 2.50 168 June 22, 2017 Rev. 2.50 169 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
Aanlog to Digital Converter
Theneedtointerfacetorealworldanalogsignalsisacommonrequirementformanyelectronic
systems.However,toproperlyprocessthesesignalsbyamicrocontroller,theymustfirstbe
convertedintodigitalsignalsbyA/Dconverters.ByintegratingtheA/Dconversionelectronic
circuitryintothemicrocontroller,theneedforexternalcomponentsisreducedsignicantlywiththe
correspondingfollow-onbenetsoflowercostsandreducedcomponentspacerequirements.
A/D Overview
Thedevicescontainamulti-channelanalogtodigitalconverterwhichcandirectlyinterfaceto
externalanalogsignals,suchasthatfromsensorsorothercontrolsignalsandconvertthesesignals
directlyintoeithera12-bitdigitalvalue.
Part No. Input Channels A/D Channel Select Bits Input Pins
HT66F20
HT66F30
HT66F40
HT66F50
8
ACS4, ACS2~ACS0 AN0~AN7
HT66F60 12 ACS4, ACS3~ACS0 AN0~AN11
TheaccompanyingblockdiagramshowstheoverallinternalstructureoftheA/Dconverter,together
withitsassociatedregisters.
A/D Converter Structure
A/D Converter Register Description
OveralloperationoftheA/Dconverteriscontrolledusingsixregisters.Areadonlyregisterpair
existstostoretheADCdata12-bitvalue.Theremainingthreeorfourregistersarecontrolregisters
whichsetuptheoperatingandcontrolfunctionoftheA/Dconverter.
Register Name
Bit
7 6 5 4 3 2 1 0
ADRL(ADRFS=0) D3 D2
D1 D0 — — — —
ADRL(ADRFS=1) D7 D6 D5 D4 D3 D2 D1 D0
ADRH(ADRFS=0)
D11 D10 D9 D8 D7 D6 D5 D4
ADRH(ADRFS=1) — — — — D11 D10 D9 D8
ADCR0 START EOCB ADOFF ADRFS — ACS2
ACS1 ACS0
ADCR1 ACS4 V125EN — VREFS — ADCK2 ADCK1 ADCK0
ACERL
ACE7 ACE6 ACE5 ACE4 ACE3 ACE2 ACE1 ACE0
HT66F20/HT66F30/HT66F40/HT66F50 A/D Converter Register List