| поискавой системы для электроныых деталей |
|
HT48R002 датащи(PDF) 49 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT48R002 датащи(HTML) 49 Page - Holtek Semiconductor Inc |
|
49 / 71 page ![]() Rev. 1.11 48 April 11, 2017 Rev. 1.11 49 April 11, 2017 HT48R002/HT48R003 Cost-Effective I/O 8-Bit OTP MCU HT48R002/HT48R003 Cost-Effective I/O 8-Bit OTP MCU External Interrupt Foranexternalinterrupttooccur,theglobalinterruptenablebit,EMI,andexternalinterruptenable bit,INTE,mustfirstbeset.Anactualexternalinterruptwilltakeplacewhentheexternalinterrupt requestflag,INTFisset,asituationthatwilloccurwhenanedgetransitionappearsontheexternal INTline.Thetypeoftransitionthatwilltriggeranexternalinterrupt,whetherhightolow,lowto highorbothisdeterminedbytheINTES0andINTES1bits,whicharebits6and7respectivelyin theCTRL1controlregister.Thesetwobitscanalsodisabletheexternalinterruptfunction. INTES1 INTES0 Request Flag 0 0 External interrupt disable 0 1 Rising edge trigger 1 0 Falling edge trigger 1 1 Dual edge trigger Theexternalinterruptpinispin-sharedwiththeI/OpinPA2andcanonlybeusedasanexternal interruptpinifthecorrespondingexternalinterruptenablebitintheINTC0registerhasbeenset andtheedgetriggertypehasbeenselectedusingtheCTRL1register.Thepinmustalsobesetas aninputbysettingthecorrespondingPAC.2bitintheportcontrolregister.Whentheinterruptis enabled,thestackisnotfullandatransitionappearsontheexternalinterruptpin,asubroutine calltotheexternalinterruptvectoratlocation04H,willtakeplace.Whentheinterruptisserviced, theexternalinterruptrequestflag,INTF,willbeautomaticallyresetandtheEMIbitwillbe automaticallyclearedtodisableotherinterrupts.Notethatanypull-highresistorconnectionsonthis pinwillremainvalidevenifthepinisusedasanexternalinterruptinput Timer/Event Counter Interrupt ForaTimer/EventCounterinterrupttooccur,theglobalinterruptenablebit,EMIandthe correspondingtimerinterruptenablebitT0Emustfirstbeset.AnactualTimer/EventCounter interruptwilltakeplacewhentheTimer/EventCounterrequestflagT0Fisset,asituationthatwill occurwhentherelevantTimer/EventCounteroverflows.Whentheinterruptisenabled,thestackis notfullandaTimer/EventCounteroverflowoccurs,asubroutinecalltotherelevanttimerinterrupt vector,willtakeplace.Whentheinterruptisserviced,thetimerinterruptrequestflagT0Fwillbe automaticallyresetandtheEMIbitwillbeautomaticallyclearedtodisableotherinterrupts. Interrupt Wake-up Function Eachoftheinterruptfunctionshasthecapabilityofwakingupthemicrocontrollerwheninthe SleepMode.Awake-upisgeneratedwhenaninterruptrequestflagchangesfromlowtohighand isindependentofwhethertheinterruptisenabledornot.Therefore,eventhoughthedeviceisin theSleepModeanditssystemoscillatorisstopped,situationssuchasexternaledgetransitions ontheexternalinterruptpins,alowpowersupplyvoltageormaycausetheirrespectiveinterrupt flagtobesethighandconsequentlygenerateaninterrupt.Caremustthereforebetakenifspurious wake-upsituationsaretobeavoided.Ifaninterruptwake-upfunctionistobedisabledthenthe correspondinginterruptrequestflagshouldbesethighbeforethedeviceenterstheSleepMode.The interruptenablebitshavenoeffectontheinterruptwake-upfunction. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |