- 75 -
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 6Eh.
#include <stdio.h>
#include <dos.h>
#include <conio.h>
char APName[]=
“\t\tSPI-Q6700-LLVA DIO Testing Program\n”
“\t===========================================
\n” ;
char APHelp[]= “\n - Pass ‘A’ key for inver state of DIO GPIO”
“\n - Pass ‘Esc’ key for Exit”
“\n”
;
void main(void){
char getkey = 0;
// char DIOSTS=0;
// char tempJ=0;
// char tempA=0;
unsigned char GP2xVal,GP3xVal,GP1xVal;
clrscr(); //clear screen
printf(APName);
printf(APHelp);
outportb(0x2e, 0x87);
/* entry key*/
outportb(0x2e, 0x87); /* enable configuration */
outportb(0x2e, 0x07); /* point to logical device */
outportb(0x2e+1, 0x06); /* select logical device 6 */
Содержание SPI-Q6700-LLVA
Страница 1: ...SPI Q6700 LLVA PICMG 1 3 Full size SBC User s Manual Version 1 0 2012 08...
Страница 2: ...This page is intentionally left blank...
Страница 5: ...1 Introduction 1 Chapter 1 Introduction Chapter 1 Introduction...
Страница 15: ...11 Installation 2 Chapter 2 Installation Chapter 2 Installation...
Страница 32: ...This page is intentionally left blank...
Страница 33: ...29 BIOS 3 Chapter 3 BIOS Chapter 3 BIOS...
Страница 45: ...41 BIOS Serial Port This item allows you to enable disable Serial Port COM Serial Port 1 Configuration...
Страница 57: ...53 BIOS Boot Option 1 This item allows you to set the system boot priorities...
Страница 58: ...54 BIOS 3 5 Security You can set administrator password by Security menu...
Страница 72: ...This page is intentionally left blank...
Страница 73: ...69 Appendix Appendix Appendix...