Agilent Technologies E1470A user manual Appendix B, About This Appendix, Register Addressing

Page 41

Appendix B

Register-Based Programming

About This Appendix

This appendix contains the information you can use for register-based programming of the E1470A Cascade RF Switch module. The contents include:

Register Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41

Register Definitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44

Register Programming Example. . . . . . . . . . . . . . . . . . . . . . . .49

Register Addressing

Addressing Overview

The E1470A Cascade RF Switch is a register-based module that does not support the VXIbus word serial protocol. When a SCPI command is sent to the module, the instrument driver resident in the command module parses the command and programs the module at the register level.

Register-based programming is a series of reads and writes directly to the multiplexer registers. This can increase throughput speed since it eliminates command parsing and allows the use of an embedded controller. It also allows use of an alternate VXI controller, eliminating the command module.

To access a specific register for either read or write operations, the address of the register must be used. Register addresses for the plug-in modules are in an address space known as VXI A16. The exact location of A16 within a VXIbus master’s memory map depends on the design of the VXIbus master you are using. For the E1406 Command Module, the A16 space location starts at 1F0000h.

The A16 space is further divided so that the modules are addressed only at locations above 1FC000h within A16. Every module is allocated 64 register addresses (40h). The address of a module is determined by its logical address (set by the address switches on the module) times 64 (40h).

In the case of the Cascade RF Switch module, the factory setting is 120 or 78h, so the addresses start at 1E00h.

Register addresses for register-based devices are located in the upper 25% of VXI A16 address space. Every VXI device (up to 256) is allocated a 64 byte block of addresses. Figure B-1 shows the register address location within A16. Figure B-2 shows the location of A16 address space in the E1406 Command Module.

Appendix B

Register-Based Programming 41

Image 41
Contents E1470-90002 Page Contents Appendix C RF Switch Error Messages Index Government Restricted Rights Agilent Technologies Warranty StatementDocumentation History Safety SymbolsManufacturer’s Address Manufacturer’s NameDeclares, that the product Product Name Model NumberPage Chapter Using This ChapterSwitching Diagram Cascade Relays COM 33 332 Creating Multiple Multiplexers Configuring the RF Switch ChapterMaximum POWER. The maximum RF power that can be applied RF Switch ConfigurationChapter Configuring the RF Switch On this moduleSetting the Logical Address Setting the Interrupt Request Level Installing User Wiring Configuring the RF Switch Chapter Connecting User WiringSMB Connectors and Connector Housings Assembling SMB Connector JacksUser Connections Wiring RF Switch Installing Device DriversProgramming the RF Switch Chapter Addressing the SwitchProgramming Examples Chapter Programming the RF SwitchProgramming the RF Switch Chapter Example Closing a Signal Path Example Opening Closing Signal Paths Example Saving Recalling Module States Programming the RF Switch Chapter Common Commands Format Command TypesScpi Commands Format Chapter RF Switch Command ReferenceRF Switch Command Reference Chapter Scpi Command ReferenceLinking Commands DIAGnosticCLOSe DIAGnosticDIAGnosticOPEN DIAGnosticCLOSe?DIAGnosticOPEN relay,relay... opens individual relays on Reset to its power-on state Common to NCDIAGOPEN333 DIAGnosticOPEN?RSTDIAGThis programCLOS042,043,053,054,256REL?returns DIAGnosticRELAY?ROUTePATHCOMMon ROUTeExample Closing Channel Path 10002 SYSTemVERSion? SYSTemERRor?SYSTem Command Ieee 488.2 Common Commands Quick ReferenceDescription Commands Quick ReferenceAppendix a Appendix a RF Switch SpecificationsRF Switch Specifications Appendix a About This Appendix Appendix BRegister Addressing Addressing OverviewFigure B-1. Register Address Locations Within VXI A16 Base AddressA16 Address Space Outside the Command Module Table B-1. General Register-based Programming Method Register DefinitionsTable B-2. Register Map Register-Based Programming Appendix BTable B-4. Control Register Bit Pattern write Table B-3. Status Register Bit Patterns readRelay Control Registers Vxie Table B-10. Writing to Relay Control Registers Create and open a device session Register Programming ExampleWait 5 seconds before resetting module Void errhandler /* Error Handling Routine Register-Based Programming Appendix B Appendix C Appendix C RF Switch Error MessagesRF Switch Error Messages Appendix C Index IndexIndex E1470-90002