You must use the Micro$oft build environment, Visual C
and the proper
gpioctl.h
I/O control header file.
The BORG board occupies port addresses x300-x307 in the PC's I/O address space.
The addresses x300-x303 are reserved for special purposes.
You must build your ports in I/O address space x304-x307 like the port.c program below.
Correspondingly, the ports in the borg board must have the proper decoder to decode the I/O addresses.
To compile your program open a command window from the StartUp Menu by selecting
Programs >> Development Kits >> Windows 2000 DDK >> Free Build EnvironmentsThe example C program port.c can be compiled in the command window with
nmake port.exe
and the following
Makefile .
The corresponding "ports" and decoding logic should be in the schematic for R1. In the schematic the signal on bit 0 of the data bus is clocked into the flip-flop when the PC writes to x304. Bits 0 and 1 of the data bus are driven when the PC reads address x305.