8.7.3
Jumper Setting:
J1:
I/O expansion bus, connect to J1 of 7188XC
J2:
I/O expansion bus, connect to J2 of 7188XC
J7:
Three channels of D/I or two channels of D/O
Jumper:
Select
D/I
or
D/O
function
D/I:
j4, j5,j6 select 2-3
(default setting)
D/O:
j4, j5, j6 select 1-2
8.7.4 Programming
DO
SetDio4Dir( 0
); //
Set
D/O
channel_1
SetDio14Dir( 0 );
// Set D/O channel_2
SetDio4Low();
// Turn D/O channel_1 OFF
SetDio14Low();
// Turn D/O channel_2 OFF
SetDio4High();
// Turn D/O channel_1 ON
SetDio14High();
// Turn D/O channel_2 ON
DI
Data = SetTo1Dir( 1
);
// Set D/I channel_1
Data = SetTo0Dir( 1 );
// Set D/I channel_2
Data = SetDio9Dir( 1 );
// Set D/I channel_3
Data = GetTo1Dir(
);
// Read D/I channel_1
Data = GetTo0Dir( );
// Read D/I channel_2
Data = GetDio9Dir( );
// Read D/I channel_3
I/O Expansion Bus for 7188X/7188E User’s Manual, Jan/2005 v1.5, 7PH-000-15---57