DIGITAL-LOGIC AG
MSEP800 Manual V1.0G
111
12.2.4
24Bit Digital I/O Interface
Programming MSEP800 interface under Windows:
Please install the driver as described in
chapter 10.1.6
Programming of the Digital IO Interface is supported by resident driver and program examples of IO
operations, based on DeviceIoControl function.
Files:
MSEBXGPioctl.h contains definitions for IO codes.
MSEBXGPf.cpp and MSEBXGPf.h contains examples of subroutines which provide access to Digital IO
Interface via driver.
Functions (MSEBXGPf.cpp and MSEBXGPf.h ):
bool Open_MSEBXGP (void) - the first function, which must be called to create a link between Digital IO
Interface driver and user software. It returns “true”, if device was successfully opened, otherwise - “false”.
void Close_MSEBXGP (void) - the last function, which breaks a link between driver and user software.
void ControlOut(unsigned char addr, unsigned char dat) – function, which set direction of the ports A,B and
C.
To set PORTA as output you have to call ControlOut(1,1), as input ControlOut(1,0);
To set PORTB as output you have to call ControlOut(1,2), as input ControlOut(1,0);
To set PORTC as output you have to call ControlOut(1,4), as input ControlOut(1,0);
Note: Use mask to assign all ports direction, because ControlOut(1,1) set PORTA to output, but PORTB and
PORTC to input. For example: ControlOut(1,7) will set all ports to output.
void DigitalOutA(unsigned char dat); - this function provide digital output to the port 160h.
(DOS = outportb(0x160,b)).
unsigned char DigitalInA(void) - this function provide digital input from the port 160h.
(DOS = inportb(0x160)).
void DigitalOutB(unsigned char dat); - this function provide digital output to the port 260h.
(DOS = outportb(0x260,b)).
unsigned char DigitalInB(void) - this function provide digital input from the port 260h.
(DOS = inportb(0x260)).
void DigitalOutC(unsigned char dat); - this function provide digital output to the port 360h.
(DOS = outportb(0x360,b)).
unsigned char DigitalInC(void) - this function provide digital input from the port 360h.
(DOS = inportb(0x360)).
Summary of Contents for MICROSPACE MSEP800
Page 12: ...DIGITAL LOGIC AG MSEP800 Manual V1 0G 12 2 4 MSEP800 Blockdiagram...
Page 19: ...DIGITAL LOGIC AG MSEP800 Manual V1 0G 19...
Page 21: ...DIGITAL LOGIC AG MSEP800 Manual V1 0G 21 2 7 2 Side View...
Page 62: ...DIGITAL LOGIC AG MSEP800 Manual V1 0G 62 5 2 Connector Plan 5 2 1 MSEP800 V1 0...
Page 63: ...DIGITAL LOGIC AG MSEP800 Manual V1 0G 63...
Page 77: ...DIGITAL LOGIC AG MSEP800 Manual V1 0G 77 6 2 The Jumpers on MSEP800 V1 0...
Page 78: ...DIGITAL LOGIC AG MSEP800 Manual V1 0G 78...
Page 84: ...DIGITAL LOGIC AG MSEP800 Manual V1 0G 84...
Page 85: ...DIGITAL LOGIC AG MSEP800 Manual V1 0G 85...
Page 87: ...DIGITAL LOGIC AG MSEP800 Manual V1 0G 87...
Page 89: ...DIGITAL LOGIC AG MSEP800 Manual V1 0G 89...
Page 127: ...DIGITAL LOGIC AG MSEP800 Manual V1 0G 127 16 ASSEMBLINGS VIEW 16 1 MSEP800 V1 0...
Page 128: ...DIGITAL LOGIC AG MSEP800 Manual V1 0G 128...
Page 130: ...DIGITAL LOGIC AG MSEP800 Manual V1 0G 130...
Page 131: ...DIGITAL LOGIC AG MSEP800 Manual V1 0G 131...
Page 134: ...DIGITAL LOGIC AG MSEP800 Manual V1 0G 134...
Page 135: ...DIGITAL LOGIC AG MSEP800 Manual V1 0G 135...
Page 136: ...DIGITAL LOGIC AG MSEP800 Manual V1 0G 136 17 3 Assembling View of MSEP800 V0 3...
Page 137: ...DIGITAL LOGIC AG MSEP800 Manual V1 0G 137...
Page 138: ...DIGITAL LOGIC AG MSEP800 Manual V1 0G 138 This side left blank...