| Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
STC12LE5616AD Datasheet(PDF) 42 Page - STCmicro Technology Co,.Ltd |
|
|
|||||||||||||||||||||||||||||
STC12LE5616AD Datasheet(HTML) 42 Page - STCmicro Technology Co,.Ltd |
|
42 / 377 page ![]() The following example C program demostrates that power-down mode be woken-up by external interrupt . /*--------------------------------------------------------------------------------*/ /* --- STC MCU International Limited -----------------------------------*/ /* --- STC 1T Series MCU wake up Power-Down mode 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> sbit Begin_LED = P1^2; //Begin-LED indicator indicates system start-up unsigned char Is_Power_Down = 0; //Set this bit before go into Power-down mode sbit Is_Power_Down_LED_INT0 = P1^7; //Power-Down wake-up LED indicator on INT0 sbit Not_Power_Down_LED_INT0 = P1^6; //Not Power-Down wake-up LED indicator on INT0 sbit Is_Power_Down_LED_INT1 = P1^5; //Power-Down wake-up LED indicator on INT1 sbit Not_Power_Down_LED_INT1 = P1^4; //Not Power-Down wake-up LED indicator on INT1 sbit Power_Down_Wakeup_Pin_INT0 = P3^2; //Power-Down wake-up pin on INT0 sbit Power_Down_Wakeup_Pin_INT1 = P3^3; //Power-Down wake-up pin on INT1 sbit Normal_Work_Flashing_LED = P1^3; //Normal work LED indicator void Normal_Work_Flashing (void); void INT_System_init (void); void INT0_Routine (void); void INT1_Routine (void); void main (void) { unsigned char j = 0; unsigned char wakeup_counter = 0; //clear interrupt wakeup counter variable wakeup_counter Begin_LED = 0; //system start-up LED INT_System_init ( ); //Interrupt system initialization while(1) { P2 = wakeup_counter; wakeup_counter++; for(j=0; j<2; j++) { Normal_Work_Flashing( ); //System normal work } 42 |
|
Enlace URL |
| ¿ALLDATASHEET es útil para Ud.? [ DONATE ] |
Todo acerca de Alldatasheet | Publicidad | Contáctenos | Política de Privacidad | Enlace a la hoja de datos | Intercambio de Enlaces | Lista de Fabricantes 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 |