| Electronic Components Datasheet Search |
|
HT45F3W Datasheet(PDF) 127 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45F3W Datasheet(HTML) 127 Page - Holtek Semiconductor Inc |
|
127 / 167 page ![]() Rev. 1.50 1�� De�e��e� 01� �01� Rev. 1.50 1�7 De�e��e� 01� �01� HT45F3W R-Type Blood Pressure Meter Flash MCU HT45F3W R-Type Blood Pressure Meter Flash MCU External Interrupt Thedevicecontainstwoexternalinterrupts,eachofwhichiscontrolledbysignaltransitionson theINTnpin.TheINT0interruptisanindependentinterrupt,theINT1interruptiscontained withintheMulti-functionInterrupt.Anexternalinterruptrequestwilltakeplacewhentheexternal interruptrequestflag,INTnF,isset,whichwilloccurwhenatransition,whosetypeischosenbythe edgeselectbits,appearsontheexternalinterruptpin.ToallowtheprogramtobranchtotheINT0 interruptvectoraddress,theglobalinterruptenablebit,EMI,andrespectiveexternalinterruptenable bit,INT0E,mustfirstbeset.Whentheinterruptisenabled,thestackisnotfullandthecorrect transitiontypeappearsontheexternalinterruptpin,asubroutinecalltotheexternalinterruptvector, willtakeplace.Whentheinterruptisserviced,theexternalinterruptrequestflag,INT0F,willbe automaticallyresetandtheEMIbitwillbeautomaticallyclearedtodisableotherinterrupts. ToallowtheprogramtobranchtotheINT1interruptvectoraddress,theglobalinterruptenable bit,EMI,respectiveexternalinterruptenablebit,INT1E,andrelevantMulti-functionInterrupt enablebitmustfirstbeset.WhentheINT1Interruptisserviced,theEMIbitwillbeautomatically clearedtodisableotherinterrupts,howeveronlytheMulti-functioninterruptrequestflagwillbe alsoautomaticallycleared.Astheexternalinterruptrequestflag,INT1F,willnotbeautomatically cleared,ithastobeclearedbytheapplicationprogram.Additionallythecorrectinterruptedgetype mustbeselectedusingtherelatedregistertoenabletheexternalinterruptfunctionandtochoosethe triggeredgetype.Astheexternalinterruptpinispin-sharedwithI/Opin,itcanonlybeconfigured asexternalinterruptpiniftheexternalinterruptenablebitinthecorrespondinginterruptregisterhas beenset.Thepinmustalsobesetupasaninputbysettingthecorrespondingbitintheportcontrol register.Notethatanypull-highresistorselectionsontheexternalinterruptpinwillremainvalid evenifthepinisusedasanexternalinterruptinput. ThebitsinCTRL2registerisusedtoselectthetypeofactiveedgethatwilltriggertheexternal interruptAchoiceofeitherrisingorfallingorbothedgetypescanbechosentotriggeranexternal interrupt.Notethatthisregistercanalsobeusedtodisabletheexternalinterruptfunction. CTRL2 Register Bit 7 6 5 4 3 2 1 0 Na�e DACEN CPDEN INT1ES1 INT1ES0 INT0ES1 INT0ES0 CPF — R/W R/W R/W R/W R/W R/W R/W R — POR 0 0 1 0 1 0 0 — Bit7~6 Describedelsewhere Bit5~4 INT1ES1, INT1ES0:externalinterrupt1edgeselection 00:disable 01:risingedgetrigger 10:fallingedgetrigger 11:dualedgetrigger Bit3~2 INT0ES1, INT0ES0:externalinterrupt0edgeselection 00:disable 01:risingedgetrigger 10:fallingedgetrigger 11:dualedgetrigger Bit1~0 Describedelsewhere. |
|
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 |