User`s manual

PICO822 Intel
®
Atom
TM
E620T/E680T All-In-One Pico-ITX Board
Digital I/O 109
Appendix C
Digital I/O
About Digital I/O
The onboard GPIO (digital I/O) has 8 bits. Each bit can be set to function as input or output by
software programming. In default, GPIO0~GPIO6 are pulled high with +5V level (according to
standby power) and GPIO8 is pulled high with +3.3V level (according to main power). The
BIOS default settings are 8 inputs where all of these pins are set to 1. Use these GPIO signals
to control cash drawers and sense warning signals from an Uninterrupted Power System
(UPS), or perform store security control.
CN7
Sample Program
#include <windows.h>
#include <winioctl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strsafe.h>
#include <initguid.h>
#include <setupapi.h>
#include "ioh_gpio_common.h"
#include "ioh_gpio_ioctls.h"
extern BOOL RunGPIOSample(__in LPCTSTR DriverName, __in int argc,
__in_ecount(argc) char *argv[]);
extern BOOL GetDevicePath(__in LPGUID pGuid, __out PCHAR pDeviceName);
int __cdecl main(__in int argc, __in_ecount(argc) char *argv[])
{
CHAR DevicePath[MAX_PATH];
if((argc == 2) || (argc == 3))
{
GetDevicePath((LPGUID)&GUID_DEVINTERFACE_IOHGPIO, DevicePath);
RunGPIOSample(DevicePath, argc-1, argv+1);
}
CN7 Signal
Pin 21: GPIO5
Pin 22: GPIO0
Pin 23: GPIO6
Pin 24: GPIO1
Pin 25: GPIO8
Pin 26: GPIO2
Pin 28: GPIO3
Pin 30: GPIO4