Appendix C – Digital I/O Ports
112
3.5
” S
ub
co
mp
act
Bo
ard
G
ENE
-B
SW
5
C.4 Digital I/O Sample Program
**************************************************************************
// SuperIO relative definition (Please reference to Table 2)
#define SIOIndex 0x2E
#define SIOData 0x2F
#define DIOLDN 0x06
IOWriteByte(byte IOPort, byte Value);
IOReadByte(byte IOPort);
// DIO relative definition (Please reference to Table 3)
#define DirReg_L 0x88 // 0:input, 1: output
#define DirReg_H 0x80 // 0:input, 1: output
#define InputPin 0x00
#define OutputPin 0x01
#define OutputReg_L 0x89 // 0:low, 1: high
#define OutputReg_H 0x81 // 0:low, 1: high
#define StatusReg_L 0x8A // 0:low, 1: high
#define StatusReg_H 0x82 // 0:low, 1: high
#define PinLow 0x00
#define PinHigh 0x01
#define Pin0Bit 0x00
#define Pin1Bit 0x01
#define Pin2Bit 0x02
#define Pin3Bit 0x03
#define Pin4Bit 0x04
#define Pin5Bit 0x05
#define Pin6Bit 0x06
#define Pin7Bit 0x07
**************************************************************************
**************************************************************************
VOID Main(){
Boolean PinStatus ;
// Procedure : AaeonReadPinStatus
// Input :
//
Example, Read Digital I/O Pin 3 status
// Output :
//
InputStatus :
//
0: Digital I/O Pin level is low
//
1: Digital I/O Pin level is High
Содержание GENE-BSW5
Страница 1: ...Last Updated June 7 2016 GENE BSW5 3 5 Subcompact Board User s Manual 3rd Ed...
Страница 15: ...3 5 Subcompact Board GENE BSW5 Chapter 1 Chapter 1 Product Specifications...
Страница 19: ...3 5 Subcompact Board GENE BSW5 Chapter 2 Chapter 2 Hardware Information...
Страница 20: ...Chapter 2 Hardware Information 6 3 5 Subcompact Board GENE BSW5 2 1 Dimensions Component Side Component Side...
Страница 21: ...Chapter 2 Hardware Information 7 3 5 Subcompact Board GENE BSW5 Solder Side Solder Side...
Страница 23: ...Chapter 2 Hardware Information 9 3 5 Subcompact Board GENE BSW5 Solder Side Solder Side...
Страница 25: ...Chapter 2 Hardware Information 11 3 5 Subcompact Board GENE BSW5 Solder Side Solder Side...
Страница 27: ...Chapter 2 Hardware Information 13 3 5 Subcompact Board GENE BSW5 Solder Side Solder Side...
Страница 28: ...Chapter 2 Hardware Information 14 3 5 Subcompact Board GENE BSW5 2 3 Block Diagram...
Страница 67: ...3 5 Subcompact Board GENE BSW5 Chapter 3 Chapter 3 AMI BIOS Setup...
Страница 102: ...3 5 Subcompact Board GENE BSW5 Chapter 4 Chapter 4 Drivers Installation...
Страница 106: ...Chapter 4 Driver Installation 92 3 5 Subcompact Board GENE BSW5 3 Run patch bat as administrator...
Страница 109: ...Chapter 4 Driver Installation 95 3 5 Subcompact Board GENE BSW5...
Страница 113: ...3 5 Subcompact Board GENE BSW5 Appendix A Appendix A Watchdog Timer Programming...
Страница 118: ...3 5 Subcompact Board GENE BSW5 Appendix B Appendix B I O Information...
Страница 119: ...Appendix B I O Information 105 3 5 Subcompact Board GENE BSW5 B 1 I O Address Map...
Страница 120: ...Appendix B I O Information 106 3 5 Subcompact Board GENE BSW5 B 2 Memory Address Map...
Страница 121: ...Appendix B I O Information 107 3 5 Subcompact Board GENE BSW5 B 3 IRQ Mapping Chart...
Страница 122: ...3 5 Subcompact Board GENE BSW5 Appendix C Appendix C Digital I O Ports...
Страница 129: ...3 5 Subcompact Board GENE BSW5 Appendix D Appendix D Notes for Users...