| Electronic Components Datasheet Search |
|
HT46R003B Datasheet(PDF) 49 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R003B Datasheet(HTML) 49 Page - Holtek Semiconductor Inc |
|
49 / 76 page ![]() Rev. 1.00 �8 ��ne 1�� �01� Rev. 1.00 �� ��ne 1�� �01� HT46R003B Cost-Effective A/D 8-bit OTP MCU HT46R003B Cost-Effective A/D 8-bit OTP MCU fSYS A/D Clock Period (tAD) ADCS2, ADCS1, ADCS0 = 000 (fSYS/2) ADCS2, ADCS1, ADCS0 = 001 (fSYS/8) ADCS2, ADCS1, ADCS0 = 010 (fSYS/32) ADCS2, ADCS1, ADCS0 =100 (fSYS) ADCS2, ADCS1, ADCS0 = 101 (fSYS/4) ADCS2, ADCS1, ADCS0 = 110 (fSYS/16) ADCS2, ADCS1, ADCS0 = 011,111 1MHz 2μs 8μs 32μs* 1μs 4μs 16μs* Undefined �MHz 1μs 4μs 16μs* 500ns 2μs 8μs Undefined �MHz 500ns 2μs 8μs 250ns* 1μs 4μs Undefined 8MHz 250ns* 1μs 4μs 125ns* 500ns 2μs Undefined A/D Clock Period Examples A/D Input Pins AlloftheA/Danaloginputpinsarepin-sharedwiththeI/OpinsonPortA.BitsPCR4~PCR0in theADPCRregisterdeterminewhethertheinputpinsaresetasnormalinput/outputpinsorwhether theyaresetasanaloginputs.Inthisway,pinscanbechangedunderprogramcontroltochangetheir functionfromnormalI/Ooperationtoanaloginputsandviceversa.Pull-highresistors,whichare setthroughregisterprogramming,applytotheinputpinsonlywhentheyareusedasnormalI/O pins,ifsetasA/Dinputsthepull-highresistorswillbeautomaticallydisconnected.Notethatitis notnecessarytofirstsettheA/DpinasaninputintheI/OportcontrolregisterstoenabletheA/D inputaswhenthePCR4~PCR0bitsenableanA/Dinput,thestatusoftheportcontrolregisterwill beoverridden. Summary of A/D Conversion Steps ThefollowingsummarisestheindividualstepsthatshouldbeexecutedinordertoimplementanA/D conversionprocess. • Step1 SelecttherequiredA/DconversionclockbycorrectlyprogrammingbitsADCS2~ADCS0inthe ACSRregister. • Step2 SelectwhichpinsaretobeusedasA/DinputsandconfigurethemasA/Dinputpinsbycorrectly programmingthePCR4~PCR0bitsintheADPCRregister. • Step3 EnabletheA/DbyclearingtheADONBintheACSRregistertozero. • Step4 SelectwhichchannelistobeconnectedtotheinternalA/Dconverterbycorrectlyprogramming theACS2~ACS0bitswhicharealsocontainedintheregister. • Step5 Iftheinterruptsaretobeused,theinterruptcontrolregistersmustbecorrectlyconfiguredto ensuretheA/Dconverterinterruptfunctionisactive.Themasterinterruptcontrolbit,EMI,the INTC0interruptcontrolregistermustbesetto“1”,theA/Dconverterinterruptbit,ADE,must alsobesetto“1”. • Step6 TheanalogtodigitalconversionprocesscannowbeinitialisedbysettingtheSTARTbitin theADCRregisterfromlowtohighandthenlowagain.Notethatthisbitshouldhavebeen originallyclearedtozero. |
|
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 |