EasyManua.ls Logo

Holtek HT66F30 - Page 170

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 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
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 ACS3 ACS2
ACS1 ACS0
ADCR1 ACS4 V125EN VREFS ADCK2 ADCK1 ADCK0
ACERL
ACE7 ACE6 ACE5 ACE4 ACE3 ACE2 ACE1 ACE0
ACERH
ACE11 ACE10 ACE9 ACE8
HT66F60 A/D Converter Register List
A/D Converter Data Registers – ADRL, ADRH
Asthedevicescontainaninternal12-bitA/Dconverter,theyrequiretwodataregisterstostorethe
convertedvalue.Theseareahighbyteregister,knownasADRH,andalowbyteregister,known
asADRL.Aftertheconversionprocesstakesplace,theseregisterscanbedirectlyreadbythe
microcontrollertoobtainthedigitisedconversionvalue.Asonly12bitsofthe16-bitregisterspace
isutilised,theformatinwhichthedataisstorediscontrolledbytheADRFSbitintheADCR0
registerasshownintheaccompanyingtable.D0~D11aretheA/Dconversionresultdatabits.Any
unusedbitswillbereadaszero.
ADRFS
ADRH ADRL
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
0
D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 0 0 0 0
1 0 0 0 0 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
A/D Data Registers
A/D Converter Control Registers – ADCR0, ADCR1, ACERL, ACERH
TocontrolthefunctionandoperationoftheA/Dconverter,threeorfourcontrolregistersknownas
ADCR0,ADCR1,ACERLandACERHareprovided.These8-bitregistersdenefunctionssuch
astheselectionofwhichanalogchannelisconnectedtotheinternalA/Dconverter,thedigitised
dataformat,theA/DclocksourceaswellascontrollingthestartfunctionandmonitoringtheA/D
converterendofconversionstatus.TheACS3~ACS0bitsintheADCR0registerandACS4bitis
theADCR1registerdenetheADCinputchannelnumber.Asthedevicecontainsonlyoneactual
analogtodigitalconverterhardwarecircuit,eachoftheindividual8or12analoginputsmustbe
routedtotheconverter.ItisthefunctionoftheACS4~ACS0bitstodeterminewhichanalogchannel
inputpinsorinternal1.25VisactuallyconnectedtotheinternalA/Dconverter.
TheACERHandACERLcontrolregisterscontaintheACER11~ACER0bitswhichdetermine
whichpinsonPortA,PE6,PE7,PF0andPF1areusedasanaloginputsfortheA/Dconverterinput
andwhichpinsarenottobeusedastheA/Dconverterinput.Settingthecorrespondingbithighwill
selecttheA/Dinputfunction,clearingthebittozerowillselecteithertheI/Oorotherpin-shared
function.WhenthepinisselectedtobeanA/Dinput,itsoriginalfunctionwhetheritisanI/Oor
otherpin-sharedfunctionwillberemoved.Inaddition,anyinternalpull-highresistorsconnectedto
thesepinswillbeautomaticallyremovedifthepinisselectedtobeanA/Dinput.

Table of Contents

Other manuals for Holtek HT66F30

Related product manuals