gauravkothari23
Advanced Member level 2
- Joined
- Mar 21, 2015
- Messages
- 644
- Helped
- 5
- Reputation
- 10
- Reaction score
- 4
- Trophy points
- 1,298
- Activity points
- 6,951
Hi all....
i am trying to work on power down modw using 89S52.
the code is just simple.
Thats my basic code to test power down mode.
my problem is it consumes about 0.500ma of current.
but the data sheet says current consumption in power down mode is 50 microamp.
i have not connected any components to my circuit.
my circuit contains only 89S52, 11.05962 Crystal, 33pf capacitors for crystals and li-ion Battery.
please help me out of this....
Thanks.
i am trying to work on power down modw using 89S52.
the code is just simple.
Code:
#include<reg51.h>
#include <stdio.h>
unsigned char ex0_ISR_counter =0;
void ex0_ISR (void) interrupt 0
{
ex0_ISR_counter++;
}
void main()
{
EA=1;
EX0=1;
PCON |= 0×02;
while (1)
{
}
}
my problem is it consumes about 0.500ma of current.
but the data sheet says current consumption in power down mode is 50 microamp.
i have not connected any components to my circuit.
my circuit contains only 89S52, 11.05962 Crystal, 33pf capacitors for crystals and li-ion Battery.
please help me out of this....
Thanks.