HP E2261A User Manual

Quad serial m-module
Table of Contents

Advertisement

Quick Links

HP E2261A Quad Serial M-Module User's Manual
Warranty ....................................................................................................................... 7
Safety Symbols ............................................................................................................. 8
WARNINGS................................................................................................................. 8
Declaration of Conformity ............................................................................................ 9
Reader Comment Sheet .............................................................................................. 11
Getting Started ............................................................................................................. 13
What is in this Manual? .............................................................................................. 13
HP E2261A Description ............................................................................................. 13
Installing the Module .......................................................................................... 14
Wiring and Configuration ........................................................................................... 14
SCPI Programming ..................................................................................................... 19
Example 1: Reset, Self Test, Module ID ............................................................ 19
Example 2: Reading and Writing Data ............................................................... 21
Chapter 3
SCPI Command Reference ......................................................................................... 23
DIAGnostic Subsystem............................................................................................... 26
DIAGnostic:LINE? ............................................................................................. 27
DIAGnostic:SERial[1|2|3|4]:RECeive:AVAilable? ............................................ 27
DIAGnostic:SERial[1|2|3|4]:RECeive:CHANnel? ............................................. 27
DIAGnostic:SERial[1|2|3|4]:STATus ................................................................. 27
DIAGnostic:SERial[1|2|3|4]:TRANsmit:BUFFerstatus ...................................... 27
DIAGnostic:SERial[1|2|3|4]:TRANsmit:CHANnel? .......................................... 28
SENSe Subsystem....................................................................................................... 29
SENSe:SERIAL[1|2|3|4][:TEXT?] [n] ................................................................ 29
SENSe:SERIAL[1|2|3|4]:DATA? [n] .................................................................. 30
SOURce Subsystem .................................................................................................... 31
STATus Subsystem..................................................................................................... 32
STATus:OPERation:CONDition? ...................................................................... 34
STATus:OPERation:ENABle? ........................................................................... 34
STATus:OPERation[:EVENt]? ........................................................................... 35
STATus:PRESet .................................................................................................. 35
STATus:QUEStionable:CONDition? ................................................................. 36
STATus:QUEStionable:ENABle? ...................................................................... 36
STATus:QUEStionable[:EVENt]? ...................................................................... 37
Contents
Contents
3

Advertisement

Table of Contents
loading

