| Electronic Components Datasheet Search |
|
HT45F39 Datasheet(PDF) 60 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F39 Datasheet(HTML) 60 Page - Holtek Semiconductor Inc |
|
60 / 102 page ![]() Rev. 1.10 60 July 01, 2016 Rev. 1.10 61 July 01, 2016 HT45F39/HT45F391 Ultrasonic Distance Measurement 8-bit Flash MCU HT45F39/HT45F391 Ultrasonic Distance Measurement 8-bit Flash MCU A/D Converter Data Register – ADR Asthedevicescontainaninternal8-bitA/Dconverter,theyrequireadataregistertostorethe convertedvalue,knownasADR.Aftertheconversionprocesstakesplace,theregistercanbe directlyreadbythemicrocontrollertoobtainthedigitisedconversionvalue. • ADR Register BIT 7 6 5 4 3 2 1 0 NAME ADR7 ADR6 ADR5 ADR4 ADR3 ADR2 ADR1 ADR0 R/W R R R R R R R R POR x x x x x x x x "x" unknown Bit7~0 ADR7~ADR0:A/DConversiondata A/D Converter Conterl Registers – ADCR0, ADCR1, ACERL TocontrolthefunctionandoperationoftheA/Dconverter,threecontrolregistersknownasADCR0, ADCR1andACERLareprovided.These8-bitregistersdefinefunctionssuchastheselectionof whichanalogchannelisconnectedtotheinternalA/Dconverter,theA/Dclocksourceaswell ascontrollingthestartfunctionandmonitoringtheA/Dconverterendofconversionstatus.The ACS3~ACS0bitsintheADCR0registerandACS4bitistheADCR1registerdefinetheADC inputchannelnumber.Asthedevicescontainonlyoneactualanalogtodigitalconverterhardware circuit,eachoftheindividual8analoginputsmustberoutedtotheconverter.Itisthefunctionof theACS4~ACS0bitstodeterminewhichanalogchannelinputpinsorinternal1.04Visactually connectedtotheinternalA/Dconverter. TheACERLcontrolregistercontainstheACER7~ACER0bitswhichdeterminewhichpinsonPort AareusedasanaloginputsfortheA/DconverterinputandwhichpinsarenottobeusedastheA/ Dconverterinput.SettingthecorrespondingbithighwillselecttheA/Dinputfunction,clearingthe bittozerowillselecteithertheI/Oorotherpin-sharedfunction.Whenthepinisselectedtobean A/Dinput,itsoriginalfunctionwhetheritisanI/Oorotherpin-sharedfunctionwillberemoved.In addition,anyinternalpull-highresistorsconnectedtothesepinswillbeautomaticallyremovedifthe pinisselectedtobeanA/Dinput. ADCR0 Register Bit 7 6 5 4 3 2 1 0 Name START EOCB ADOFF — ACS3 ACS2 ACS1 ACS0 R/W R/W R R/W — R/W R/W R/W R/W POR 0 1 1 — 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. NotethatiftheAuto-EnvelopeProcessingUnitcontrolbit,namelySAVP,issetby theapplication,theSTARTcontrolbitisinvalidandtheA/Dconversionfunctionis controlledbyAuto-EnvelopeProcessingUnit. Bit6 EOCB:EndofA/Dconversionflag 0:A/Dconversionended 1:A/Dconversioninprogress ThisreadonlyflagisusedtoindicatewhenanA/Dconversionprocesshascompleted. Whentheconversionprocessisrunning,thebitishigh. |
|
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 |