Revision: 1.0
39
4.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
To quickly understand the GPIO programming under Linux, we also provide a sample
application source code in product CD, naming gpio.c. It can be used to control GPIO pin
described above and also LED.
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 <conio.h>
#include <stdio.h>
//====================================================================
=======
// Normal procedure
//====================================================================
=======
void Show_Help();
Содержание AR-ES6050FLD
Страница 1: ...Revision 1 0 1 Revision Description Date 1 0 Release 2010 08 20 AR ES6050FLD System Guide...
Страница 5: ...Revision 1 0 5 3 System Configuration 3 2 4 8 9 10 11 12 13 7 5 6 1...
Страница 16: ...Revision 1 0 16 3 Appendix Cable Pin Define 1 Com cable 2 Power Cable 110mm BLACK BLACK YELLOW YELLOW...
Страница 17: ...Revision 1 0 17 3 Switch Cable...
Страница 18: ...Revision 1 0 18 4 AR B6050 Board Guide 4 1 Block Diagram...
Страница 21: ...Revision 1 0 21 4 2 2 AR B6050 LAYOUT Bottom side SODIMM1 CF...
Страница 38: ...Revision 1 0 38 printf For 10 seconds to reset n...