Agilent Technologies E1470A user manual A16 Address Space Outside the Command Module

Page 43

A16 Address Space

Outside the Command

Module

When the E1406 Command Module is not part of your VXIbus system, the

E1470 base address is computed as:

A16base = C000h + (LADDRh * 40h)

or (decimal)

A16base = 49,152 + (LADDR * 64)

A16 Address Space Inside the Command Module or Mainframe

where C000h (49,152) is the starting location of the register addresses, LADDR is the module’s logical address, and 64 is the number of address bytes per VXI device.

For example, the E1470 factory-set logical address is 120 (78h). Therefore, it will have a base address of:

A16base = C000h + (78h * 40h) = C000h + 1E00h = DE00h

or (decimal)

A16base = 49,152 + (120 * 64) = 49,152 + 7680 = 56,832

When the A16 address space is inside the E1406 Command Module, the

E1470 base address is computed as:

1FC000h + (LADDRh * 40h)

or (decimal)

2,080,768 + (LADDR * 64)

where 1FC000h (2,080,768) is the starting location of the VXI A16 addresses, LADDR is the module’s logical address, and 64 is the number of address bytes per register-based device. The E1470 factory-set logical address is 120. If this address is not changed, the module will have a base address of:

1FC000h + (78h * 40h) = 1FC000h + 1E00h = 1FDE00h

or (decimal)

2,080,768 + (120 * 64) = 2,080,768 + 7680 = 2,088,448

Register Offset The register offset is the register’s location in the block of 64 address bytes that belong to the module. For example, the module’s Status/Control Register has an offset of 04h. When you write a command to this register, the offset is added to the base address to form the register address:

DE00h + 04h = DE04h 1FDE00h + 04h = 1FDE04h or (decimal)

56,832 + 4 = 56,836 2,088,488 + 4 = 2,088,492

Table B-1shows general programming method to access E1470 registers.

Appendix B

Register-Based Programming 43

Image 43
Contents E1470-90002 Page Contents Appendix C RF Switch Error Messages Index Government Restricted Rights Agilent Technologies Warranty StatementDocumentation History Safety SymbolsModel Number Manufacturer’s NameManufacturer’s Address Declares, that the product Product NamePage Switching Diagram Using This ChapterChapter Cascade Relays COM 33 332 Creating Multiple Multiplexers Configuring the RF Switch ChapterOn this module RF Switch ConfigurationMaximum POWER. The maximum RF power that can be applied Chapter Configuring the RF SwitchSetting 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 Chapter RF Switch Command Reference Command TypesCommon Commands Format Scpi Commands FormatLinking Commands Scpi Command ReferenceRF Switch Command Reference Chapter DIAGnosticCLOSe DIAGnosticReset to its power-on state Common to NC DIAGnosticCLOSe?DIAGnosticOPEN DIAGnosticOPEN relay,relay... opens individual relays onDIAGOPEN333 DIAGnosticOPEN?RSTDIAGThis programCLOS042,043,053,054,256REL?returns DIAGnosticRELAY?ROUTePATHCOMMon ROUTeExample Closing Channel Path 10002 SYSTem SYSTemERRor?SYSTemVERSion? Command Ieee 488.2 Common Commands Quick ReferenceDescription Commands Quick ReferenceAppendix a Appendix a RF Switch SpecificationsRF Switch Specifications Appendix a Addressing Overview Appendix BAbout This Appendix Register AddressingFigure B-1. Register Address Locations Within VXI A16 Base AddressA16 Address Space Outside the Command Module Register-Based Programming Appendix B Register DefinitionsTable B-1. General Register-based Programming Method Table B-2. Register MapTable 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