beautypg.com

Acrosser AR-ES6050FLD-W User Manual

Page 37

background image

Revision: 1.0



3.5.2 GPIO Programming

This section describes the usage of GPIOs. AR-B6050 integrated eight bits, 5V TTL

level, bidirectional, and software programmable GPIOs for user’s application. They are all
capable of 5 mA source current for output and 8 mA sink current for input individually. The
electrical characteristics of GPIOs as following table:

PIN SIGNAL

PIN

SIGNAL

1 GPO0

2 VCC

3 GPO7 4 GPI7
5 GPO2 6 GPI6
7 GPO3 8 GPI5
9 GND 10 GPI4



The GPIO sample code of C language as below:

//====================================================================
=======
// Rev Date

Name Description

//====================================================================
=======
// 1.0

03/17/10 Willy

GPIO10~GPIO17 Test utility for W83627EHF.

//====================================================================
=======

//====================================================================
=======
// Turbo C++ Version 3.0 Copyright(c) 1990, 1992 by Borland International,Inc.
//====================================================================
=======

//====================================================================
=======
// Language include files
//====================================================================
=======
#include
#include

//====================================================================
=======
// Normal procedure
//====================================================================
=======
void Show_Help();
void Show_Fail();
void Show_Pass();

37