If DIO14 is
HIGH
select D/I*8
D/I signals are come from J5
Select D/I*8 as following:
SetDio14Dir(0);
/* select DIO14 as D/O
*/
SetDio14High();
/*
select
D/I*8
*/
DiVal=inportb(BASE);
/* read D/I*8 (from J5)
*/
Select D/I*8 as following:
SetDio14Dir(0);
/* select DIO14 as D/O
*/
SetDio14Low();
/* select D/O*8
*/
outportb(BASE,DoVal);
/* set value of D/O*8 (to J5)
*/
DiVal=inportb(BASE);
/* D/O*8 read back
*/
I/O Expansion Bus for 7188X/7188E User’s Manual, Jan/2005 v1.5, 7PH-000-15---55