The Register Offset
and Register Number
Depending on whether absolute addressing or select code 8 is used, either a
register offset or register number is specified as part of the register address.
Absolute addressing specifies a register offset, which is the register’s
location in the block of 64 address bytes. For example, the AFG’s
Command Register has an offset of 08
16
. When you write a command to
this register, the offset is added to the base address to form the register
address (using a logical address of 80):
register address = base a register offset
= 1FC000
16
+ (80 * 64)
16
+ 08
16
= 1FC000
16
+ 1400
16
+ 08
16
= 1FD408
16
or
= 2,080,768 + (80 * 64) + 8
= 2,080,768 + 5120 + 8 = 2,085,896
Using select code 8 requires that you specify a register number. The
register number is the register offset/2. Referring to Figure C-1A, the
Command Register with an offset of 08, is register number 4.
Note
The example programs found in this appendix are IBASIC programs using
absolute addressing.
External Computer
Programming
When the AFG is programmed by an external computer through the
E1300/E1301 mainframe or E1405/E1406 Command Module, the registers
are accessed using
DIAG:PEEK?
and
DIAG:POKE
, or
VXI:READ?
and
VXI:WRITE
.
DIAG:PEEK?/DIAG:POKE and VXI:READ?/VXI:WRITE
Throughput speed using
DIAG:PEEK?
and
DIAG:POKE
is faster than
VXI:READ?
and
VXI:WRITE
because the complete register address
(including the A16 starting location 1FC000
16
) is specified.
VXI:READ?
and
VXI:WRITE
specify the device logical address and register offset only.
Thus, the E1300/01/E1405/06 processor must calculate the complete
register address which decreases throughput speed.
IBASIC programming using absolute addressing or select code 8 is faster
than either
DIAG:PEEK?
and
DIAG:POKE
or
VXI:READ?
and
VXI:WRITE
because the registers are accessed from the VXIbus backplane rather than
from the HP-IB. Also,
READIO
and
WRITEIO
are not parsed.
Appendix C
HP E1340A Register-Based Programming 233
Содержание E1340A
Страница 12: ...Notes 12 HP E1340A Arbitrary Function Generator Module User s Manual ...
Страница 14: ...14 HP E1340A Arbitrary Function Generator Module User s Manual ...
Страница 42: ...Chapter 2 Generating Standard Waveforms with the HP E1340A 42 ...
Страница 54: ...Chapter 2 Generating Standard Waveforms with the HP E1340A 54 ...
Страница 57: ...Figure 3 1 Generating Arbitrary Waveforms 57 Generating Arbitrary Waveforms with the HP E1340A Chapter 3 ...
Страница 58: ...Chapter 3 Generating Arbitrary Waveforms with the HP E1340A 58 ...
Страница 84: ...Chapter 4 HP E1340A Sweeping and Frequency Shift Keying 84 ...
Страница 130: ...Chapter 6 HP E1340A High Speed Operation 130 ...
Страница 202: ...202 HP E1340A SCPI Conformance Information Chapter 7 ...
Страница 204: ...Figure 8 1 HP E1340A Status Groups and Associated Registers Chapter 8 HP E1340A AFG Status 204 ...
Страница 218: ...218 HP E1340A Specifications Appendix A ...
Страница 284: ...284 HP E1340A Register Based Programming Appendix C ...
Страница 295: ...Index HP E1340A Arbitrary Function Generator User s Manual 295 ...