![background image](http://html1.mh-extra.com/html/atlantis/com-870e/com-870e_user-manual_3000488074.webp)
- 70 -
Appendix
Appendix D: Digital I/O Setting
Below are the source codes written in C, please take them for Digital I/O
application examples. The default I/O address is 6Eh.
C language Code
/*
*/
/*
SMBus Device Register Reader program by Rex Chin. */
/*
*/
/*-----
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 = 0x580;
int SMB_DEVICE_ADD = 0x6e;
/*75111R’s Add=6eh */
int i,j;
printf(“ Fintek F75111 DIO LED TEST Program Ver:0.1 \n”);
printf(“ Warning: This tools is test only. \n”);
/*
Index 10, GPIO1x Output pin control
*/
SMB_Byte_WRITE(SMB_PORT_AD,SMB_DEVICE_ADD,0x10,0xff);
delay(10);
printf(“All Digital I/O LED ON ... \n”);
/*
Index 11, GPIO1x Output Data value
*/
SMB_Byte_WRITE(SMB_PORT_AD,SMB_DEVICE_ADD,0x11,0x00);
delay(3000);
printf(“All Digital I/O LED OFF ... \n”);
/*
Index 11, GPIO1x Output Data value
*/
SMB_Byte_WRITE(SMB_PORT_AD,SMB_DEVICE_ADD,0x11,0xff);
delay(3000);
printf(“Digital I/O pin 7,5,3,1 LED OFF ...\n”);
/*
Index 11, GPIO1x Output Data value
*/
SMB_Byte_WRITE(SMB_PORT_AD,SMB_DEVICE_ADD,0x11,0xAA);
Summary of Contents for COM-870E
Page 2: ...This page is intentionally left blank...
Page 5: ...1 Introduction 1 Chapter 1 Introduction Chapter 1 Introduction...
Page 13: ...9 Installation 2 Chapter 2 Installation Chapter 2 Installation...
Page 23: ...19 BIOS 3 Chapter 3 BIOS Chapter 3 BIOS...
Page 67: ...63 Appendix Appendix Appendix...