Hi..how can i do a "sleep" mode for 8051?
If the device is a SiLabs 80c51F3xx then it is better to just select the internal osc to the lowest posssible value. Don't go into the idle mode. I don't know the reason but these devices will have a HIGHER idle current in the sleep mode than running at a low osc value. Hope to spend more time on this myself later. Bradford
"I don't know the reason but these devices will have a HIGHER idle current in the sleep mode than running at a low osc value." Not being familiar with this device I don't know for sure, but I would guess that this is because the peripheral clocks are still running when in idle mode. Therefore, if you enter idle with a fast oscillator you may well see higher power consumption than just reducing the clock speed. If you reduce the clock and then enter idle you should get the lowest power consumption.