Page 1 of 1

What's the difference between SLEEP and HALT

Posted: Mon May 27, 2019 5:25 am
by BirdKing
Hello, I have doubt about SLEEP mode and HALT mode. What's the difference between them?

Re: What's the difference between SLEEP and HALT

Posted: Wed May 29, 2019 3:01 am
by DaHuFa
As far as I know, SLEEP mode and HALT mode are designed to save power. Because SLEEP mode usually closes more peripherals, SLEEP mode can save more power than HALT mode.

Re: What's the difference between SLEEP and HALT

Posted: Wed May 27, 2020 9:44 am
by carlosm7
BirdKing wrote:
Mon May 27, 2019 5:25 am
Hello, I have doubt about SLEEP mode and HALT mode. What's the difference between them?
Hi.

Sleep (eg, Thread.sleep(long) in Java) causes the thread to stop execution for a finite amount of time, while halt (eg, HLT in x86 processors' assembly language) causes the processor to stop all execution until reset.