Agilent Technologies E1326B Manual do Utilizador Página 201

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 291
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 200
Register Offset The register offset is the register’s location in the block of 64 address bytes.
For example, the multimeter’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:
C600
16
+ 08
16
= C608
16
1FC600
16
+ 08
16
= 1FC608
16
or
50,688 + 8 = 50,696
2,082,304 + 8 = 2,082,312
Accessing the
Registers
Table C-1 summarizes several of the programming methods used to access
the E1326B/E1411B multimeter registers.
Table C-1. Accessing the Multimeter Registers
Computer Programming Method Base Address
E1300/01 IBASIC
(Absolute Addressing)
(Select Code 8)
READIO (-9826, Base_addr + offset)
WRITEIO -9826, Base_addr + offset; data
(positive select code = byte read or write
negative select code = word read or write)
READIO (8, Base_addr + reg number)
WRITEIO 8, Base_addr + reg number; data
Base_addr = 1FC000
16
+ (LADDR * 64)
16
or
= 2,080,768 + (LADDR * 64)
offset = register offset (Figure C-2)
Base_addr = LADDR * 256
reg number = register offset (Figure C-2)/2
External Computer
(over HP-IB to
E1300A/E1301A
Mainframe or E1406A
Command Module)
VXI:READ? logical_address, offset
VXI:WRITE logical_address, offset, data
DIAG:PEEK? Base_addr + offset, width
DIAG:POKE Base_addr + offset, width, data
module logical address setting (LADDR)
offset = register offset (Figure C-2)
Base_addr = 1FC000
16
+ (LADDR * 64)
16
or
= 2,080,768 + (LADDR * 64)
offset = register offset (Figure C-2)
V/382 Embedded
Computer
(C-Size system)
READIO (-16, Base_addr + offset)
WRITEIO -16, Base_addr + offset; data
(positive select code = byte read or write
negative select code = word read or write)
Base_addr = C000
16
+ (LADDR * 64)
16
or
= 49,152 + (LADDR * 64)
offset = register offset (Figure C-1)
HP RADI-EPC7
Embedded Computer
with SICL
iwpeek((unsigned short *)(base_addr + offset))
iwpoke((unsigned short *)
(base_addr + offset),data)
INST device_name;
device_name = iopen (“vxi, logical address”);
base_addr = imap
(device_name, I_MAP_VXIDEV,0,1,NULL);
LADDR: E1326B/E1411B logical address = 24
(LADDR * 64)
16
: Multiply quantity then convert to a hexadecimal number (e.g. (24 * 64)
16
= 600
16
)
When using DIAG:PEEK? and DIAG:POKE, the width (number of bits) is either 8 or 16.
202 HP E1326B/E1411B Multimeter Register-Based Programming Appendix C
Vista de página 200
1 2 ... 196 197 198 199 200 201 202 203 204 205 206 ... 290 291

Comentários a estes Manuais

Sem comentários