11-11
PC-510 user’s manual
EZ I/O
mov ax,0ef04h
mov di,00ffh /*port A: no change */
mov bx,8000h /*port B: bit 7=0, other bits unchanged*/
mov cx,0202h /*port C: bit 1=1, other bits unchanged*
mov dx,0ffffh
int 17h
}
Read EZ I/O 2
Function:
efh
Subfunction:
05h
Purpose:
To read from an EZ I/O port.
Calling registers:
AH
efh
AL
05h
xxxxxxxx
Data for port C
DX
ffffh
Return registers: Carry flag cleared if successful
AL
Port A data
AH
Port B data
BL
Port C data
Carry flag set if error
AL
Error code
Comments:
This function is used to read from the second EZ I/O
(i.e.,the EZ I/O that has the lower I/O address when
two EZ I/O chips are present on a board).
Programming Example:
/* Inline assembly code for Borland C++ 3.1 */
unsigned char aData, bData, cData;
asm {
mov ax,0ef05h
mov dx,0ffffh
int 17h
mov aData,al
mov bData,ah
mov cData,bl
}
≡
Opto-module rack interface
You can interface digital I/O lines to an 8-, 16-, or 24-position opto-module
rack. One end of the CMA-26 cable plugs into the EZ I/O connector and the
other plugs into an MPB-8, MPB-16, or an MPB-24 opto rack. Refer to the
MPB opto racks
data sheet for more information.
Summary of Contents for PC-510
Page 7: ...Notice to user PC 510 user s manual ...
Page 17: ...xii Contents PC 510 user s manual ...
Page 23: ...About this manual PC 510 user s manual ...
Page 25: ...Overview of Section 1 PC 510 user s manual ...
Page 35: ...2 2 Quick start PC 510 user s manual Figure 2 1 PC 510 component diagram ...
Page 45: ...2 12 Quick start PC 510 user s manual ...
Page 55: ...3 10 SETUP programs PC 510 user s manual ...
Page 59: ...4 4 Save and run programs PC 510 user s manual ...
Page 61: ...Overview of Section 2 PC 510 user s manual ...
Page 73: ...5 12 Serial ports PC 510 user s manual ...
Page 77: ...6 4 LPT1 parallel port PC 510 user s manual ...
Page 83: ...7 6 Console devices PC 510 user s manual ...
Page 119: ...13 8 CRTs and flat panels PC 510 user s manual ...
Page 123: ...14 4 GPS interface PC 510 user s manual ...
Page 125: ...15 2 PC 104 expansion PC 510 user s manual ...
Page 127: ...Overview of Section 3 PC 510 user s manual ...
Page 131: ...16 4 Watchdog timer and hardware reset PC 510 user s manual ...
Page 147: ...18 8 Transferring files remote disks PC 510 user s manual ...
Page 177: ...21 22 CPU power management PC 510 user s manual ...
Page 181: ...22 4 Troubleshooting PC 510 user s manual ...
Page 183: ...Overview of Section 4 PC 510 user s manual ...
Page 203: ...A 20 Technical data PC 510 user s manual ...
Page 231: ...B 28 Software utilities PC 510 user s manual ...