Other topics about Communication with External Devices
The E5052B 24 bit I/O port provides the ports for data I/O shown below.
Port Name |
Usage |
Data Structure |
Port A |
Output |
|
Port B |
Output |
|
Port C |
Input/Output |
|
Port D |
Input/Output |
|
Port E |
Input/Output |
|
Port F |
Output |
Signal direction (input/output) can be changed for the ports C, D, and D as shown in I/O ports and control signal lines. Thus, before the ports are used, the directions should be determined according to their usage.
To specify the signal direction for the ports C and D, use the following command. Direction for the port E depends on the setting for the ports C and D.
Port Name |
|
Port C |
:CONTrol:HANDler:C:MODE |
Port D |
:CONTrol:HANDler:D:MODE |
When the ports C, D, or E is configured to input ports, binary data represented with High(0)/Low(1) of each bit of the port will be read as decimal data.
To retrieve the data, use the following command as query:
Port Name |
Command |
Port C |
:CONTrol:HANDler:C[:DATA] |
Port D |
:CONTrol:HANDler:D[:DATA] |
Port E |
:CONTrol:HANDler:E[:DATA] |
To the ports A through F (the ports C, D, and E should be configured to output ports), binary data (decimal data when output data is specified with a command) represented with High(0)/Low(1) of each bit of the port can be output.
To output data, use the following command:
Port Name |
Command |
Port A |
:CONTrol:HANDler:A[:DATA] |
Port B |
:CONTrol:HANDler:B[:DATA] |
Port C |
:CONTrol:HANDler:C[:DATA] |
Port D |
:CONTrol:HANDler:D[:DATA] |
Port E |
:CONTrol:HANDler:E[:DATA] |
Port F |
:CONTrol:HANDler:F[:DATA] |