This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

8051 and power management

Hi,

I am trying to implement power management for 8051 using IDLE and STOP mode. COuple of questions:
a) Where should i place PCON |= 0x01; ? The example of keil doesn't really explain this. Should i create a timer and place this line in it ?
b) How do I implement STOP mode ? I used PCON |= 0x02; and placed it in external interrupt 1, but I am unsure how to save all the context (registers, ACC, SP etc) so that when I press the reset button, all these would be recovered, and to resume from previous execution ?
c) How to differiate between warm and cold reset ? The example doesn't seem to work for me.

Thanks all

0