| Electronic Components Datasheet Search |
|
HT56R656 Datasheet(PDF) 39 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT56R656 Datasheet(HTML) 39 Page - Holtek Semiconductor Inc |
|
39 / 145 page ![]() Rev. 1.30 38 �a��� �� �013 Rev. 1.30 39 �a��� �� �013 HT56R62/HT56R65 HT56R642/HT56R644/HT56R654/HT56R656 TinyPowerTM A/D Type with LCD 8-Bit OTP MCU HT56R62/HT56R65 HT56R642/HT56R644/HT56R654/HT56R656 TinyPowerTM A/D Type with LCD 8-Bit OTP MCU I/O Port Control Registers EachI/OporthasitsowncontrolregisterknownasPAC,PBCandPDC,tocontroltheinput/output configuration.Withthiscontrolregister,eachCMOSoutputorinputwithorwithoutpull-high resistorstructurescanbereconfigureddynamicallyundersoftwarecontrol.EachpinoftheI/O portsisdirectlymappedtoabitinitsassociatedportcontrolregister.FortheI/Opintofunctionas aninput,thecorrespondingbitofthecontrolregistermustbewrittenasa″1″.Thiswillthenallow thelogicstateoftheinputpintobedirectlyreadbyinstructions.Whenthecorrespondingbitofthe controlregisteriswrittenasa″0″,theI/OpinwillbesetupasaCMOSoutput.Ifthepiniscurrently setupasanoutput,instructionscanstillbeusedtoreadtheoutputregister.However,itshouldbe notedthattheprogramwillinfactonlyreadthestatusoftheoutputdatalatchandnottheactual logicstatusoftheoutputpin. Pin-shared Functions Theflexibilityofthemicrocontrollerrangeisgreatlyenhancedbytheuseofpinsthathavemore thanonefunction.Limitednumbersofpinscanforceseriousdesignconstraintsondesignersbutby supplyingpinswithmulti-functions,manyofthesedifficultiescanbeovercome.Forsomepins,the chosenfunctionofthemulti-functionI/Opinsissetbyconfigurationoptionswhileforothersthe functionissetbyapplicationprogramcontrol. • ExternalInterruptInputs TheexternalinterruptpinsINT0,INT1arepin-sharedwiththeI/OpinsPD4,PD5.For applicationsnotrequiringanexternalinterruptinput,thepin-sharedexternalinterruptpincan beusedasanormalI/Opin,howevertodothis,theexternalinterruptenablebitsintheINTC0 registermustbedisabled. • ExternalTimerClockInput TheexternaltimerpinsTMR0,TMR1andTMR2arepin-sharedwithI/Opins.Toconfigure themtooperateastimerinputs,thecorrespondingcontrolbitsinthetimercontrolregistermust becorrectlysetandthepinmustalsobesetupasaninput.NotethattheoriginalI/Ofunctionwill remainevenifthepinissetuptobeusedasanexternaltimerinput. • PFDOutput ThedevicecontainsaPFDfunctionwhosesingleoutputispin-sharedwithI/OpinPA3.The outputfunctionofthispinischosenviaaconfigurationoptionandremainsfixedafterthedevice isprogrammed.Notethatthecorrespondingbitoftheportcontrolregister,PAC.3,mustsetupthe pinasanoutputtoenablethePFDoutput.IfthePACportcontrolregisterhassetupthepinasan input,thenthepinwillfunctionasanormallogicinputwiththeusualpull-highselection,evenif thePFDconfigurationoptionhasbeenselected. • PWMOutputs ThedevicecontainsseveralPWMoutputssharedwithpinsPD0~PD3.ThePWMoutput functionsarechosenviaregisters.Notethatthecorrespondingbitoftheportcontrolregister, PDC,mustsetupthepinasanoutputtoenablethePWMoutput.IfthePDCportcontrolregister hassetupthepinasaninput,thenthepinwillfunctionasanormallogicinputwiththeusual pull-highselection,evenifthePWMregistershaveenabledthePWMfunction. • A/DInputs Thedevicecontainsamulti-channelA/Dconverterinputs.Alloftheseanaloginputsare pin-sharedwithI/OpinsonPortB.IfthesepinsaretobeusedasA/Dinputsandnotasnormal I/OpinsthenthecorrespondingbitsintheA/DConverterControlRegister,ADCR,mustbe properlyset.TherearenoconfigurationoptionsassociatedwiththeA/Dfunction.IfusedasI/O pins,thenfullpull-highresistorregisterremain,howeverifusedasA/Dinputsthenanypull-high resistorselectionsassociatedwiththesepinswillbeautomaticallydisconnected. |
|
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 |