How to leave an LED on

8051, PIC, PowerPC or ARM - the principle is identical.