![Agilent Technologies E1330B Скачать руководство пользователя страница 138](http://html.mh-extra.com/html/agilent-technologies/e1330b/e1330b_users-manual-and-scpi-programming-manual_2867439138.webp)
136 Agilent E1330B Digital I/O Module Register Information
Appendix B
1630
COM /Instr/ @Sys,@Dig
1640
COM /Register/ Logical_address
1650
Base=49152+(Logical_address*64)
1660
OUTPUT @Sys;"DIAG:POKE "&VAL$(Base+(DVAL("0E",16)))&",8,0"
! PI=0
1670
OUTPUT @Sys;"DIAG:POKE "&VAL$(Base+(DVAL("0A",16)))&",8,128"
!PIEN=1
1680
OUTPUT @Sys;"DIAG:POKE "&VAL$(Base+(DVAL("0E",16)))&",8,128"
! PI=1
1690 Enable_pir2_:SUBEND
1700 !
1710 Enable_pir3:SUB Enable_pir3
1720
COM /Instr/ @Sys,@Dig
1730
COM /Register/ Logical_address
1740
Base=49152+(Logical_address*64)
1750
OUTPUT @Sys;"DIAG:POKE "&VAL$(Base+(DVAL("0F",16)))&",8,0"
!PI=0
1760
OUTPUT @Sys;"DIAG:POKE "&VAL$(Base+(DVAL("0B",16)))&",8,128"
!PIEN=1
1770
OUTPUT @Sys;"DIAG:POKE "&VAL$(Base+(DVAL("0F",16)))&",8,128"
!PI=1
1780 Enable_pir3_:SUBEND
1790 Enable_int:SUB Enable_int
!Enables PIR0-3 INT to reach the
backplane.
1800
COM /Instr/ @Sys,@Dig
1810
COM /Register/ Logical_address
1820
Base=49152+(Logical_address*64)
1830
OUTPUT @Sys;"DIAG:POKE "&VAL$(Base+(DVAL("05",16)))&",8,64"
!PIEN=1
1840 Enable_pir3_:SUBEND
Agilent E1330
B Non-data
Line I/O
The Agilent E1330 has several signal lines other than the data lines which can be
individually controlled. These lines are the FLG, CTL, STS, RES, and PIR lines.
The following BASIC language program demonstrates how to control these lines.
FLG0–FLG3 are input lines input from the peripheral to the Agilent E1330 module)
that can be used as individual input lines when not used as handshake lines. The
subroutine Ctl_flg_io demonstrates using SCPI commands to control these lines.
CTL0–CTL3 are output lines (output from the Agilent E1330 module to your
peripheral) which can be controlled individually when not used as handshaking
lines. Subroutine Ctl_flg_io demonstrates driving these lines using SCPI
programming commands.
STS0–STS3 are input lines that can be controlled using register based
programming. Subroutine Res_sts_io demonstrates using register based
programming of these lines.
RES0–RES3 are output lines that can be controlled using register based
programming. Subroutines Res_sts_io, Res_pir_io, and Res_pi_io demonstrate
register programming.
PIR0–PIR3 are input lines. Subroutine Res_pir_io demonstrates directly reading
these input lines. Subroutine Res_pi_io demonstrates reading a latched version of
these inputs.
Содержание E1330B
Страница 2: ......
Страница 10: ...8 Notes ...
Страница 11: ...9 Notes ...
Страница 12: ...10 Notes ...
Страница 25: ...Configuring the Agilent E1330B Digital I O Module 23 Chapter 2 Figure 2 6 J1 and J2 Connector Pinouts ...
Страница 32: ...30 Configuring the Agilent E1330B Digital I O Chapter 2 Notes ...
Страница 42: ...40 Using the Agilent E1330B Digital I O Module Chapter 3 Notes ...
Страница 58: ...56 Understanding the Agilent E1330B Digital I O Module Chapter 4 Notes ...
Страница 104: ...102 Agilent E1330B Digital I O Module Command Reference Chapter 5 Notes ...
Страница 146: ...144 Error Messages Appendix C Notes ...