247
S:\HP8924C\USRGUIDE\BOOK\CHAPTERS\ibasic.fb
Chapter 6, IBASIC Controller
Interfacing to the IBASIC Controller using Serial Ports
Serial Port Information
The Test Set’s rear-panel RJ-11 connector has 6 conductors. (Note that this jack
appears the same as a common 4-conductor RJ-11 telephone jack, but the Test Set
jack uses 6 conductors). Three of the wires are designated as Serial I/O Port
address 9, and the other three wires are designated Serial I/O Port address 10 (also
referred to as Serial Port B). These select codes cannot be changed.
Serial Port 9. Serial Port 9 is used for developing and editing IBASIC programs
since it can be connected directly to the
IBASIC Command Line field. It can also
be used for data I/O from an IBASIC program. Settings can be changed from the
I/O CONFIGURE screen, using IBASIC commands executed from the
IBASIC
Command Line
field, or using IBASIC commands executed from an IBASIC
program.
Serial Port 10. Serial Port 10 is primarily used for data I/O from an IBASIC
program to a device-under-test- (DUT). Settings can be changed using IBASIC
commands executed from the
IBASIC Command Line field, or using IBASIC
commands executed from an IBASIC program but not from the I/O CONFIGURE
screen.
Reason for Two Serial Ports
A typical application uses serial port 10 to send and receive data to and from a
DUT and uses serial port 9 to print or log test results to a serial printer or PC.
In the program development environment, serial port 9 can be used to
communicate with the external PC or terminal, and serial port 10 can be
connected to a serial printer for generating program listings or as the destination
printer for the program itself. This is schematically shown in
figure 37 on page 250.
If simultaneous multiple serial I/O is not a requirement then only use serial port 9
as it can directly access the
IBASIC Command Line field.
For your convenience,
figure 36 on page 249 and table 30 on this page, show the
cables and adapters that are available from Hewlett-Packard for connecting
external devices to the Test Set’s serial I/O ports. See
figure 37 on page 250 for a
wiring diagram to construct your own cables. RJ-11 cables and adapters can be
wired several ways. If you buy a cable or adapter other than the HP parts listed in
table 30, verify the connections for the pins indicated, before connecting the
cables to the Test Set.