Appendix
- 74 -
C Language Code
/*-----
Include Header Area -----*/
#include "math.h"
#include "stdio.h"
#include "dos.h"
/*-----
routing, sub-routing -----*/
void main(int argc, char *argv[])
{
int SMB_PORT_AD = 0x400;
int SMB_DEVICE_ADD = 0x6e;
/*75111R's Add=6eh */
int i,j;
/*
Index x0, GPIO1x Output pin control, Set all pin as output
*/
SMB_Byte_WRITE(SMB_PORT_AD,SMB_DEVICE_ADD,0x10,0xff);
SMB_Byte_WRITE(SMB_PORT_AD,SMB_DEVICE_ADD,0x20,0xff);
delay(10);
/*
Index x1, GPIO1x Output Data value, all low */
SMB_Byte_WRITE(SMB_PORT_AD,SMB_DEVICE_ADD,0x11,0x00);
SMB_Byte_WRITE(SMB_PORT_AD,SMB_DEVICE_ADD,0x21,0x00);
delay(3000);
/*
Index x1, GPIO1x Output Data value, all high */
SMB_Byte_WRITE(SMB_PORT_AD,SMB_DEVICE_ADD,0x11,0xff);
SMB_Byte_WRITE(SMB_PORT_AD,SMB_DEVICE_ADD,0x21,0xff);
delay(3000);
/*
printf("Digital I/O pin 7,5,3,1 ouput high ...\n"); */
/*
Index x1, GPIO1x Output Data value
*/
SMB_Byte_WRITE(SMB_PORT_AD,SMB_DEVICE_ADD,0x11,0xAA);
SMB_Byte_WRITE(SMB_PORT_AD,SMB_DEVICE_ADD,0x21,0xAA);
delay(3000);
/*
printf("Digital I/O pin 6,4,2,0 ouput high ...\n"); */
/*
Index 11, GPIO1x Output Data value
*/
SMB_Byte_WRITE(SMB_PORT_AD,SMB_DEVICE_ADD,0x11,0x55);
SMB_Byte_WRITE(SMB_PORT_AD,SMB_DEVICE_ADD,0x21,0x55);
delay(1500);
Содержание EmETXe-i9652
Страница 1: ...EmETXe i9652 COM Express CPU Module User s Manual Version 1 2 2011 06 ...
Страница 2: ...This page is intentionally left blank ...
Страница 5: ...Introduction 1 1 Chapter 1 Introduction Chapter 1 Introduction ...
Страница 12: ...Introduction 8 This page is intentionally left blank ...
Страница 13: ...Installation 9 2 Chapter 2 Installation Chapter 2 Installation ...
Страница 16: ...Installation 12 2 3 Jumpers and Connectors DIMM2 DIMM1 CPU Socket D1 C1 B1 A1 D110 C110 B110 A110 ...
Страница 22: ...Installation 18 This page is intentionally left blank ...
Страница 23: ...BIOS 19 3 Chapter 3 BIOS Chapter 3 BIOS ...
Страница 33: ...BIOS 29 Suspend mode Select the ACPI state used for System Suspend The Choice S1 POS 3 2 6 ACPI Configuration ...
Страница 41: ...BIOS 37 Clear NVRAM Clear NVRAM during System BOOT The Choice Yes No 3 3 Advanced PCI PnP Settings ...
Страница 70: ...BIOS 66 This page is intentionally left blank ...
Страница 71: ...Appendix 67 Appendix Appendix ...
Страница 80: ...Appendix 76 This page is intentionally left blank ...