Datasheet
Software examples 36
Wake on Ring Indicator Pulse
The following code will put the CPU module in soft-off sleep mode; then a positive voltage applied on serial
port Ring Indicator pin will wake it.
An0065. CPU-1450 Soft Power Management
#include <stdio.h>
#include <conio.h>
#include <i86.h>
/* Eurotech SpA */
/* version 0.5 , date 07-02-2006 */
void main()
{
printf( "Eurotech S.p.a. CPU-1450 Wake On Serial Ring\n" );
printf( "Put to sleep a Cpu1450 with pme and ring enabled\n" );
printf( "\npress any key to continue\n");
getch();
outp(0x2E, 0x2D ); /* Super IO PC87364 Initialization */
outp(0x2F, 0x19 ); /* set acpi mode in SIO */
outp(0x602B, 0x9 ); /* set pme_en e ri_en */
outpw (0x6000, 0xFFFF ); /* clr wake status and others into PM1_STS */
outpw (0x6028, 0xFFFF ); /* clr pme_sts and others into GPE0_STS */
_disable(); /* disable interrupts */
outpw (0x6004, 0x1C00 ); /* set slp_type = slp_to_s5 */
outpw (0x6004, 0x3C00 ); /* set slp */
}