![Arbor Technology FPC-8100 Series Скачать руководство пользователя страница 100](http://html1.mh-extra.com/html/arbor-technology/fpc-8100-series/fpc-8100-series_user-manual_2963046100.webp)
- 88 -
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 <math.h>
#include <stdio.h>
#include <dos.h>
int sioIndex = 0x2E;
int sioData = 0x2F;
int main(void)
{
int iData;
SioGPIOMode(0xFF00);
delay(2000);
SioGPIOData(0x5500);
delay(2000);
iData = SioGPIOStatus();
printf(" Input : %2x \n",iData);
delay(2000);
SioGPIOData(0xAA00);
delay(2000);
iData = SioGPIOStatus();
printf(" Input : %2x \n",iData);
delay(2000);
return 0;
}
void SioGPIOMode(int iMode)
{
int iTemp;
outportb(sioIndex,0x87);
/*
Enable
Super I/O */
outportb(sioIndex,0x87);
outportb(sioIndex,0x07);
/*
Select
Содержание FPC-8100 Series
Страница 2: ...2 This page is intentionally left blank...
Страница 3: ...i Revision History Version Release Time Description 1 0 2021 02 Initial release...
Страница 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...
Страница 17: ...5 Introduction OS Support Windows 10 IOT Enterprise 64 bit Linux Kernel 4 9...
Страница 20: ...8 2 Chapter 2 System Overview Chapter 2 System Overview...
Страница 25: ...13 3 Chapter 3 System Configuration Chapter 3 System Configuration...
Страница 45: ...33 4 Chapter 4 Installation and Maintenance Chapter 4 Installation and Maintenance...
Страница 69: ...57 5 Chapter 5 BIOS Chapter 5 BIOS...
Страница 87: ...75 BIOS 5 2 10 NVMe Configuration Access this submenu to view the NVMe controller and driver information...
Страница 99: ...87 Appendices Appendices Appendices...