EasyManua.ls Logo

Holtek HT66F30 - A;D Operation

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 174 June 22, 2017 Rev. 2.50 175 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
A/D Operation
TheSTARTbitintheADCR0registerisusedtostartandresettheA/Dconverter.Whenthe
microcontrollersetsthisbitfromlowtohighandthenlowagain,ananalogtodigitalconversion
cyclewillbeinitiated.WhentheSTARTbitisbroughtfromlowtohighbutnotlowagain,theEOCB
bitintheADCR0registerwillbesethighandtheanalogtodigitalconverterwillbereset.Itisthe
STARTbitthatisusedtocontroltheoverallstartoperationoftheinternalanalogtodigitalconverter.
TheEOCBbitintheADCR0registerisusedtoindicatewhentheanalogtodigitalconversion
processiscomplete.Thisbitwillbeautomaticallysetto0bythemicrocontrollerafteraconversion
cyclehasended.Inaddition,thecorrespondingA/Dinterruptrequestagwillbesetintheinterrupt
controlregister,andiftheinterruptsareenabled,anappropriateinternalinterruptsignalwillbe
generated.ThisA/DinternalinterruptsignalwilldirecttheprogramflowtotheassociatedA/D
internalinterruptaddressforprocessing.IftheA/Dinternalinterruptisdisabled,themicrocontroller
canbeusedtopolltheEOCBbitintheADCR0registertocheckwhetherithasbeenclearedasan
alternativemethodofdetectingtheendofanA/Dconversioncycle.
TheclocksourcefortheA/Dconverter,whichoriginatesfromthesystemclockf
SYS
,canbechosen
tobeeitherf
SYS
orasubdividedversionoff
SYS
.Thedivisionratiovalueisdeterminedbythe
ADCK2~ADCK0bitsintheADCR1register.
AlthoughtheA/Dclocksourceisdeterminedbythesystemclockf
SYS
,andbybitsADCK2~ADCK0,
therearesomelimitationsonthemaximumA/Dclocksourcespeedthatcanbeselected.Asthe
minimumvalueofpermissibleA/Dclockperiod,t
ADCK
,is0.5μs,caremustbetakenforsystemclock
frequenciesequaltoorgreaterthan4MHz.Forexample,ifthesystemclockoperatesatafrequency
of4MHz,theADCK2~ADCK0bitsshouldnotbesetto000.DoingsowillgiveA/Dclockperiods
thatarelessthantheminimumA/DclockperiodwhichmayresultininaccurateA/Dconversion
values.Refertothefollowingtableforexamples,wherevaluesmarkedwithanasterisk*show
where,dependinguponthedevice,specialcaremustbetaken,asthevaluesmaybelessthanthe
speciedminimumA/DClockPeriod.
f
SYS
A/D Clock Period (t
ADCK
)
ADCK2,
ADCK1,
ADCK0
=000
(f
SYS
)
ADCK2,
ADCK1,
ADCK0
=001
(f
SYS
/2)
ADCK2,
ADCK1,
ADCK0
=010
(f
SYS
/4)
ADCK2,
ADCK1,
ADCK0
=011
(f
SYS
/8)
ADCK2,
ADCK1,
ADCK0
=100
(f
SYS
/16)
ADCK2,
ADCK1,
ADCK0
=101
(f
SYS
/32)
ADCK2,
ADCK1,
ADCK0
=110
(f
SYS
/64)
ADCK2,
ADCK1,
ADCK0
=111
1MHz 1μs 2μs 4μs 8μs 16μs 32μs 64μs Undened
2MHz 500ns 1μs 2μs 4μs 8μs 16μs 32μs Undened
4MHz 250ns* 500ns 1μs 2μs 4μs 8μs 16μs Undened
8MHz
125ns* 250ns* 500ns 1μs 2μs 4μs 8μs Undened
12MHz 83ns* 167ns* 333ns* 667ns 1.33μs 2.67μs 5.33μs Undened
A/D Clock Period Examples
Controllingthepoweron/offfunctionoftheA/Dconvertercircuitryisimplementedusingthe
ADOFFbitintheADCR0register.ThisbitmustbezerotopowerontheA/Dconverter.When
theADOFFbitisclearedtozerotopowerontheA/Dconverterinternalcircuitryacertaindelay,
asindicatedinthetimingdiagram,mustbeallowedbeforeanA/Dconversionisinitiated.Even
ifnopinsareselectedforuseasA/DinputsbyclearingtheACE11~ACE0bitsintheACERH
andACERLregisters,iftheADOFFbitiszerothensomepowerwillstillbeconsumed.Inpower
consciousapplicationsitisthereforerecommendedthattheADOFFissethightoreducepower
consumptionwhentheA/Dconverterfunctionisnotbeingused.
ThereferencevoltagesupplytotheA/DConvertercanbesuppliedfromeitherthepositivepower
supplypin,VDD,orfromanexternalreferencesourcessuppliedonpinVREF.Thedesiredselection
ismadeusingtheVREFSbit.AstheVREFpinispin-sharedwithotherfunctions,whentheVREFS
bitissethigh,theVREFpinfunctionwillbeselectedandtheotherpinfunctionswillbedisabled
automatically.

Table of Contents

Other manuals for Holtek HT66F30

Related product manuals