GM_Trap_PwrFail.exe This application illustrates how to trap the power failure event (VDDPWROFF) on the Graphics Master. Run this application, then slowly reduce the 5V input voltage. All information from the application is displayed on the debug port. When the application detects the event, it puts the system to sleep. It displays the "z" character about every 25 ms to illustrate how long the system takes to go to sleep. See the sample output included with this application. Wake up the system by shorting the pins of J1 (rqOnOff). Note that since time is of the essence during a power failure event, it is not normally appropriate to display text on the debug port before going to sleep, as it delays the sleep function. REQUIREMENTS 1. Graphics Master build 3.18 or later 2. Set the following key in your ADSLOAD.REG file: [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Power] "VddPwrOffFromApps"=dword:1 ; 0 sleep on power fail ; 1 issue event "VDDPWROFF" KNOWN ISSUES The first time the system goes to sleep, there is a delay of about 150ms. Subsequent power failures appear to cause the system to sleep immediately. HISTORY 720020-11901 ADS/ak 8mar05 - Initial release