??? 04/26/05 11:10 Read: times |
#92369 - maybe Responding to: ???'s previous message |
hi,
Jacek Bogusz said:
Thanks Oleg for your solution. But it cannot work. MOV PCON,#2 is the last command, which CPU can realize.
Indeed. But if due some reason you have enabled external interrupt 0 as level-sensitive then MCU may go out from power-down mode with some non-expected signal on INT0 pin. I saw "clr IT0" in your program so I thought it may happen somehow. So I suggested to loop the power-down routine. After sending this message I tried to change the output value for P1, P2 and P3. Now my routine clears all bits of these ports (MOV P1-P2-P3, #0). And it seems to me, it is working. Maybe through output port my microcontroller is powering one of the peripheral chips (I mean through input), which is unpredictable when off. I don't know which, but now power consumption is really very low.
Well, due datasheet, ports P0...P3 keeps their values during power-down mode. Only if program executes from external program memory then P0 floats. Regards, Oleg |
Topic | Author | Date |
AT89S8252 in Power Down mode | 01/01/70 00:00 | |
try this | 01/01/70 00:00 | |
maybe I solved the problem | 01/01/70 00:00 | |
maybe | 01/01/70 00:00 | |
ISR vs 'main' | 01/01/70 00:00 | |
could you... | 01/01/70 00:00 | |
reasons![]() | 01/01/70 00:00 | |
You found same thing as me... | 01/01/70 00:00 | |
I know you ask and wonder,,, | 01/01/70 00:00 |