Summary of Contents for HP E2261A

  • Page 1: Table Of Contents

    Contents HP E2261A Quad Serial M-Module User’s Manual Edition 1 Warranty ........................7 Safety Symbols ......................8 WARNINGS......................... 8 Declaration of Conformity .................... 9 Reader Comment Sheet ....................11 Chapter 1 Getting Started ......................13 What is in this Manual? ....................13 HP E2261A Description .....................
  • Page 2 SYSTem Subsystem ....................38 SYSTem . . . :CONTrol:CTS 0 | 1 | OFF | ON ........... 39 SYSTem . . . :CONTrol:CTS? ................39 SYSTem . . . :CONTrol:DSR 0 | 1 | OFF | ON ........... 40 SYSTem . . . :CONTrol:DSR? ................40 SYSTem .
  • Page 3 Addressing A24 Registers ................... 61 A16 Memory Registers ..................61 A24 Memory Registers ..................64 Program Example ....................... 87 Appendix A HP E2261A Specifications ................... 89 M-Module Specification Compliance................. 89 Capabilities ......................... 89 HP E2261A Specifications ..................89 Appendix B RS-232 Cables ......................
  • Page 4 Contents...
  • Page 5: Edition 1

    This Hewlett-Packard product is warranted against defects in materials and workmanship for a period of three years from date of shipment. Duration and conditions of warranty for this product may be superseded when the product is integrated into (becomes a part of) other HP products.
  • Page 6: Safety Symbols

    Documentation History All Editions and Updates of this manual and their creation date are listed below. The first Edition of the manual is Edition 1. The Edition number increments by 1 whenever the manual is revised. Updates, which are issued between Editions, contain replacement pages to correct or add additional information to the current Edition of the manual.
  • Page 7: Declaration Of Conformity

    Supplementary Information: The product herewith complies with the requirements of the Low Voltage Directive 73/23/EEC and the EMC Directive 89/336/EEC and carries the "CE" mark accordingly. Tested in a typical configuration in an HP C-Size VXI mainframe. April 30, 1997...
  • Page 8 Notes:...
  • Page 9: Reader Comment Sheet

    Please fold and tape for mailing Reader Comment Sheet HP E2261A Quad RS-232 Interface M-Module User’s Manual & SCPI Programming Guide Edition 1 You can help us improve our manuals by sharing your comments and suggestions. In appreciation of your time, we will enter you in a quarterly drawing for a Hewlett-Packard Palmtop Personal Computer (U.S.
  • Page 11: Chapter 1 Getting Started

    The HP E2261A is intended to be installed and used on an M-Module Carrier (such as the HP E2251). For specific information about installing and using the HP E2261A M-Module in an HP carrier, refer to the carrier’s manual(s). HP E2261A Description The HP E2261A provides four full-duplex (asynchronous) RS-232 Data Terminal Equipment (DTE) ports on one M-Module.
  • Page 12: Installing The Module

    Installing the If you are installing the HP E2261A in an HP M-Module carrier, such as the HP E2251, refer to the carrier’s user manual for complete installation Module instructions. Note The HP E2261A may not fit properly in either of the two interior slots (M4 or M5) of an HP E2251 Carrier if you use the optional HP E2261-61601 cable.
  • Page 13 Port 1 Port 2 Port 3 Port 4 Figure 1-1. Ports on the HP E2261A Quad RS-232 Port M-Module Table 1-1. HP E2261A Quad RS-232 Port M-Module Connector Pin Definitions HP E2261A Quad RS-232 M-Module Port 1 Port 2 Port 3...
  • Page 14 31 - 44 on the 44-pin M-Module connector Port 1 only. this connects the shield to the VXI chassis (earth ground). Port 2 Port 3 Port 4 Figure 1-2. Optional Cable Wiring for HP E2261A 16 Getting Started...
  • Page 15 1. If necessary, disassemble the connector hood. Discard the three self-tapping screws supplied with the hood. 2. Release the latch on the side of the hood. 3. Assemble bezel and cable clamp before wiring cable to connector. 6. Assemble connector, cable 4.
  • Page 16 18 Getting Started...
  • Page 17: Chapter 2 Scpi Programming

    Visual C++ but should compile under any standard ANSI C compiler. To run the programs you must have the HP SICL Library, the HP VISA extensions, and an HP 82340 or 82341 HP-IB module installed and properly configured in your PC. An HP E1406 Command Module is required.
  • Page 18 /* Open the Module instrument session */ errStatus = viOpen(viRM,INSTR_ADDR, VI_NULL,VI_NULL,&E2261A); if(VI_SUCCESS > errStatus){ printf(“ERROR: viOpen() returned 0x%x\n”,errStatus); return errStatus;} /* Set Timeout Value for *RST and Self Test */ viSetAttribute (E2261A,VI_ATTR_TMO_VALUE,10000); /* Reset the Module */ errStatus = viPrintf(E2261A, “*RST\n”);...
  • Page 19: Example 2: Reading And Writing Data

    The following program demonstrates how to write data to a standard (dumb) RS-232 terminal and how to read data from the terminal. The program sets Reading and the HP E2261A Port 1 to the following (default) parameters: Writing Data •...
  • Page 20 /* Send Text String, can be up to 256 characters */ errStatus = viPrintf(E2261A,”SOUR:SER1:TEXT \”%s\”\n”,”This is a text string.”); if (VI_SUCCESS > errStatus) { printf(“ERROR: viPrintf() returned 0x%x\n”,errStatus); return errStatus;} /* Receive Text from Terminal */ errStatus = viQueryf(E2261A,”SENS:SER1:TEXT?\n”,”%t”,Return_String); if (VI_SUCCESS > errStatus) { printf(“ERROR: viPrintf() returned 0x%x\n”,errStatus);...
  • Page 21: Scpi Command Reference

    Chapter 3 SCPI Command Reference General Information This chapter describes how to use and program the HP E2261A Quad RS-232 Port M-Module with the Standard Commands for Programmable Instruments (SCPI). This chapter includes example programs and a complete SCPI Command Reference.
  • Page 22 Command Separator A colon (:) always separates one command from the next lower level command as shown below: SYStem[:COMMunicate]:SERial[1|2|3|4]:CONTrol:CTS Colons separate the root command from the second level command (SYStem:COMMunicate) and the second level from the third level (COMMunicate:SERial). Abbreviated Commands The command syntax shows most commands as a mixture of upper and lower case letters.
  • Page 23 Command Parameters The following table contains explanations and examples of parameter types you might see later in this chapter. Parameter Type Explanations and Examples Numeric Accepts all commonly used decimal representations of number including optional signs; decimal points; and scientific notation. 123;...
  • Page 24: Diagnostic Subsystem

    :CHANnel ENABle | DISAble :CHANnel? DIAGnostic:LINE < interrupt_line > Sets the VXIbus interrupt line the HP E2261A M-Module will use and allows you to enable/disable interrupts. You should not need to modify the default value (line 1). Note The VXIbus Interrupt Line is controlled by the VXIbus M-Module carrier, NOT by the M-Module.
  • Page 25: Diagnostic:line

    DIAGnostic:LINE? Returns the value of the interrupt line of the HP E2261A as an integer between 0 and 7. The power-on, reset is line 1. DIAGnostic:SERial[1|2|3|4]:CLEARbuffer TX | RX | TXRX Clears the transmit buffers, receiver buffers, or both for the specified port. Specify...
  • Page 26: Diagnostic:serial[1|2|3|4]:Transmit:channel Enable | Disable

    DIAGnostic:SERial[1|2|3|4]:TRANsmit:CHANnel ENABle | DISAble Enables or disables the UART transmitter for the specified port. Note that all transmitters are enabled at power-on or reset. A disabled transmitter is automatically enabled when an attempt is made to transmit data. DIAGnostic:SERial[1|2|3|4]:TRANsmit:CHANnel? Returns the current status of the specified port’s UART transmitter. The command returns the string “ENAB”...
  • Page 27: Sense Subsystem

    SENSe Subsystem The SENse subsystem receives data from an external device and sends it to the host (system) computer. The port to be affected by the command is specified by the port number after the :SERial command (i.e. :SERial1 is Port 1, :SERial2 is Port 2, etc.).
  • Page 28: Sense:serial[1|2|3|4]:Data? [N]

    SENSe:SERIAL[1|2|3|4]:DATA? [ n ] This command receives either a binary block of information or ASCII text from the external device. The command stores the binary data in a buffer until a terminating condition is reached. When the terminating condition is reached, the binary data is sent to the host (system) computer.
  • Page 29: Source Subsystem

    This command sends a quoted ASCII text string from the host computer through the specified HP E2261A port to an external device. Only the text string is sent, the quotation marks are not sent (to send a quotation mark, use the SOURce:SERial[ ]:DATA command).
  • Page 30: Status Subsystem

    STATus Subsystem The STATus subsystem controls the SCPI-defined Operation and Questionable Status registers, Standard Event register, and the Status Byte register. Each is comprised of a condition register, an event register, an enable mask, and transition filters. Note Transition filters are always set for positive edge transitions. When an event occurs, the condition is set and the event register bit is set true.
  • Page 31 Interrupt Figure 3-1. HP E2261A Status System Register Diagram SCPI Command Reference...
  • Page 32: Status:operation:condition

    STATus:OPERation:CONDition? Returns the value of the Operation Status Condition Register as a signed 16 bit integer. Parameters None • Comments *RST clears all Status Operation Conditions. • *CLS does not affect the contents of the of the Status Operation Conditions. •...
  • Page 33: Status:operation[:Event]

    STATus:OPERation[:EVENt]? Returns the value of the Operation Status Event Register as a signed 16 bit integer and then clears the register to 0. Parameters None • Comments *RST does not affect the contents of the Status Operation Event Register. • *CLS clears the contents of the Status Operation Event Register.
  • Page 34: Status:questionable:condition

    STATus:QUEStionable:CONDition? Always returns a 0. Note The Questionable Status Condition, Event, and Enable registers exist for SCPI compliance only. No status bits are defined or reported in these registers. Parameters None • Comments No bits are defined. • *RST clears all Status Questionable Conditions. •...
  • Page 35: Status:questionable[:Event]

    STATus:QUEStionable[:EVENt]? Returns the value of the Questionable Status Event Register as a signed 16 bit integer and then clears the register to 0. Parameters None • Comments The following bits are defined: Bit # Not Used Port 1 Port 2 Port 3 Port 4 Not Used...
  • Page 36: System Subsystem

    SYSTem Subsystem The SYSTEM command subsystem configures the RS-232 ports. The port to be affected by the command is specified by the port number after the command :SERial (i.e. :SERial1 is Port 1, :SERial2 is Port 2, etc.). If a port number is not specified, Port 1 is defaulted (that is :SERial is the same as...
  • Page 37 [:PROTocol]? :ERRor? :VERsion? ... commands set and/or modify the SYStem:COMMunicate:SERial[1|2|3|4]: configuration of the serial ports on the HP E2261A. The port to be affected by the command is specified by the port number after the command (i.e. :SERial :SERial1 is Port 1, is Port 2, etc.).
  • Page 38 When the input buffer reaches the :STOP threshold, DTR becomes unasserted. When the number of bytes has reduced to the :STARt threshold, DTS becomes asserted again. The HP E2261A monitors DSR and CTS and stops transmission if either line becomes unasserted.
  • Page 39: System

    While the input buffer is not yet at the :STOP threshold RTS is asserted indicating the HP E2261A is ready to receive. When the input buffer reaches the :STOP threshold, RTS becomes unasserted. When the number of bytes in the buffer drops to the :START threshold, RTS becomes asserted again.
  • Page 40: System

    SYSTem . . . :MODE NORMal | ECHO | LLOOP | RLOOP Sets the specified port’s operating mode. The NORMal mode is the power-on, reset default. • ECHO sets the auto-echo mode where the UART receives data and echoes the data back.
  • Page 41: System

    SYStem:COMMunicate:SERial[1|2|3|4][:RECeive]:BLOCKsize receive data frame. Each port of the HP E2261A has a 2kByte FIFO and a 16kByte SRAM receive buffer. When the HP E2261A receives data from the external device, it passes the data from the UART to the SRAM receive buffer. When the FIFO is empty, and the amount of data in the receive buffer is equal to or greater than the <...
  • Page 42: System

    SYSTem . . . [:RECeive]:PACE:THReshold:STARt <characters> SYSTem:COMMunicate:SERial[1|2|3|4][:RECeive]:PACE:THReshold:STARt configures the specified port’s input buffer level. When the number of characters in the input buffer drops to or goes below the specified value, and pacing has been established, the port will indicate it is ready to receive more data. Parameters Parameter Name Parameter Type...
  • Page 43 SYSTem . . . [:RECeive]:PACE:THReshold:STOP <characters> SYSTem:COMMunicate:SERial[1|2|3|4][:RECeive]:PACE:THReshold:STOP configures the specified port’s input buffer level. When the number of bytes in the input buffer goes to or above the specified value, and pacing has been established, the port will indicate that it is not ready to receive new data. Parameters Parameter Name Parameter Type...
  • Page 44 SYSTem . . . [:RECeive]:PARity:CHECk 0 | 1 | OFF | ON controls SYSTem:COMMunicate:SERial[1|2|3|4][:RECeive]:PARity:CHECk whether or not the parity bit in received serial data frames will be considered significant. When ...PARity:CHECk is set to 0 or , received data is not checked for correct parity.
  • Page 45: System

    SYSTem . . . [:RECeive]:SBITs 1 | 1.5 | 2 sets the number of stop SYSTem:COMMunicate:SERial[1|2|3|4][:RECeive]:SBITs bits to be used to transmit and receive data. SYSTem . . . [:RECeive]:SBITs? returns the current stop SYSTem:COMMunicate:SERial[1|2|3|4][:RECeive]:SBITs? bit setting. SYSTem . . . :TERMinator:TRANsmit CR | LF | CRLF | NONE | <NRf> This command defines a termination character for the specified port’s transmit operations.
  • Page 46: System

    SYSTem . . . :TERMinator:RECeive CR | LF | CRLF | NONE | <NRf> This command defines a termination character for the specified port’s receive operations. The port to be affected by the command is specified by the port number after the :SERial command (i.e.
  • Page 47: System

    SYSTem . . . :TERMinator:TIMEout < timeout > This command sets the termination timeout. If one SENSe:SERial[1|2|3|4]:TEXT? command cannot be completed within the timeout SENSe:SERial[1|2|3|4]:DATA? period, the data that was received is sent to the host computer. If one command SOURce:SERial[1|2|3|4]:TEXT? SOURce:SERial[1|2|3|4]:DATA? cannot be completed within the timeout period, the command is aborted and a...
  • Page 48: System

    SYSTem:VERSion? The SYSTem:VERSion? returns the SCPI version to which the HP E2261A complies. The decimal value returned is in the form: YYYY.V where YYYY is the year and V is the version number within that year.
  • Page 49: Ieee 488.2 Common Command Reference

    Wait to Complete. Note . . . These commands apply to VXI instruments as well as M-Modules. See the HP 75000 Series C E1400/E1401 Mainframe User's Manual or the ANSI/IEEE Stan- dard 488.2-1987 for more information about these commands. Refer to the individ- ual M-Module or VXI instrument user manual for details on IEEE 488.2 Common...
  • Page 50: Scpi Command Quick Reference

    SCPI Command Quick Reference Command Subsystem Description See Also DIAGnostic:LINE <interrupt_line> Sets interrupt level between 0 and 7. page 26 :LINE? Returns interrupt level value. page 27 :SERial[1|2|3|4] :CLEARbuffer TX | RX | TXRX Clears the transmit buffer, receiver buffer, or both. page 27 :RECeive ÄVAilable?
  • Page 51 Command Subsystem Description See Also SYSTem[:COMMunicate]:SERial[1|2|3|4] :CONTrol :CTS 0 | 1 | OFF | ON Enables/Disables Clear to Send (CTS) handshake mode. page 39 :CTS? Returns current state of CTS handshake mode. page 39 :DSR 0 | 1 | OFF | ON Enables/Disables Data/Set Ready (DSRT) handshake mode.
  • Page 52 54 SCPI Command Reference...
  • Page 53: Register Programming Information

    This section also defines several terms used in this chapter. In this discussion, receiver is used to describe the HP E2261A receiving data from an external source and sending it to the host computer (VXI system Controller); transmitter describes the HP E2261A receiving data from the host computer and transmitting it to the external device.
  • Page 54: Programming The Microcontroller

    At power-on or reset, the HP E2261A sets the default baud rate and data format for each port; both transmitter and receiver for each port is disabled. The host computer (VXI controller) must START/STOP specific port(s) to receive or transmit. The host computer can CLOSE a port without using the disable command.
  • Page 55 3. When the amount of data in the buffer is greater than the defined BLOCK size, or if the amount of data in the buffer is less than a full BLOCK and the BLOCK timeout occurs, the M-Module microcontroller moves the data from the buffer to the Receiver FIFO memory —...
  • Page 56: Transmitter Operation

    ). If the Close Port Command is executed, all of the data stored in the FIFO is lost. New data cannot be loaded in the FIFO if the port is disabled. Transmitter FIFO HP E2261A 2kByte Quad UART 8 Bytes Figure 4-3.
  • Page 57: Register Addressing In The Vxibus Environment

    The HP E2251 Carrier provides a logical address for each installed M-Module. Refer to the HP E2251 Carrier Installation and Wiring Manual and the HP E2251 User’s Manual for details. If you are using a different carrier, refer to that carrier’s documentation for register-based addressing information.
  • Page 58: Determining A Module's A16 Base Address

    = 1FDE00 or (decimal) 2,080,768 + (120 * 64) = 2,080,768 + 7680 = 2,088,448 When an HP Command Module is not a part of your VXIbus system (see Figure 4-4), the M-Module’s base address is computed as: C000 + (LADDR...
  • Page 59: A16 Memory Registers

    + 20 = 200120 or (decimal) 2,097,408 + 32 = 2,097,440 A16 Memory When the HP E2261A Quad RS-232 Interface M-Module is used with an HP E2251 Carrier, the Carrier provides the following registers in A16 VXI Registers memory: •...
  • Page 60 Register that a SCPI command has completed. These interrupts are sent to and acknowledged by the HP Command Module or other system controller via one of seven VXI backplane interrupt lines. Different controllers treat the interrupt lines differently, and you should refer to your controller’s documentation to determine how to set the interrupt level.
  • Page 61 b+20 Write Reserved INTC VXI Interrupt Line Read Reserved INTC VXI Interrupt Line (default value) If your controller’s documentation instructs you to change the interrupt level, you need to specify the level in the VXI Interrupt Selection Register. To cause the M-Module to interrupt on one of the VXI interrupt lines, write to the appropriate bits (refer to table below).
  • Page 62: A24 Memory Registers

    (D0 - D7). A cause/status byte is also placed on the data bus (D15 - D8) A24 Memory The HP E2261A has the following registers in A24 memory: Registers • Status Register at address 00 •...
  • Page 63 Status Register The Status Register is a read only register at address 00 (MSB) and 01 (LSB) in A24 memory. The default value of this register 01 b+00 Write Undefined Read Not used IREQ3 IREQ2 IREQ1 IREQ0 CPRDY • CPRDY: Command/Parameter Ready. A “1” in this bit indicates that the Command and Parameter registers are empty and available for the next command from the host controller.
  • Page 64 The Command / Response Register is a read/write register at address 20 A24 memory. This register is used to exchange commands and data between Register the host controller and the microcontroller on the HP E2261A M-Module. The default value (at power-on) of this register is 00 b+20...
  • Page 65 Query Test Value Command, xx 00 This command is used for test and debugging. Set test values in PARM0 and PARM1 with the Set Command Test Value Command (20 ) and then read them back with this command. The test values have no special meaning and are any values you want to use.
  • Page 66 Query Data Transfer Parity Mode Command, xx 03 This command returns a code representing the data transfer parity mode. To set the parity mode, use the Set Data Transfer Parity Mode Command (23 Set Parameters: PARM0: none; PARM1: none Result Parameters: PARM0: parity mode code;PARM1: none Default/Reset Value: PARM0: 04 PARM1: 00 Parity Mode Code...
  • Page 67 Query RTS/CTS Mode Command, xx 06 This command returns a code representing the RTS/CTS Mode. To set the RTS/CTS mode, use the Set RTS/CTS Mode Command (26 Set Parameters: PARM0: none; PARM1: none Result Parameters: PARM0: RTS/CTS Mode code;PARM1: CTS Monitor. Default/Reset Value: PARM0: 00 PARM1: 00 PARM0 Code...
  • Page 68 Query BLOCK Size Command, xx 09 This command returns a code representing the BLOCK size. The PARM0 and PARM1 registers are both 16-bit registers. The lower 12 bits of each register express the BLOCK length from 1 to 2048 bytes. The upper four bits are not used.
  • Page 69 Query Filled Number in Receiver FIFO Command, xx 0C This command returns an unsigned integer representing the amount of data in the receiver FIFO when the host received an interrupt. Set Parameters: PARM0: none; PARM1: none Result Parameters: PARM0: FIFO Low Byte;PARM1: FIFO High Byte (lower 3 bits) Default/Reset Value: PARM0: 00 PARM1: 00...
  • Page 70 Query Error Mode Command, xx 13 This command returns a value representing the established error mode. For actual error code refer to the Query Error Code Command (0D ) command. To set the error mode, refer to the Set Error Mode Command (33 command.
  • Page 71 Set Command Test Value Command, xx 20 This command is used for test and debugging. Set test values in PARM0 and PARM1 with this command and then read them back with the Query Command Test Value Command (00 ). The test values have no special meaning and are any values you want to use.
  • Page 72 Set Data Transfer Parity Mode Command, xx 23 This command sets the data transfer parity mode. To read the current parity mode, use the Query Data Transfer Parity Mode Command (03 Set Parameters: PARM0: parity mode code;PARM1: none Default/Reset Value: PARM0: 04 (none) PARM1: 00 Parity Mode Code...
  • Page 73 Set RTS/CTS Mode Command, xx 26 This command sets the RTS/CTS Mode. To read the current RTS/CTS mode, use the Query RTS/CTS Mode Command (06 Set Parameters: PARM0: RTS/CTS Mode code;PARM1: CTS Monitor. Default/Reset Value: PARM0: 00 PARM1: 00 PARM0 Code RTS/CTS Mode PARM1 Code CTS Monitor...
  • Page 74 Local Loop Auto-Echo Remote Loop Where: Normal In this mode, the HP E2261A has the transmitter and receiver operating independently. Auto-Echo This mode sets the port to retransmit data automatically. The following conditions are true: 1. Received data is clocked and retransmitted on the TX output.
  • Page 75 Remote Loopback In this mode, the following are true: 1. Received data is reclocked and transmitted on the TxD output. 2. The receiver clock is used for the transmitter. 3. The received data is not transferred to the host, and error status conditions are inactive.
  • Page 76 Clear Receiver Buffer Command, xx 2F This command clears the receiver buffer but not the receiver FIFO memory. Set Parameters: PARM0: 0;PARM1: none Clear Transmitter FIFO Command, xx 30 This command clears the transmitter FIFO memory. The host computer should stop sending data to the transmitter FIFO. Set Parameters: PARM0: 0;PARM1: none Open Port Command, xx 31...
  • Page 77 When the number of bytes in the receiver buffer drops to or below the Start Threshold, and some form of pacing has been set, the HP E2261A indicates it is ready to receive. The Start threshold must be less than the Stop Threshold.
  • Page 78 This command sets the Stop threshold value which controls the buffer space. When the number of characters in the receiver buffer goes above the Stop Threshold value, and some form of pacing has been set, the HP E2261A indicates it is not ready to receive data. You can set Stop Threshold anywhere in the 16kbyte buffer space, but it must never be equal to 0.
  • Page 79 Query Self Test Result Command, C0 This command retruns an unsigned integer with the results of the self test. To initiate a self test, use the Start Self Test Command (E0 Set Parameters: PARM0: none; PARM1: none Result Parameters: PARM0: self test code;PARM1: none Port 4 Port 3 Port 2...
  • Page 80 At power-on / reset, all bits are set to 0. Command Status The Command Status Register is a read-only register at address 26 . The register indicates the status of the HP E2261A M-Module microcontroller. Register The default value (at power-on) of this register is 01 b+26...
  • Page 81 Interrupt Generation The four Interrupt Generation Registers are read/write registers at addresses for Port 1, 2A for Port 2, 2C for Port 3, and 2E for Port 4. Registers b+28 b+2A b+2C b+2E Write Not Used Read Not used After the host computer writes to this register, a self-generated interrupt occurs.
  • Page 82 Port Interrupt Status / The Interrupt Status / Control registers are read/write registers at addresses for Port 1, 3A for Port 2, 3C for Port 3, or 3E for Port 4. If a port has Control Registers an interrupt request, the host controller can read the respective register to determine the cause of the interrupt.
  • Page 83 port. • ETE: When set to a “1”, this bit enables the Transmit FIFO Empty Interrupt for the port. • ERT: When set to a “1”, this bit enables the Receive Time-out Interrupt. • ERF: When set to a “1”, this bit enables the Receive FIFO Filled Interrupt for the port.
  • Page 84 EEPROM Register. A16 addressing is discussed earlier in this chapter. Do NOT attempt to read the ID EEPROM. Do not attempt to read the EEPROM Registers. b+80 - b+FE Write Unused Read EDIO (default value) Bit Definitions EDIO -- EEPROM Serial Data. ESK -- EEPROM Shift Clock ECS -- EEPROM Chip Select Table 4-1.
  • Page 85: Program Example

    Offset Registers. This program was written and tested in Microsoft Visual C++ but should compile under any standard ANSI C compiler. To run this program you must have the HP SICL library, the HP VISA library, an HP-IB interface module installed in your PC, and an HP E2406 Command Module.
  • Page 86 /* read and print the module’s Status Register */ errStatus = viIn16(m_mod,VI_A16_SPACE,0x04,&stat_reg); if (VI_SUCCESS > errStatus){ printf(“ERROR: viIn16() returned 0x%x\n”,errStatus); return errStatus;} printf(“Status register = 0x%hx\n”, stat_reg); /* read and print the module’s A24 Offset Register */ errStatus = viIn16(m_mod,VI_A16_SPACE,0x06,&a24_offset); if (VI_SUCCESS >...
  • Page 87: Hp E2261A Specifications

    • A08, D16 accesses • INTC interrupts • IDENT capability Note: Because of the HP E2261A’s thickness, it is not guaranteed to fit in a non-HP M-Module carrier. Capabilities The following list describes the HP E2261A’s serial communication capabilities: •...
  • Page 88: 90 Hp E2261A Specifications

    90 HP E2261A Specifications...
  • Page 89 Note Use the HP E2261-61601 cable to separate the four RS-232 ports on the M-Module. The HP E2261A uses the DTR, TD, RD, RTS, CTS, DSR, and Ground lines only. Many of the cables listed in this appendix have status lines that will not be used.
  • Page 90: 92 Rs-232 Cables

    5181-6639 2.5m (8ft 2.5in) a.One of four adapters in the HP 34399A RS-232 Adapter Kit. Kit includes four adapters to go from DB9 Female Cable (HP 34398A) to PC/Printer DB25 male or female, or to modem DB9 Female or DB25 Female.
  • Page 91 RS-232 Cables...
  • Page 92 94 RS-232 Cables...
  • Page 93 RS-232 Cables...
  • Page 94 24542U 5181-6641 Cable Adapter (Black) Instrument DB25 DB25 Male Female Female Male Female Male 24542U 5181-6640 Cable Adapter (White) Instrument PC/Printer DB25 DB25 Male Female Female Male Male Female 24542U 5181-6642 Cable Adapter (Gray) Instrument Modem DB25 DB25 Male Female Female Male Male...
  • Page 95 F1047-80002 5181-6641 Cable Adapter (Black) Instrument DB25 DB25 Male Female Female Male Female Male F1047-80002 5181-6640 Cable Adapter (White) Instrument PC/Printer DB25 DB25 Male Female Female Male Male Female F1047-80002 5181-6642 Cable Adapter (Gray) Instrument Modem DB25 DB25 Male Female Female Male Male...
  • Page 96 98 RS-232 Cables...
  • Page 97 Index Symbols Command abbreviated *CLS common *ESE implied *ESE? linking *ESR? , 22, *IDN? parameter *OPC separator *OPC? types *RCL Command Quick Reference , 21, *RST , 23, Common Commands *SAV Compliance, M-Module specification *SRE *SRE? CTS? *STB? *TRG , 21, 22, *TST? DATA *WAI...
  • Page 98 Query Stop Bit Length Command Query Transmitter Baud Rate Command ID string, reading Query Xoff Start Threshold Command , 23, IEEE 488.2 Common Commands Query Xoff Stop Threshold Command Implied Command Query Xon/Xoff Mode Command Initial operation Quick Reference, SCPI Command Linking Commands , 42, Rate, Baud...
  • Page 99 STATus SYSTem . . .[:RECeive]:BLOCKsize SYSTem . . .[:RECeive]:BLOCKsize? OPERation SYSTem . . .[:RECeive]:PACE:THReshold:STARt ENABle? EVENt? SYSTem . . .[:RECeive]:PACE:THReshold:STARt? PRESet QUEStionable SYSTem . . .[:RECeive]:PACE:THReshold:STOP CONDition? SYSTem . . .[:RECeive]:PACE:THReshold:STOP? ENABle ENABle? SYSTem . . .[:RECeive]:PACE[:PROTocol] EVENt? SYSTem . . .[:RECeive]:PACE[:PROTocol]? STATus Subsystem SYSTem .

Table of Contents