hi all... i am using 89s52 with 3.7v li-io battery. i have made a small circuit in which i want to exit idle mode.... as soon as the power is switch on my 89s52 with enter the idle mode. so to exit the idle mode the code is....
unsigned char ex0_isr_counter = 0; void ex0_isr (void) interrupt 0 { ex0_isr_counter++; } void main() { EA = 1; EX0 = 1; IT0=1; PCON |= 0x01; }
now my problem is..... it easily exits in proteus stimulation but when i build my cirucit i am not able to exit idle mode for testing if it works or not.... i have placed an led between interrupt pin(INT 0) and GND.... led glows.... but when i press the button to exit idle mode.... the led stops.... it means that my connection are proper.... if i am not wrong....