| Electronic Components Datasheet Search |
|
HT67F370 Datasheet(PDF) 76 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT67F370 Datasheet(HTML) 76 Page - Holtek Semiconductor Inc |
|
76 / 225 page ![]() Rev. 1.00 �� �an�a�� 0�� �01� Rev. 1.00 �� �an�a�� 0�� �01� HT67F370 TinyPowerTM A/D Flash MCU with LCD & EEPROM HT67F370 TinyPowerTM A/D Flash MCU with LCD & EEPROM I/O Port Control Registers EachI/OporthasitsowncontrolregisterknownasPAC~PHC,tocontroltheinput/output configuration.Withthiscontrolregister,eachCMOSoutputorinputcanbereconfigured dynamicallyundersoftwarecontrol.EachpinoftheI/Oportsisdirectlymappedtoabitinits associatedportcontrolregister.FortheI/Opintofunctionasaninput,thecorrespondingbitofthe controlregistermustbewrittenasa"1".Thiswillthenallowthelogicstateoftheinputpintobe directlyreadbyinstructions.Whenthecorrespondingbitofthecontrolregisteriswrittenasa"0", theI/OpinwillbesetupasaCMOSoutput.Ifthepiniscurrentlysetupasanoutput,instructions canstillbeusedtoreadtheoutputregister.However,itshouldbenotedthattheprogramwillinfact onlyreadthestatusoftheoutputdatalatchandnottheactuallogicstatusoftheoutputpin. PxC Register Bit 7 6 5 4 3 2 1 0 Name PxC� PxC� PxC5 PxC4 PxC3 PxC� PxC1 PxC0 R/W R/W R/W R/W R/W R/W R/W R/W R/W POR 1 1 1 1 1 1 1 1 PxCn:I/OPortxPintypeselection 0:Output 1:Input ThePxCnbitisusedtocontrolthepintypeselection.Herethe"x"canbeA~H.However,theactual availablebitsforeachI/OPortmaybedifferent. Pin-shared Functions Theflexibilityofthemicrocontrollerrangeisgreatlyenhancedbytheuseofpinsthathavemore thanonefunction.Limitednumbersofpinscanforceseriousdesignconstraintsondesignersbutby supplyingpinswithmulti-functions,manyofthesedifficultiescanbeovercome.Forthesepins,the desiredfunctionofthemulti-functionI/Opinsisselectedbyaseriesofregistersviatheapplication programcontrol. Pin-shared Function Selection Registers Thelimitednumberofsuppliedpinsinapackagecanimposerestrictionsontheamountoffunctions acertaindevicecancontain.Howeverbyallowingthesamepinstoshareseveraldifferentfunctions andprovidingameansoffunctionselection,awiderangeofdifferentfunctionscanbeincorporated intoevenrelativelysmallpackagesizes.ThedeviceincludesPxFS,SFSRandSFSR1registers, whichcanselectthedesiredfunctionsofthemulti-functionpin-sharedpins. Themostimportantpointtonoteistomakesurethatthedesiredpin-sharedfunctionisproperly selectedandalsodeselected.Formostpin-sharedfunctions,toselectthedesiredpin-sharedfunction, thepin-sharedfunctionshouldfirstbecorrectlyselectedusingthecorrespondingpin-sharedcontrol register.Afterthatthecorrespondingperipheralfunctionalsettingshouldbeconfiguredandthen theperipheralfunctioncanbeenabled.However,aspecialpointmustbenotedforsomedigital inputpins,suchasINTn,xTCKn,etc,whichsharethesamepin-sharedcontrolconfigurationwith theircorrespondinggeneralpurposeI/Ofunctionswhensettingtherelevantpin-sharedcontrolbit fields.Toselectthesepinfunctions,inadditiontothenecessarypin-sharedcontrolandperipheral functionalsetupaforementioned,theymustalsobesetupasaninputbysettingthecorrespondingbit intheI/Oportcontrolregister.Tocorrectlydeselectthepin-sharedfunction,theperipheralfunction shouldfirstbedisabledandthenthecorrespondingpin-sharedfunctioncontrolregistercanbe modifiedtoselectotherpin-sharedfunctions. |
|
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 |