E m b e d d e d B o x
T K S - G 5 0 - Q M 7 7
AppendixE Digital I/O Ports
E - 5
E.4 Digital I/O Sample Program
**************************************************************************
// SuperIO relative definition (Please reference to Table 2)
#define SIOIndex 0x2E
#define SIOData 0x2F
#define DIOLDN 0x07
IOWriteByte(byte IOPort, byte Value);
IOReadByte(byte IOPort);
// DIO relative definition (Please reference to Table 3)
#define DirReg1 0xCE // GPIO1-GPIO4
#define DirReg2 0xCF // GPIO5-GPIO8
#define InputPin 0x00
#define OutputPin 0x01
#define StatusReg1 0xA06 // GPIO1-GPIO4
#define StatusReg2 0xA07 // GPIO5-GPIO8
#define PinLow 0x00
#define PinHigh 0x01
#define Pin1Bit 0x00
#define Pin2Bit 0x01
#define Pin3Bit 0x02
#define Pin4Bit 0x03
#define Pin5Bit 0x04
#define Pin6Bit 0x05
#define Pin7Bit 0x06
#define Pin8Bit 0x07
**************************************************************************
**************************************************************************
VOID
Main
(){
Boolean PinStatus ;
// Procedure : AaeonReadPinStatus
// Input :
//
Example, Read Digital I/O Pin 3 status
// Output :
Содержание TKS-G50-QM77
Страница 7: ...Embedded Box T K S G 5 0 Q M 7 7 Chapter 1 General Information 1 1 General Chapter 1 Information...
Страница 12: ...Embedded Box T K S G 5 0 Q M 7 7 Chapter 2 Quick Installation Guide 2 1 Quick Installation Chapter 2 Guide...
Страница 14: ...Embedded Box T K S G 5 0 Q M 7 7 Chapter 2 Quick Installation Guide 2 3 2 2 Mechanical Drawing of TKS G50 QM77...
Страница 38: ...Embedded Box T K S G 5 0 Q M 7 7 Chapter 3 AMI BIOS Setup 3 1 AMI Chapter 3 BIOS Setup...
Страница 82: ...Embedded Box T K S G 5 0 Q M 7 7 Chapter 4 Driver Installation 4 1 Driver Chapter 4 Installation...
Страница 98: ...Embedded Box T K S G 5 0 Q M 7 7 Appendix B I O Information B 1 I O Information Appendix B...
Страница 99: ...SubCompact Board T K S G 5 0 Q M 7 7 Appendix B I O Information B 2 B 1 I O Address Map...
Страница 100: ...Embedded Box T K S G 5 0 Q M 7 7 Appendix B I O Information B 3...
Страница 101: ...SubCompact Board T K S G 5 0 Q M 7 7 Appendix B I O Information B 4 B 2 Memory Address Map...
Страница 102: ...Embedded Box T K S G 5 0 Q M 7 7 Appendix B I O Information B 5 B 3 IRQ Mapping Chart B 4 DMA Channel Assignments...
Страница 103: ...Embedded Box T K S G 5 0 Q M 7 7 Appendix C Mating Connector C 1 Mating Connector Appendix C...
Страница 106: ...Embedded Box T K S G 5 0 Q M 7 7 Appendix D AHCI Setting D 1 AHCI Setting Appendix D...
Страница 110: ...Embedded Box T K S G 5 0 Q M 7 7 AppendixE Digital I O Ports E 1 Digital I O Ports Appendix E...