The Timing and Control Module (TCM) is part of the proposed LSST camera. We describe its purpose and operation in our TCM Specification. The A2101A is a prototype TCM designed for use in test stands. It provides one RJ-45 socket for Ethernet connection, seven RJ-45 sockets for connection to RCMs (Raft Control Modules), and one RJ-45 socket that can act like an RCM. The A2101A is the prototype Timing and Control Module. The A2101X is the RCM-Emmulator. We use the A2101X to test the A2101A.
The receives DC power through a single power jack. The DC voltage can be anything from 9V to 36V. An internal bridge rectifier corrects the polarity of the voltage on the connector.
We delivered an A2101A and its opposite, the A2101X, to Harvard University in early 2009. In 2010, our former colleage Michael Bradshaw used the open-source A2101A design and software as the basis for an ASIC test board, as he describes in Customizable ASIC Test Stand.
The figure below shows a Timing and Control Module (A2101A) connected to a single RCM Emmulator (A2101X).
To set up and operate the above system, follow the following steps.
Download our LWDAQ Software from here. Follow the installation instructions in our LWDAQ User Manual. Run the software.
Plug power into the TCM (A2101A). Connect your laptop and the TCM with an ethernet cable. Set up your laptop to use its ethernet socket for connections to subnet 10.0.0.x. Look at the RCM4200 module. Are the yellow and green ethernet lights turning on? If not, check your cable and your laptop's ethernet configuration.
Select Configurator from the LWDAQ Tool Menu. For instructions on using the Configurator, see the LWDAQ User Manual. Enter 10.0.0.37 for the IP address and 90 for the port number. Press Contact to see if you can contact the TCM. If you cannot make contact, reset the TCM's EEPROM configuration by pressing the red reset button and the brown configuration button at the same time, releasing the reset button, and continuing to hold down the configuration button for another five seconds. Try to make contact again.
Plug power into the RCM Emmulator (A2101X). You should see the power light come on. Press the reset button. The red light should turn on. Connect the socket marked S on the RCM Emmulator to one of the sockets that is not marked S on the TCM. Use a shielded CAT-5 network cable. You should see one of the green lights on the RCM Emmmulator turn on as the RCM Emmulator receives a clock signal.
NOTE: Be sure to use a shielded ethernet cable to connect the A2101A to an RCM or A2101X. The shield provides a ground connection between the two circuits. Without the ground connection, we found the communication would be reliable one day and fail intermittently the next. When the ground potentials of the two circuits differ by more than a few volts, the LVDS communication fails.
Download our selection of sample scripts and save it to disk. Click here to download the A2101.tcl scripts file. Open the LWDAQ Toolmaker. You can read about the Toolmaker in the LWDAQ User Manual. Press the Toolmaker's Load button and load the A2101.tcl into the Toolmaker. Alternatively, you can open A2101.tcl with a text editor and cut and paste scripts from the file into the toolmaker. Don't cut more than two sample scripts at a time, and leave out the script tags.
Work your way through the sample scripts. The first one tests the TCM's echo instruction. The last one writes and reads back a 4-MByte test image from the RCM Emmulator. We have tried to put plenty of comments into the scripts so you can see how the TCL code calls our LWDAQ routines to communicate with the TCM and control the RCM Emmulator.
If you would like to put the TCM on your local ethernet with a static IP address, follow the instructions in the Configurator section of the LWDAQ User Manual.
Try alternating between a short and a long cable from the TCM to the RCM Emmulator. You should see no affect upon the accuracy of the communication nor the speed with which the communication takes place. At some point, communication will fail because of dispersion in the twisted pair. We estimate that this will take place at around 50 m.
One of the sample scripts in A2101.tcl creates a 4-MByte gray-scale image in the TCM's RAM, transfers it to the RCM Emmulator, and reads the image all the way back to the TCPIP client. With a direct connection between the TCPIP client and the TCM, we obtain 600 kBytes/s through the RCM4200 and 4 MBytes/s over the TCM-RCM serial connection. When we receive TCPIP messages with the A2101, parse them, and execute byte reads from registers on the mother board, the message execution time is 130 μs.
Note: When we were planning the design of the TCM, we considered using a PC104-format Linux computer to provide TCPIP connection. But we found that the PC104 computer, combined with standard digital I/O boards, did not allow us to manipulate digital I/O lines with sufficient speed for the kind of external memory access required by the TCM. In an un-modified PC104 system, our fastest I/O line update time was 5 μs with a dedicated program that did nothing but toggle the logic line, as we describe here. The RCM4200 offers us far superior performance. We transfer data from the A2101A SRAM by with the RCM4200 digital I/O ports. We fetch one byte at a time. Each byte transfer takes 400 ns. The digital I/O update time is around 100 ns, which is fifty times faster than that of the PC104 module we tried.
The RCM4200 consumes around 240 mA at 3.3 V, for a total power consumption of less than 1 W. The entire A2101A consumes 94 mA from our 24-V power supply, for a total consumption of 2.4 W.
The serial communication between the TCM and the RCM Emmulator can pass along a cable of at least ten meters, and probably 50 m.
When we have time, we hope to add the following features.
Note: All our schematics and Gerber files are distributed under the GNU General Public License.
The A210101A printed circuit board must be modified in the following ways for it to be consistent with the A2101A schematic.