| Electronic Components Datasheet Search |
|
HT82B42R Datasheet(PDF) 26 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT82B42R Datasheet(HTML) 26 Page - Holtek Semiconductor Inc |
|
26 / 86 page ![]() Rev. 1.00 26 October 27, 2011 Rev. 1.00 27 October 27, 2011 HT82B42R/HT82B42RE I/O MCU with USB Interface I/O Port Control Registers EachI/OporthasitsowncontrolregisterPAC,PBCandPEC,tocontroltheinput/output configuration.Withthiscontrolregister,eachCMOSoutputorinputwithorwithoutpull-high resistorstructurescanbereconfigureddynamicallyundersoftwarecontrol.EachoftheI/Oportsis directlymappedtoabitinitsassociatedportcontrolregister.Notethatseveralpinscanbesetupto haveNMOSoutputsusingconfigurationoptions. FortheI/Opintofunctionasaninput,thecorrespondingbitofthecontrolregistermustbewritten asa"1".Thiswillthenallowthelogicstateoftheinputpintobedirectlyreadbyinstructions.When thecorrespondingbitofthecontrolregisteriswrittenasa"0",theI/Opinwillbesetupasanoutput. Ifthepiniscurrentlysetupasanoutput,instructionscanstillbeusedtoreadtheoutputregister. However,itshouldbenotedthattheprogramwillinfactonlyreadthestatusoftheoutputdatalatch andnottheactuallogicstatusoftheoutputpin. Pin-shared Functions Theflexibilityofthemicrocontrollerrangeisgreatlyenhancedbytheuseofpinsthathavemore thanonefunction.Limitednumbersofpinscanforceseriousdesignconstraintsondesignersbutby supplyingpinswithmulti-functions,manyofthesedifficultiescanbeovercome.Forsomepins,the chosenfunctionofthemulti-functionI/Opinsissetbyconfigurationoptionswhileforothersthe functionissetbyapplicationprogramcontrol. • ExternalTimer0ClockInput TheexternaltimerpinTMR0ispin-sharedwiththeI/OpinPA6.Toconfigurethispintooperate astimerinput,thecorrespondingcontrolbitsinthetimercontrolregistermustbecorrectlyset. Forapplicationsthatdonotrequireanexternaltimerinput,thispincanbeusedasanormalI/O pin.NotethatifusedasanormalI/Opinthetimermodecontrolbitsinthetimercontrolregister mustselectthetimermode,whichhasaninternalclocksource,topreventtheinputpinfrom interferingwiththetimeroperation. • ExternalTimer1ClockInput TheexternaltimerpinTMR1ispin-sharedwiththeI/OpinPA7.Toconfigurethispintooperate astimerinput,thecorrespondingcontrolbitsinthetimercontrolregistermustbecorrectlyset. Forapplicationsthatdonotrequireanexternaltimerinput,thispincanbeusedasanormalI/O pin.NotethatifusedasanormalI/Opinthetimermodecontrolbitsinthetimercontrolregister mustselectthetimermode,whichhasaninternalclocksource,topreventtheinputpinfrom interferingwiththetimeroperation. I/O Pin Structures ThediagramillustratesagenericI/Opininternalstructures.Astheexactlogicalconstructionofthe I/Opinwilldifferandasthepin-sharedstructuresarenotillustratedthisdiagramissuppliedasa guideonlytoassistwiththefunctionalunderstandingoftheI/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 |