| Electronic Components Datasheet Search |
|
STC12LE5616AD Datasheet(PDF) 157 Page - STCmicro Technology Co,.Ltd |
|
|
|||||||||||||||||||||||||||||
STC12LE5616AD Datasheet(HTML) 157 Page - STCmicro Technology Co,.Ltd |
|
157 / 377 page ![]() 2. Assembly program /* --- STC MCU International Limited --------------------------------------------------------------------------------*/ /* --- STC 1T Series MCU Power-Down wakeup by T1 Demo ----------------------------------------------------*/ /* ---This Interrupt will borrow Timer 1 interrupt request bit TF1 and Timer 1 interrupt vector address ----*/ /* ---So Timer 1 function should be disabled when this Interrupt is enabled -------------------------------------*/ /* ---The enable bit of this Interrupt is T1_PIN_IE / WAKE_CLKO.5 in WAKE_CLKO register -----------*/ /* If you want to use the program or the program referenced in the ----------------------------------------------*/ /* article, please specify in which data and procedures from STC ----------------------------------------------*/ /*-----------------------------------------------------------------------------------------------------------------------------*/ WAKE_CLKO EQU 8FH ;----------------------------------------- ;interrupt vector table ORG 0000H LJMP MAIN ORG 001BH ;T1 interrupt, interrupt 3 (location at 001BH) LJMP T1INT ;----------------------------------------- ORG 0100H MAIN: MOV SP, #7FH ;initial SP MOV WAKE_CLKO, #20H ;enable P3.5/T1/ P3.5/T1/INT falling edge wakeup MCU ;from power-down mode ;T1_PIN_IE / WAKE_CLKO.5 = 1 ;SETB ET1 ;enable T1 interrupt SETB EA ;open global interrupt switch LOOP: SETB T1 ;ready read T1 port JNB T1, $ ;check T1 NOP NOP MOV PCON, #02H ;MCU power down NOP NOP CPL P1.0 SJMP LOOP ;----------------------------------------- ;T1 interrupt service routine T1INT: RETI ;----------------------------------------- END 157 |
|
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 |