IU ADC Maintainence

IU ADC Maintainence

Introduction

This note descibes the tools and techniques of maintaining the IU ADCs for the LGD. There are several ADC specific programs available, as well general FASTBUS utilities.

General FASTBUS Information

Communication between the crates and the computer is handled by BBFC 2, located in the primary crate in the hut. Due to limitations of the BBFC, it cannot communicate directly with the SI's, and it must go through a SLAC Scanner Processor (SSP). There are two SSP's located in the primary crate, one in slot 1 for use in debugging the ADC's, and one in slot 6 for readout of the ADC's by the DAQ. The FASTBUS addresses of the crates containing the ADC's are 0x10000000, 0x11000000, 0x12000000, and 0x13000000, corresponding to crates 0,1,2,and 3. These addresses should not be changed.

To prepare to run the ADC test programs, the SSP has to be loaded with it's software, and the SI's have to be programmed. To load the SSP, the user runs:

If errors occur at this stage, there may be somthing wrong with the SSP. The first thing to try is toggling the reset switch on the front of the SSP. If this does not cure the problem, a DAQ expert should be consulted.

Next the SI's need to be loaded. The user should run /home/mpsdaq/e852/daq/bin/bsi_si 2 1 . This should print out something like this :

SI at 0x16 ...
SI at 0x80000010 ...
SI at 0x80000011 ...
SI at 0x80000012 ...
SI at 0x80000013 ...

The first line tells the user that the SI in the primary crate is locate in slot 0x16 (22). The logical address of the cable segement is 0x80000000, and there are SI's at addresses 0x10,0x11,0x12,and 0x13 on the cable segment. To address modules in the crates containing the SI's, the user would use (for example) address 0x1n000001 to address slot 1 and 0x1n000018 to address slot 24 in crate n, where n is 0,1,2,or 3.

Errors at this stage can indicate one of several problems. The SI's are all connected via a pair of ribbon cables that connect to a card on the back of the crate. One of these cables (or cards) may have come loose. If one SI seems to be missing, try pulling it and re-inserting it. If it still does not work, try switching it with another that does work in a different crate. If the problem follows the SI, it is probably bad. If the problem stays in the same crate, the cable may be bad, or something may be wrong with the crate (very unlikely). If you cannot get the SI's to work, call a DAQ expert.

At this point, with the SSP and SI's loaded, you are ready to begin checking the ADC's

ADC Testing

The primary program used to test ADC's is /home/mpsdaq/e852/daq/bin/adc_mdt. This program tests all of the capabilties of the ADC's. There are two flags that are normally used. The -f flag tells it not to pause between tests (At one time, problems were observed with the interface on mpsdaq when pauses were not inserted). The -c<num> flag tells it to use num as the base address for the test. For example, to test the ADC's in crate 2, one would run adc_mdt -f -c0x12000000. The program does the following

Debugging Problems

General tools

There are several utility programs avaiable to aid in the debugging of FASTBUS problems. Most of these can be found in ~ostrov/e852/fbtest. Some of the more usefull ones are listed below. All require that the environment variable BBFC be set.

No ADC's were found

Some ADC's are not found

Pedestals fail to trim on one or more channels

When a channel fails to trim (i.e. the program cannot set it to 15 counts), a message like this will be printed:

The number in parenthesis refers to the ending value of the pedestal trim value for the channel. The last number is the last data read from the channel. Remember that it is the last three digits that contain the value of the pedestal. In this case, the pedestal trim was set to it's maximum value, but the pedestal was still zero. Recall that with the pedestal trim set to 0, a channel actually has a ``negative'' pedestal, which will show up as zero. As the pedestal trim value increases, the pedestal will also increase, eventually becoming positive. Possible problems and their solutions are:

Errors during the tests

Only the first two tests (`all bits on' and `all bits off') need to be run to check for proper functioning of the ADC's. The other tests exist primarily for historical reasons. If a channel has trimmid properly but falis the test, there are a few possible reasons. In all cases, one or both of the discriminators will be wrong - this is what determines failure.

Fuses

Fuses for each voltage are located at the rear of the ADC. These should NEVER be replaced with a higher rated fuse. As a rule, if a fuse blows once, replace it and try again. If it blows again, send the module back for repairs. The correct fuses are:

** 1/13/95 R.L.