User`s manual

SE110054 s Software Reference
There are no software drivers unique to the SE1100 expansion boards.
Since the SE1100 is driven by the digital outputs of the host controller it is
connected to, the drivers associated with the host controller๎‚’s digital
outputs will operate the relays on the SE1100.
The following sample program shows how to use the SE1100 with
Z-World๎‚’s BL1700 controller.
17SE1100.C
/* REL0 to U2, 0
REL1 to U2, 1
REL2 to U2, 2
REL3 to U2, 3
RET1 to RET2 to DC to BL1700, DCIN
GND to U2, GND
*/
#use vdriver.lib
#use eziobl17.lib
main(){
unsigned long t;
VDInit(); // hits watchdog periodically
eioBrdInit(0); // initialize board
while(1){
t = MS_TIMER;
printf("on\n");
while((MS_TIMER โ€“ t) < 1000L){
outport(0x4100, 1);
outport(0x4100, 3);
outport(0x4100, 5);
outport(0x4100, 7);
}
t = MS_TIMER;
printf("off\n");
while((MS_TIMER โ€“ t) < 1000L){
outport(0x4100, 0);
outport(0x4100, 2);
outport(0x4100, 4);
outport(0x4100, 6);
}
}
}