- 108 -
Appendices
A: Digital I/O Setting
Digital I/O can read from or write to a line or an entire digital port, which is a
collection of lines. This mechanism helps users achieve various applications
such as industrial automation, customized circuit, and laboratory testing. Take
the source code below that is written in C for the digital I/O application example.
Sample Codes:
/*----- Include Header Area -----*/
#include “math.h”
#include “stdio.h”
#include “dos.h”
int SMB_PORT_AD = 0xF040;
int
SMB_DEVICE_ADD
=
0x6e;
/*
75111R’s
Add=6eh */
/*----- routing, sub-routing -----*/
void main()
{
DIO_Set(0xFFFF,0xFFFF);
delay(2000);
DIO_Set(0xFFFF,0x0000);
delay(2000);
DIO_Set(0xFFFF,0x5555);
delay(2000);
DIO_Set(0xFFFF,0xAAAA);
delay(2000);
}
unsigned int DIO_Set(unsigned int oMode, unsigned int oData)
{
unsigned int iData;
unsigned int iTemp;
/* GPIO10~17 control */
SMB_Byte_WRITE(SMB_PORT_AD,SMB_DEVICE_ADD,0x10,oMode & 0x00FF);
delay(10);
/* GPIO20~27 control */
SMB_Byte_WRITE(SMB_PORT_AD,SMB_DEVICE_ADD,0x20,(oMode & 0xFF00)
>> 8 );
delay(10);
/* GPIO10~17 Data */
SMB_Byte_WRITE(SMB_PORT_AD,SMB_DEVICE_ADD,0x11,oData & 0x00FF);
Содержание FPC-7700 Series
Страница 2: ...2 This page is intentionally left blank...
Страница 6: ...iv This page is intentionally left blank...
Страница 12: ...x This page is intentionally left blank...
Страница 13: ...1 1 Chapter 1 Introduction Chapter 1 Introduction...
Страница 20: ...8 This page is intentionally left blank...
Страница 21: ...9 2 Chapter 2 System Overview Chapter 2 System Overview...
Страница 27: ...15 2 2 3 Side Views FPC 7700 Front right FPC 7700 Rear left...
Страница 28: ...16 System Overview FPC 7701 7702 7703 Front right FPC 7701 7702 7703 Rear left...
Страница 31: ...19 3 Chapter 3 System Configuration Chapter 3 System Configuration...
Страница 33: ...21 Engine of the Computer FMB i77M1 Board Bottom 1 1 5 6 C1 C4 C2 C5 C3 C6 1 1 1 4 7 2 3 5 6 1 4 7 2 3...
Страница 61: ...49 4 Chapter 4 Installation and Maintenance Chapter 4 Installation and Maintenance...
Страница 88: ...76 This page is intentionally left blank...
Страница 89: ...77 5 Chapter 5 BIOS Chapter 5 BIOS...
Страница 119: ...107 Appendices Appendices...
Страница 145: ...133 This page is intentionally left blank...