| 전자부품 데이터시트 검색엔진 |
|
HT56R656 데이터시트(PDF) 39 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT56R656 데이터시트(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. |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |