| Electronic Components Datasheet Search |
|
HT45F56 Datasheet(PDF) 48 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F56 Datasheet(HTML) 48 Page - Holtek Semiconductor Inc |
|
48 / 90 page ![]() Rev. 1.11 48 April 11, 2017 Rev. 1.11 49 April 11, 2017 HT45F56 Shock Detector Flash MCU HT45F56 Shock Detector Flash MCU Port A Wake-up TheHALTinstructionforcesthemicrocontrollerintotheSLEEPorIDLEModewhichpreserves power,afeaturethatisimportantforbatteryandotherlow-powerapplications.Variousmethods existtowake-upthemicrocontroller,oneofwhichistochangethelogicconditionononeofthePort Apinsfromhightolow.Thisfunctionisespeciallysuitableforapplicationsthatcanbewokenup viaexternalswitches.EachpinonPortAcanbeselectedindividuallytohavethiswake-upfeature usingthePAWUregister. I/O Port Control Register EachPorthasitsowncontrolregister,knownasPAC,whichcontrolstheinput/outputconfiguration. Withthiscontrolregister,eachI/Opinwithorwithoutpull-highresistorscanbereconfigured dynamicallyundersoftwarecontrol.FortheI/Opintofunctionasaninput,thecorrespondingbitof thecontrolregistermustbewrittenasa“1”.Thiswillthenallowthelogicstateoftheinputpinto bedirectlyreadbyinstructions.Whenthecorrespondingbitofthecontrolregisteriswrittenasa“0”, theI/OpinwillbesetupasaCMOSoutput.Ifthepiniscurrentlysetupasanoutput,instructions canstillbeusedtoreadtheoutputregister. However,itshouldbenotedthattheprogramwillinfactonlyreadthestatusoftheoutputdatalatch andnottheactuallogicstatusoftheoutputpin. Pin-shared Functions Theflexibilityofthemicrocontrollerrangeisgreatlyenhancedbytheuseofpinsthathavemore thanonefunction.Limitednumbersofpinscanforceseriousdesignconstraintsondesignersbutby supplyingpinswithmulti-functions,manyofthesedifficultiescanbeovercome.Forthesepins,the desiredfunctionofthemulti-functionI/Opinsisselectedbyaregisterviatheapplicationprogram control. Pin-shared Function Selection Registers Thelimitednumberofsuppliedpinsinapackagecanimposerestrictionsontheamountoffunctions acertaindevicecancontain.Howeverbyallowingthesamepinstoshareseveraldifferentfunctions andprovidingameansoffunctionselection,awiderangeofdifferentfunctionscanbeincorporated intoevenrelativelysmallpackagesizes.Thisdeviceincludespin-sharedfunctionselectionregister, labeledasPSEL,whichcanselectthedesiredfunctionsofthemulti-functionpin-sharedpins. Themostimportantpointtonoteistomakesurethatthedesiredpin-sharedfunctionisproperly selectedandalsodeselected.Toselectthedesiredpin-sharedfunction,thepin-sharedfunction shouldfirstbecorrectlyselectedusingthecorrespondingpin-sharedcontrolregister.Afterthatthe correspondingperipheralfunctionalsettingshouldbeconfiguredandthentheperipheralfunction canbeenabled.Tocorrectlydeselectthepin-sharedfunction,theperipheralfunctionshouldfirstbe disabledandthenthecorrespondingpin-sharedfunctioncontrolregistercanbemodifiedtoselect otherpin-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 |