
Programming Guide 1-11
ESG Family Signal Generators Preparing for Use
Overview of Serial Interface (RS-232) Programming
Serial Configuration for BASIC/UX
There is no capability in BASIC/UX for reading the hardware bit settings on either the
HP 98626 or HP 98644 Serial Interface cards. Therefore, BASIC/UX provides two methods
for configuring modem control options:
•The stty command from the HP-UX environment.
• The keyword CONTROL and registers directly related to the modem control options.
Of the two methods mentioned above, the best one to use while in the HP-UX environment
is the stty command. The reason for this is any modem control options set by using the
keyword CONTROL are lost when you leave BASIC/UX. However, if you prefer to change
these options while in the BASIC/UX environment, then read the subsequent section
“Using Program Control to Override Defaults” on page 1-12.
This section deals with the first method mentioned above which is the use of the stty
command from the HP-UX environment.
Defaults for the Serial Interface
When HP-UX is being booted up, the defaults for all serial interfaces are:
The above values are used by BASIC/UX as defaults, unless configured as explained in the
next section.
Some common serial interface configuration settings are:
Baud Rate 300
Bits per character 8
Parity Off
Stop bits 1
Baud Rate to 9600
Bits per character to 8
Parity to Odd and disabled
Stop bits to 1
Kommentare zu diesen Handbüchern