Register-Based Programming 105
Appendix B
The Status/Control
Register
Writes to the Status/Control Register (base + 04
16
) enables you to
disable/enable the interrupt generated when channels are closed.
Status/Control Register
Bits Defined:
To disable the interrupt generated when channels are opened or closed,
write a “1” to bit 6 of the Status/Control Register (base + 04
16
). Typically,
interrupts are only disabled to “peek-poke” a module. Refer to your
command module's operating manual before disabling the interrupt.
Interrupts must be enabled to operate the “SWITCH” and “VOLTMTR”
instrument drivers.
Reading the
Status/Control Register
Module Status
Each relay requires about 1msec execution time during which time the
multiplexers are “busy”. Bit 7 of this register is used to inform the user of
a busy condition. The interrupt generated after a channel has been closed
can be disabled. Bit 6 of this register is used to inform the user of the
interrupt status.
As an example, if the Status Register (base + 04
16
) returns "BDFF
(1011110111111111)" the multiplexer module is not busy (bit 7 set), and the
module interrupts are disabled (bit 6 set).
Relay Control
Registers
Writes to the Relay Control Registers (base + 20
16
to 28
16
) allows you to
open or close any of the 64-channel relays or the five tree relays. Any
number of relays per bank can be closed at a time.
base +
04
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Write
Undefined
D
Undefined
R
Read
Unde-
fined
M
Undefined
B
D
Undefined
*WRITE BITS (Status/Control Register)
bit 0
R
Writing a "1" to this bit resets the switch to the power-on state (all channels open). You
must set bit 0 back to a logical "0" before resuming normal operations of the
module such as closing and opening switches.
bit 6
D
Disable interrupt by writing a "1" to this bit (this is set back to "0" with a reset).
**READ BITS (Status/Control Register)
bit 6
D
Interrupt Status; "1" = disabled, "0" = enabled.
bit 7
B
Busy Status; "1" = not busy, "0" = busy.
bit 14
M
MODID bit; if the bit is "0", module has been selected.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Содержание E1476A
Страница 3: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 7: ...6 Notes Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 11: ...10 Notes Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 123: ...122 Index Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 125: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...