| Electronic Components Datasheet Search |
|
HT46R004 Datasheet(PDF) 35 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R004 Datasheet(HTML) 35 Page - Holtek Semiconductor Inc |
|
35 / 84 page ![]() Rev. 1.30 34 �an�a�� ��� �01� Rev. 1.30 35 �an�a�� ��� �01� HT46R004 Cost-Effective A/D 8-Bit OTP MCU Pin-shared Functions Theflexibilityofthemicrocontrollerrangeisgreatlyenhancedbytheuseofpinsthathavemore thanonefunction.Limitednumbersofpinscanforceseriousdesignconstraintsondesignersbutby supplyingpinswithmulti-functions,manyofthesedifficultiescanbeovercome.Forsomepins,the chosenfunctionofthemulti-functionI/Opinsissetbyapplicationprogramcontrol. External Interrupt Input Theexternalinterruptpin,INT,ispin-sharedwithanI/Opin.Tousethepinasanexternalinterrupt inputthecorrectbitsintheINTC0registermustbeprogrammed.Thepinmustalsobesetasan inputbysettingthePAC0bitinthePortControlRegister.Apull-highresistorcanalsobeselected viatheappropriateportpull-highresistorregister.Notethatevenifthepinissetasanexternal interruptinputtheI/Ofunctionstillremains. External Timer/Event Counter Input TheTimer/EventCounterpinTMRispin-sharedwithI/Opins.Forthissharedpintobeusedas Timer/EventCounterinput,theTimer/EventCountermustbeconfiguredtobeintheEventCounter orPulseWidthCaptureMode.ThisisachievedbysettingtheappropriatebitsintheTimer/Event CounterControlRegister.ThepinmustalsobesetasinputbysettingtheappropriatebitinthePort ControlRegister.Pull-highresistoroptionscanalsobeselectedusingtheportpull-highresistor registers.NotethatevenifthepinissetasanexternaltimerinputtheI/Ofunctionstillremains. PFD Output ThePFDfunctionoutputispin-sharedwithanI/Opin.Theoutputfunctionofthispinischosen usingtheCTRL0register.Notethatthecorrespondingbitoftheportcontrolregistermustbeset thepinasanoutputtoenablethePFDoutput.Iftheportcontrolregisterhassetthepinasaninput, thenthepinwillfunctionasanormallogicinputwiththeusualpull-highselection,evenifthePFD functionhasbeenselected. PWM Output ForthedevicethePWMfunctionisincluded.ThePWMfunctionwhoseoutputsarepin-shared withI/Opins.ThePWMoutputfunctionsarechosenusingtheCTRL0register.Notethatthe correspondingbitoftheportcontrolregisters,fortheoutputpin,mustsetupthepinasanoutput toenablethePWMoutput.Ifthepinsaresetupasinputs,thenthepinwillfunctionasanormal logicinputwiththeusualpull-highselections,evenifthePWMregistershaveenabledthePWM function. A/D Input ThedevicehaseightinputstotheA/Dconverter.Alloftheseanaloginputsarepin-sharedwithI/O pins.IfthesepinsaretobeusedasA/DinputsandnotasI/Opins,thenthecorrespondingPCRn bitsintheA/Dconvertercontrolregister,ADCR1,mustbeproperlysetup.IfchosenasI/Opins, thenfullpull-highresistorcontrolremains,howeverifusedasA/Dinputsthenanypull-highresistor controlassociatedwiththesepinswillbeautomaticallydisconnected. I/O Pin Structures TheaccompanyingdiagramsillustratetheI/Opininternalstructures.Astheexactlogical constructionoftheI/Opinmaydifferfromthesedrawings,theyaresuppliedasaguideonlyto assistwiththefunctionalunderstandingoftheI/Opins. |
|
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 |