
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 */
}
Содержание CPU-1450
Страница 1: ...Rev 1 0 Feb 2006 An0065 CPU 1450 Soft Power Management...
Страница 4: ...This page is intentionally left blank...
Страница 6: ...This page is intentionally left blank...
Страница 8: ...This page is intentionally left blank...
Страница 14: ...This page is intentionally left blank...
Страница 40: ...This page is intentionally left blank...
Страница 41: ...Chapter 8 Appendix...
Страница 42: ...This page is intentionally left blank...