
Reading the ID
Register
As mentioned previously, the ID Register indicates the classification,
addressing mode, and manufacturer of the device. This program reads the
ID Register and returns FFFF
16
.
HP BASIC/WS Version
10 !Map the A16 address space in the HP V /382 and store the multimeter
20 !base address in a variable.
30 CONTROL 16,25;2
40 COM Base_addr
50 Base_addr=DVAL("C600",16)
60 !
Call the subprogram which reads the ID register.
70 CALL Id_read
80 END
90 !
This subprogram reads the ID register and displays the result in hexadecimal.
100 SUB Id_read
110 COM Base_addr
120 Register=READIO(-16,Base_addr+0)
130 Hex$=IVAL$(Register,16)
140 PRINT Hex$
150 SUBEND
Appendix C HP E1326B/E1411B Multimeter Register-Based Programming 223
Comentários a estes Manuais