| Electronic Components Datasheet Search |
|
STC12LE5616AD Datasheet(PDF) 149 Page - STCmicro Technology Co,.Ltd |
|
|
|||||||||||||||||||||||||||||
STC12LE5616AD Datasheet(HTML) 149 Page - STCmicro Technology Co,.Ltd |
|
149 / 377 page ![]() Assembly program /*------------------------------------------------------------------------------------*/ /* --- STC MCU International Limited ---------------------------------------*/ /* --- STC 1T Series MCU Power-Down wakeup by INT0 Demo -------*/ /* If you want to use the program or the program referenced in the ------*/ /* article, please specify in which data and procedures from STC -------*/ /*-------------------------------------------------------------------------------------*/ ;----------------------------------------- ;interrupt vector table ORG 0000H LJMP MAIN ORG 0003H ;INT0, interrupt 0 (location at 0003H) LJMP EXINT0 ;----------------------------------------- ORG 0100H MAIN: MOV SP, #7FH ;initial SP SETB IT0 ;set INT0 interrupt type (1:Falling 0:Low level) SETB EX0 ;enable INT0 interrupt SETB EA ;open global interrupt switch LOOP: SETB INT0 ;ready read INT0 port JNB INT0, $ ;check INT0 NOP NOP MOV PCON, #02H ;MCU power down NOP NOP CPL P1.0 SJMP LOOP ;----------------------------------------- ;External interrupt0 service routine EXINT0: RETI ;----------------------------------------- END 149 |
|
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 |