Agilent Technologies E1470A user manual Register Definitions, Table B-2. Register Map

Page 44

Table B-1. General Register-based Programming Method

System

Typical Commands

Base Address

 

 

 

External Computer

VXI:READ? logical_address, offset

Module Logical Address setting (LADDR*)

(over GPIB to E1406

VXI:WRITE logical_address,offset,data

offset = register number

Command Module)

 

 

 

DIAG:PEEK? (Base_addr + offset,width)

Base_addr = 1FC000h + (LADDR * 40)h or

 

DIAG:POKE (Base_addr +offset,width, data)

= 2,080,768 + (LADDR * 64)

 

When using DIAG:PEEK? and DIAG:POKE, the

offset = register number

 

 

 

width must be either 8 or 16.

 

 

 

 

* LADDR = E1470 Logical Address = 120 / 8 = 15

 

Reset and Registers When the E1470A undergoes power-on or a *RST in SCPI, the bits of the registers are put into the following states. Manufacturer ID Register, Device Type Register, and Status/Control Register are unaffected and Relay Control Registers have a “0” written to each bit. This forces all relays to their power-on/reset state. To reset the module, write a “1” and then a “0” to bit 0 of the Status/Control Register.

Register Definitions

You can program the E1470A Cascade RF Switch module using its hardware registers. The procedures for reading or writing to a register depend on your operating system and programming language. Whatever the access method, you will need to identify each register with its address. These addresses are given in Table B-2.

Table B-2. Register Map

Register Name

Address

 

 

Manufacturer ID (read only register)

Base + 00h

 

 

Device ID (read only register)

Base + 02h

 

 

Card /Status/Control (read/write register)

Base + 04h

 

 

Relay Control Register (read/write register)

Base + 20h

 

 

Relay Control Register (read/write register)

Base + 22h

 

 

Relay Control Register (read/write register)

Base + 24h

 

 

Relay Control Register (read/write register)

Base + 26h

 

 

Relay Control Register (read/write register)

Base + 28h

 

 

The interrupt protocol supported is “release on interrupt acknowledge.”

An interrupt is cleared by a VXIbus interrupt acknowledge cycle.

44 Register-Based Programming

Appendix B

Image 44
Contents E1470-90002 Page Contents Appendix C RF Switch Error Messages Index Agilent Technologies Warranty Statement Government Restricted RightsSafety Symbols Documentation HistoryManufacturer’s Name Manufacturer’s AddressDeclares, that the product Product Name Model NumberPage Chapter Using This ChapterSwitching Diagram Cascade Relays COM 33 332 Configuring the RF Switch Chapter Creating Multiple MultiplexersRF Switch Configuration Maximum POWER. The maximum RF power that can be appliedChapter Configuring the RF Switch On this moduleSetting the Logical Address Setting the Interrupt Request Level Connecting User Wiring Installing User Wiring Configuring the RF Switch ChapterAssembling SMB Connector Jacks SMB Connectors and Connector HousingsUser Connections Wiring Installing Device Drivers RF SwitchAddressing the Switch Programming the RF Switch ChapterChapter Programming the RF Switch Programming ExamplesProgramming the RF Switch Chapter Example Closing a Signal Path Example Opening Closing Signal Paths Example Saving Recalling Module States Programming the RF Switch Chapter Command Types Common Commands FormatScpi Commands Format Chapter RF Switch Command ReferenceRF Switch Command Reference Chapter Scpi Command ReferenceLinking Commands DIAGnostic DIAGnosticCLOSeDIAGnosticCLOSe? DIAGnosticOPENDIAGnosticOPEN relay,relay... opens individual relays on Reset to its power-on state Common to NCDIAGnosticOPEN? DIAGOPEN333DIAGnosticRELAY? RSTDIAGThis programCLOS042,043,053,054,256REL?returnsROUTe ROUTePATHCOMMonExample Closing Channel Path 10002 SYSTemVERSion? SYSTemERRor?SYSTem Ieee 488.2 Common Commands Quick Reference CommandCommands Quick Reference DescriptionAppendix a RF Switch Specifications Appendix aRF Switch Specifications Appendix a Appendix B About This AppendixRegister Addressing Addressing OverviewBase Address Figure B-1. Register Address Locations Within VXI A16A16 Address Space Outside the Command Module Register Definitions Table B-1. General Register-based Programming MethodTable B-2. Register Map Register-Based Programming Appendix BTable B-3. Status Register Bit Patterns read Table B-4. Control Register Bit Pattern writeRelay Control Registers Vxie Table B-10. Writing to Relay Control Registers Register Programming Example Create and open a device sessionWait 5 seconds before resetting module Void errhandler /* Error Handling Routine Register-Based Programming Appendix B Appendix C RF Switch Error Messages Appendix CRF Switch Error Messages Appendix C Index IndexIndex E1470-90002