Connect the TPO board to a +5 volt power supply.
Connect the TPO board to the TSC with the ribbon cables.
Connect the mux power supply card to a +6.5 volt power supply.
Connect the mux controller card to a connector on the TPO board (J48, J47, J18, J32 ).
The I2C jumpers on the TPO board should stay in the default position.
Connect each mux card to the FED noting which mux card goes to which FED channel. The mux card closest to the controller has logical ID 0, the next mux card has logical ID1 and so on.
Connect the UTRI's to the mux. Each mux cable has two numbered tags on its end. The tag closest to the connector identifies the mux card, the outer tag identifies the mux card channel. All of the mux cables connected to a UTRI must have the same mux channel.
Add muxon="true" to the <Fed> tag
After the <Fed> tag and before the <DaqProcessCtrl> tag add the following
<MuxCtrl> <Multiplexer device = "0" simulation="n" > <MuxCard cardnr="0" fedchannel="0" fedserialnr="0" /> <MuxCard cardnr="1" fedchannel="1" fedserialnr="0" /> <MuxCard cardnr="2" fedchannel="2" fedserialnr="0" /> <I2cChannel devicenumber="8" devicechannel ="8" i2caddress="0" channel="0" /> </Multiplexer> </MuxCtrl>
cardnr is the logical ID of the mux card as described above
fedchannel is the FED channel number that the mux card is attached to
fedserialnr is the serial number of the FED and should be left as 0
devicenumber and devicechannel identifies the TPO connector that the mux controller is attached to
On the TPO J48 = device 7, J47 = device 6, J18 = device 8, J32 = device 9. (see also table 12 of the TSC manual) . In the above example the FED multiplexer is connected to J18.
i2caddress and channel identify the mux controller and should be left as 0
Each <UtriChannel> tag should be changed to look like the following:
<UtriChannel simulation="n" utrichannel="0" muxdevice ="0" muxcard = "0" muxchannel="2" />
utrichannel is the channel number on the UTRI
muxdevice identifies the mux controller and should be left as 0
muxcard is the logical ID of the mux card as described above
muxchannel is the channel number on the mux card and is identified by the outer tag on the mux cable
The Multiplexer and TPO should be powered before the computer is turned on. If they are powered on after the computer you might see the following error messages when you start LT:
*** Error ingetSlot module src/motherboardi2c.cc at line 93<MotherboardI2C> getSlot: tired of waiting for acknowledge *** Error insendData module src/motherboardi2c.cc at line 200mb::releaseSlot :no board selected ! *** Error inreleaseSlot module src/motherboardi2c.cc at line 135mb::releaseSlot : no board selected !
These error messages usually indicates that the mux controller is not
receiving I2C commands. Restting the TSC will usually fix this
problem. To reset the TSC press the two buttons near the FPGA (see
section 5.8 of the TSC manual). After resetting the TSC wait
~30 seconds before restarting Lt. If the errors still occur
trying rebooting the computer.
When the multiplexer is
correctly initialized you will hear a click from the mechanical
relays on the mux cards. The mux cards will click every time they
switch to a different set of cables. In the Lt window you will see
the following when the mux cards are switching properly:
( ( ( Muxctrl returns 3 8 8 8 Muxctrl returns 4
In the FED server window you will see error messages as the mux switches. This following is normal output during mux switching:
Event Number 261000 8272 381 377 254 254 254 255 255 255 381 377 254 254 254 255 255 255 381 377 254 254 254 255 255 255 381 386 254 254 254 254 255 255 FedDevice::loop()>> *** ERROR => READOUT with EMPTY FIFO FedDevice::loop()>> *** ERROR => READOUT with EMPTY FIFO FedDevice::loop()>> *** ERROR => READOUT with EMPTY FIFO FedDevice::loop()>> *** ERROR => READOUT with EMPTY FIFO FedDevice::loop()>> *** ERROR => READOUT with EMPTY FIFO FedDevice::loop()>> *** ERROR => READOUT with EMPTY FIFO FedDevice::loop()>> *** ERROR => READOUT with EMPTY FIFO FedDevice::loop()>> *** ERROR => READOUT with EMPTY FIFO FedDevice::loop()>> *** ERROR => READOUT with EMPTY FIFO FedDevice::loop()>> *** ERROR => READOUT with EMPTY FIFO FedDevice::loop()>> *** ERROR => READOUT with EMPTY FIFO
Pictures of the UCSB multiplexer connections and examples files can be found at http://hep.ucsb.edu/people/gartung/mux
Questions should be directed to Patrick Gartung or Wim Beaumont
TPO I2C jumper default position:
Example the jumpers for the I2C channel
connected to the connector J32 :
(see also fig . 11 and 14 of the
TCS manual)
J 22 juper at pin 2 .3 , J17 closed , J20 closed
J28 closed , J26 cosed . J23 OPEN, J30 OPEN.
links: