Chapter 9 121
Communication with External Equipment (Using the I/O Ports)
Using the I/O Ports
1. Chapter Title
2. Chapter Title 3. Chapter Title
9. Communication with
5. Chapter Title
Exernal Equipment
(Using the I/O Ports)
8-bit I/O port control commands
To output 8-bit data through the OUT0 to OUT7 lines, use the following command. Data is
outputted as 8-bit binary, assuming that OUT0 is LSB (least significant bit) and OUT7 is
MSB (most significant bit).
To read out 4-bit data through the IN0 to IN3 lines, use the following command. Data is
read out as 4-bit binary, assuming that IN0 is LSB and IN3 is MSB.
GPIB command “OUT8IO” on page 368
Instrument BASIC command “WRITEIO 15,0;”
GPIB command “INP8IO?” on page 319
Instrument BASIC command “READIO(15,0)”