User`s manual

136 Register-Based Programming
Relay Control
Registers
Writing to the Relay Control Registers (base + 20
h
to base + 34
h
) allows you
to open or close any one of the 256 channel relays or the 21 tree relays, nine
routing relays or five analog bus relays. Any number of relays per bank can
be closed at a time.
For example, to connect both Bank 0 and Bank 2 to the analog bus, you need
to write a “1” to bits 0 and 2 of the Tree Bank 0 Register (base + 30
h
) to close
Tree Relays T0 and T2, meanwhile, you need also write a “1” to bit 0 of the
Analog Bus Control Register (base + 34
h
) to close the analog bus control
relay AB200. Routing relay C108 is in the normally closed position by
setting bit 15 to “1” in Tree Bank 1 Register (base + 32
h
). All other bits are
set to “0”.
The Relay Control Registers bit definitions are listed as below:
Bank 4 Channel 000 - 015 Relay Control Register 4 (Base + 28
h
)
Bank 0 Channels 000 - 015 Relay Control Register 0 (base + 20
h
)
base + 20
h
1514131211109876543210
Write
ch015 ch014 ch013 ch012 ch011 ch010 ch009 ch008 ch007 ch006 ch005 ch004 ch003 ch002 ch001 ch000
Read
Bank 1 Channels 000 - 015 Relay Control Register 1 (base + 22
h
)
base + 22
h
1514131211109876543210
Write
ch015 ch014 ch013 ch012 ch011 ch010 ch009 ch008 ch007 ch006 ch005 ch004 ch003 ch002 ch001 ch000
Read
Bank 2 Channels 000 - 015 Relay Control Register 2 (base + 24
h
)
base + 24
h
1514131211109876543210
Write
ch015 ch014 ch013 ch012 ch011 ch010 ch009 ch008 ch007 ch006 ch005 ch004 ch003 ch002 ch001 ch000
Read
Bank 3 Channels 000 - 015 Relay Control Register 3 (base + 26
h
)
base + 26
h
1514131211109876543210
Write
ch015 ch014 ch013 ch012 ch011 ch010 ch009 ch008 ch007 ch006 ch005 ch004 ch003 ch002 ch001 ch000
Read
base + 28
h
1514131211109876543210
Write
ch015 ch014 ch013 ch012 ch011 ch010 ch009 ch008 ch007 ch006 ch005 ch004 ch003 ch002 ch001 ch000
Read