| 数据搜索系统,热门电子元器件搜索 |
|
HT45F2020 数据表(PDF) 39 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F2020 数据表(HTML) 39 Page - Holtek Semiconductor Inc |
|
39 / 85 page ![]() Rev. 1.00 38 April 11, 2017 Rev. 1.00 39 April 11, 2017 HT45F2020/HT45F2022 Sound Effect Generator Flash MCU HT45F2020/HT45F2022 Sound Effect Generator Flash MCU Port A Wake-up TheHALTinstructionforcesthemicrocontrollerintotheSLEEPorIDLEModewhichpreserves power,afeaturethatisimportantforbatteryandotherlow-powerapplications.Variousmethods existtowake-upthemicrocontroller,oneofwhichistochangethelogicconditionononeofthePort Apinsfromhightolow.Thisfunctionisespeciallysuitableforapplicationsthatcanbewokenup viaexternalswitches.EachpinonPortAcanbeselectedindividuallytohavethiswake-upfeature usingthePAWUregister.Notethatthewake-upfunctioncanbecontrolledbythewake-upcontrol registersonlywhenthepin-sharedfunctionalpinisselectedasgeneralpurposeinput/outputandthe MCUentersthePowerdownmode. PAWU Register Bit 7 6 5 4 3 2 1 0 Name — — — — PAWU3 PAWU2 PAWU1 PAWU0 R/W — — — — R/W R/W R/W R/W POR — — — — 0 0 0 0 Bit7~4 Unimplemented,readas“0” Bit3~0 PAWU3~PAWU0:PortAbit3~bit0Wake-upControl 0:Disable 1:Enable I/O Port Control Registers EachI/OporthasitsowncontrolregisterknownasPAC,tocontroltheinput/outputconfiguration. Withthiscontrolregister,eachCMOSoutputorinputcanbereconfigureddynamicallyunder softwarecontrol.EachpinoftheI/Oportsisdirectlymappedtoabitinitsassociatedportcontrol register.FortheI/Opintofunctionasaninput,thecorrespondingbitofthecontrolregistermust bewrittenasa“1”.Thiswillthenallowthelogicstateoftheinputpintobedirectlyreadby instructions.Whenthecorrespondingbitofthecontrolregisteriswrittenasa“0”,theI/Opinwill besetupasaCMOSoutput.Ifthepiniscurrentlysetupasanoutput,instructionscanstillbeused toreadtheoutputregister.However,itshouldbenotedthattheprogramwillinfactonlyreadthe statusoftheoutputdatalatchandnottheactuallogicstatusoftheoutputpin. PAC Register Bit 7 6 5 4 3 2 1 0 Name — — — — PAC3 PAC2 PAC1 PAC0 R/W — — — — R/W R/W R/W R/W POR — — — — 1 1 1 1 Bit7~4 Unimplemented,readas“0” Bit3~0 PAC3~PAC0:PortAbit3~bit0Input/OutputControl 0:Output 1:Input |
|
链接网址 |
| 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 |