| Electronic Components Datasheet Search |
|
HT45F39 Datasheet(PDF) 63 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F39 Datasheet(HTML) 63 Page - Holtek Semiconductor Inc |
|
63 / 102 page ![]() Rev. 1.10 62 July 01, 2016 Rev. 1.10 63 July 01, 2016 HT45F39/HT45F391 Ultrasonic Distance Measurement 8-bit Flash MCU HT45F39/HT45F391 Ultrasonic Distance Measurement 8-bit Flash MCU A/D Operation TheSTARTbitintheADCR0registerisusedtostartandresettheA/Dconverter.Whenthe microcontrollersetsthisbitfromlowtohighandthenlowagain,ananalogtodigitalconversion cyclewillbeinitiated.WhentheSTARTbitisbroughtfromlowtohighbutnotlowagain,the EOCBbitintheADCR0registerwillbesethighandtheanalogtodigitalconverterwillbereset. ItistheSTARTbitthatisusedtocontroltheoverallstartoperationoftheinternalanalogtodigital converter. TheEOCBbitintheADCR0registerisusedtoindicatewhentheanalogtodigitalconversion processiscomplete.Thisbitwillbeautomaticallysetto"0"bythemicrocontrolleraftera conversioncyclehasended.Inaddition,thecorrespondingA/Dinterruptrequestflagwillbeset intheinterruptcontrolregister,andiftheinterruptsareenabled,anappropriateinternalinterrupt signalwillbegenerated.ThisA/Dinternalinterruptsignalwilldirecttheprogramflowtothe associatedA/Dinternalinterruptaddressforprocessing.IftheA/Dinternalinterruptisdisabled, themicrocontrollercanbeusedtopolltheEOCBbitintheADCR0registertocheckwhetherithas beenclearedasanalternativemethodofdetectingtheendofanA/Dconversioncycle. TheclocksourcefortheA/Dconverter,whichoriginatesfromthesystemclockfSYS,canbechosen tobeeitherfSYSorasubdividedversionoffSYS.Thedivisionratiovalueisdeterminedbythe ADCK2~ADCK0bitsintheADCR1register.Controllingthepoweron/offfunctionoftheA/D convertercircuitryisimplementedusingtheADOFFbitintheADCR0register.Thisbitmustbe zerotopowerontheA/Dconverter.EvenifnopinsareselectedforuseasA/Dinputsbyclearing theACE7~ACE0bitsintheACERLregister,iftheADOFFbitiszerothensomepowerwillstill beconsumed.InpowerconsciousapplicationsitisthereforerecommendedthattheADOFFisset hightoreducepowerconsumptionwhentheA/Dconverterfunctionisnotbeingused.Thereference voltagesupplytotheA/DConvertercanbesuppliedfromeitherthepositivepowersupplypin, AVDD. A/D Input Pins AlloftheA/Danaloginputpinsarepin-sharedwiththeI/OpinsonPortA,aswellasother functions.TheACE7~ACE0bitsintheACERLregisters,determinewhethertheinputpinsare setupasA/Dconverteranaloginputsorwhethertheyhaveotherfunctions.IftheACE7~ACE0 bitsforitscorrespondingpinissethighthenthepinwillbesetuptobeanA/Dconverterinput andtheoriginalpinfunctionsdisabled.Inthisway,pinscanbechangedunderprogramcontrolto changetheirfunctionbetweenA/Dinputsandotherfunctions.Allpull-highresistors,whichare setupthroughregisterprogramming,willbeautomaticallydisconnectedifthepinsaresetupasA/ Dinputs.NotethatitisnotnecessarytofirstsetuptheA/DpinasaninputinthePACportcontrol registertoenabletheA/DinputaswhentheACE7~ACE0bitsenableanA/Dinput,thestatusofthe portcontrolregisterwillbeoverridden.Theanaloginputvaluesmustnotbeallowedtoexceedthe valueofVREF. PA 0/ AN 0 PA7 /A N7 8- bi t A/ D Co nv er te r AC S4 ~A CS 0 VC M SC F Ou t put Ba ndgap Re fe r enc e Vo lt ag e VBG EN A/D Input Structure |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |