- 79 -
Appendix
Appendix D: Digital I/O Setting
Below are the source codes written in C, please take them for Digital I/O
application examples. The default I/O address is 4Eh/4Fh.
C language Code
#define SIO_ID
0x1010
#define SIO_INDEX
0x4E
#define SIO_DATA
0x4F
#define SIO_EN
0x87
#define SIO_DN
0xAA
#define LDN_ADDR
0x07
bool __fastcall TForm1::Check_ID(void)
{
DWORD iData;
SetPortVal(SIO_INDEX,SIO_EN,1); // SIO - Enable
SetPortVal(SIO_INDEX,SIO_EN,1);
SetPortVal(SIO_INDEX,SIO_EN,1);
SetPortVal(SIO_INDEX,0x01,1);
SetPortVal(SIO_INDEX,0x55,1);
SetPortVal(SIO_INDEX,0x55,1);
SetPortVal(SIO_INDEX,LDN_ADDR,1); // LDN - Configure Control
SetPortVal(SIO_DATA,0x04,1);
SetPortVal(SIO_INDEX,0x20,1); // ID Address
GetPortVal(SIO_DATA,&iData,1);
iID = iData;
SetPortVal(SIO_INDEX,0x21,1);
GetPortVal(SIO_DATA,&iData,1);
iID = ( iID << 8 ) + iData;
Label18->Caption = “ID : “ + IntToHex((int)iID,3);
Summary of Contents for EasyBoard-650E
Page 2: ...This page is intentionally left blank...
Page 5: ...1 Introduction 1 Chapter 1 Introduction Chapter 1 Introduction...
Page 13: ...9 Installation 2 Chapter 2 Installation Chapter 2 Installation...
Page 49: ...45 BIOS 3 Chapter 3 BIOS Chapter 3 BIOS...
Page 76: ...72 Appendix Appendix Appendix...