Appendix D – Digital I/O Ports
108
3.5
” S
ub
co
mp
act
Bo
ard
G
ENE
-K
BU6
D.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 0xA0 // 0:input, 1: output
#define InputPin 0x00
#define OutputPin 0x01
#define OutputReg 0xA1 // 0:low, 1: high
#define StatusReg 0xA2 // 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
PinStatus = AaeonReadPinStatus(Pin3Bit);
// Procedure : AaeonSetOutputLevel
Summary of Contents for GENE-KBU6
Page 1: ...Last Updated June 30 2017 GENE KBU6 3 5 Subcompact Board User s Manual 1st Ed...
Page 16: ...3 5 Subcompact Board GENE KBU6 Chapter 1 Chapter 1 Product Specifications...
Page 19: ...3 5 Subcompact Board GENE SKU6 Chapter 2 Chapter 2 Hardware Information...
Page 24: ...Chapter 2 Hardware Information 9 3 5 Subcompact Board GENE KBU6 2 3 Assembly Options Option 1...
Page 25: ...Chapter 2 Hardware Information 10 3 5 Subcompact Board GENE KBU6 Option 2...
Page 26: ...Chapter 2 Hardware Information 11 3 5 Subcompact Board GENE KBU6 2 4 Block Diagram...
Page 63: ...3 5 Subcompact Board GENE SKU6 Chapter 3 Chapter 3 AMI BIOS Setup...
Page 66: ...Chapter 3 AMI BIOS Setup 51 3 5 Subcompact Board GENE KBU6 3 3 Setup submenu Main...
Page 67: ...Chapter 3 AMI BIOS Setup 52 3 5 Subcompact Board GENE KBU6 3 4 Setup submenu Advanced...
Page 78: ...Chapter 3 AMI BIOS Setup 63 3 5 Subcompact Board GENE KBU6 3 8 SIO Configuration...
Page 88: ...Chapter 3 AMI BIOS Setup 73 3 5 Subcompact Board GENE KBU6 3 17 Setup submenu Chipset...
Page 96: ...Chapter 3 AMI BIOS Setup 81 3 5 Subcompact Board GENE KBU6 BBS Priorities...
Page 97: ...Chapter 3 AMI BIOS Setup 82 3 5 Subcompact Board GENE KBU6 3 242 Setup Submenu Exit...
Page 98: ...3 5 Subcompact Board GENE KBU6 Chapter 4 Chapter 4 Drivers Installation...
Page 104: ...3 5 Subcompact Board GENE KBU6 Appendix A Appendix A Watchdog Timer Programming...
Page 109: ...3 5 Subcompact Board GENE KBU6 Appendix B Appendix B I O Information...
Page 110: ...Appendix B I O Information 95 3 5 Subcompact Board GENE KBU6 B 1 I O Address Map...
Page 111: ...Appendix B I O Information 96 3 5 Subcompact Board GENE KBU6...
Page 112: ...Appendix B I O Information 97 3 5 Subcompact Board GENE KBU6 B 2 Memory Address Map...
Page 113: ...Appendix B I O Information 98 3 5 Subcompact Board GENE KBU6...
Page 114: ...Appendix B I O Information 99 3 5 Subcompact Board GENE KBU6 B 3 IRQ Mapping Chart...
Page 115: ...Appendix B I O Information 100 3 5 Subcompact Board GENE KBU6...
Page 116: ...3 5 Subcompact Board GENE KBU6 Appendix C Appendix C Electrical Specifications for I O Ports...
Page 119: ...3 5 Subcompact Board GENE KBU6 Appendix D Appendix D Digital I O Ports...
Page 126: ...3 5 Subcompact Board GENE KBU6 Appendix E Appendix E List of Mating Connectors and Cables...