| Electronic Components Datasheet Search |
|
STC12LE5616AD Datasheet(PDF) 152 Page - STCmicro Technology Co,.Ltd |
|
|
|||||||||||||||||||||||||||||
STC12LE5616AD Datasheet(HTML) 152 Page - STCmicro Technology Co,.Ltd |
|
152 / 377 page ![]() 2. Demostrate the Power-Down Mode waked up by Falling Edge of External Interrupt 1 C program /*------------------------------------------------------------------------------------*/ /* --- STC MCU International Limited ---------------------------------------*/ /* --- STC 1T Series MCU Power-Down wakeup by INT1 Demo -------*/ /* If you want to use the program or the program referenced in the ------*/ /* article, please specify in which data and procedures from STC ------*/ /*-------------------------------------------------------------------------------------*/ #include "reg51.h" #include "intrins.h" //External interrupt0 service routine void exint1( ) interrupt 2 //INT1, interrupt 2 (location at 0013H) { } void main() { IT1 = 1; //set INT1 interrupt type (1:Falling 0:Low level) EX1 = 1; //enable INT1 interrupt EA = 1; //open global interrupt switch while (1) { INT1 = 1; //ready read INT1 port while (!INT1); //check INT1 _nop_(); _nop_(); PCON = 0x02; //MCU power down _nop_(); _nop_(); P1++; } } 152 |
|
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 |