
Programming Guide 1-13
ESG Family Signal Generators Preparing for Use
Overview of Serial Interface (RS-232) Programming
Selecting the Baud Rate
In order to successfully transfer information between the interface card and a peripheral,
the interface and peripheral must be set to the same baud rate. A CONTROL statement to
register 3 (or 13 with 98644 interfaces) can be used to set the interface baud rate to any
one of the following values:
For example, to select a baud rate of 9600, the following program statement is used:
Use of values other than those shown may result in incorrect operation.
To verify the current baud rate setting, use a STATUS statement addressed to register 3.
All rates are in baud (bits/second).
Setting Character Format and Parity
CONTROL Register 4 overrides the Line Control switches that control parity and
character format. All bits in this table correspond to equivalent switch settings on the
HP 98626 and HP 98644 serial interface cards. A 1 is the same as set. To determine the
value sent to the register, add the appropriate values selected from the following table.
For example, to configure a character format of 8 bits per character, one stop bit, and
disabled parity, with XON/XOFF; use the following CONTROL statement:
300 1200 2400 4800 9600 19 200
1190 CONTROL Sc,3;9600
Table 1-6 Character Format and Parity Settings Handshake
Handshake
(Bits 7 & 6)
Parity Enable
(Bit 3)
Stop Bits
(Bit 2)
Character Length
(Bits 1 & 0)
01 Xon/Xoff
Bidirectional 11
Handshake Disabled
0 Disabled 0 One stop bit 11 Eight bits/char
1200 CONTROL Sc,4;IVAL(“10011”,2)
-or-
1200 CONTROL Sc,4;19
Comentarios a estos manuales