| Electronic Components Datasheet Search |
|
HT46R002 Datasheet(PDF) 36 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R002 Datasheet(HTML) 36 Page - Holtek Semiconductor Inc |
|
36 / 83 page ![]() Rev. 1.21 36 April 11, 2017 Rev. 1.21 37 April 11, 2017 HT46R002/HT46R003 Cost-Effective A/D 8-Bit OTP MCU HT46R002/HT46R003 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 inputbysettingthePAC2bitinthePortControlRegister.Apull-highresistorcanalsobeselected viatheappropriateportpull-highresistorregister.Notethatevenifthepinissetasanexternal interruptinputtheI/Ofunctionstillremains. External Timer/Event Counter Input TheTimer/EventCounterpinTMRispin-sharedwithI/OpinsForthissharedpintobeusedas Timer/EventCounterinput,theTimer/EventCountermustbeconfiguredtobeintheEventCounter orPulseWidthCaptureMode.ThisisachievedbysettingtheappropriatebitsintheTimer/Event CounterControlRegister.ThepinmustalsobesetasinputbysettingtheappropriatebitinthePort ControlRegister.Pull-highresistoroptionscanalsobeselectedusingtheportpull-highresistor registers.NotethatevenifthepinissetasanexternaltimerinputtheI/Ofunctionstillremains. PFD Output (for HT46R003) ThePFDfunctionoutputispin-sharedwithanI/Opin.Theoutputfunctionofthispinischosen usingtheCTRL0register.Notethatthecorrespondingbitoftheportcontrolregistermustbeset thepinasanoutputtoenablethePFDoutput.Iftheportcontrolregisterhassetthepinasaninput, thenthepinwillfunctionasanormallogicinputwiththeusualpull-highselection,evenifthePFD functionhasbeenselected. PWM Output ForthedevicesthePWMfunctionisincluded.ThePWMfunctionwhoseoutputsarepin-shared withI/Opins.ThePWMoutputfunctionsarechosenusingtheCTRL0register.Notethatthe correspondingbitoftheportcontrolregisters,fortheoutputpin,mustsetupthepinasanoutput toenablethePWMoutput.Ifthepinsaresetupasinputs,thenthepinwillfunctionasanormal logicinputwiththeusualpull-highselections,evenifthePWMregistershaveenabledthePWM function. A/D Iutput ThedeviceshavefourinputstotheA/Dconverter.Alloftheseanaloginputsarepin-sharedwithI/O pins.IfthesepinsaretobeusedasA/DinputsandnotasI/Opins,thenthecorrespondingPCRnbits intheA/Dconvertercontrolregister,ADCR,mustbeproperlysetup.IfchosenasI/Opins,thenfull pull-highresistorcontrolremains,howeverifusedasA/Dinputsthenanypull-highresistorcontrol associatedwiththesepinswillbeautomaticallydisconnected. |
|
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 |