- 60 -
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);
Содержание EmETXe-i250C
Страница 1: ...EmETXe i250C COM Express Type 6 CPU Module User s Manual Version 1 1 2016 09...
Страница 2: ...This page is intentionally left blank...
Страница 5: ...1 Introduction 1 Chapter 1 Introduction Chapter 1 Introduction...
Страница 13: ...9 Installation 2 Chapter 2 Installation Chapter 2 Installation...
Страница 21: ...17 BIOS 3 Chapter 3 BIOS Chapter 3 BIOS...
Страница 35: ...31 BIOS Memory Frequency and Timing 3 3 1 Host Bridge Parameters...
Страница 36: ...32 BIOS Enable or disable MRC fast boot MRC Fast Boot Enable or disable Dyn SR Dyn SR...
Страница 57: ...53 Appendix Appendix Appendix...