Difference between revisions of "Readout Electronics"
Jump to navigation
Jump to search
Line 61: | Line 61: | ||
=== calibrate the circuit response | === calibrate the circuit response | ||
− | # Connect CalOut to DCU | + | # Connect CalOut to DCU by setting DACsel = 1001 |
− | + | # set calibration mode to output VCal values by setting CalMode = 01 | |
− | # set calibration mode to output VCal values | + | # set the DAC and monitor how the output changes by setting TrimDAC = a five bit value |
− | + | # send MClock pulses to look at output by using the SIS3610 to output a stream of LVDS pulses to the VFAT and look at DataOut | |
− | |||
− | # set the DAC and monitor how the output changes | ||
− | |||
− | |||
− | |||
− | # send MClock pulses to look at output | ||
− | |||
− | |||
=== set injected voltage | === set injected voltage | ||
# set VCal | # set VCal |
Revision as of 10:14, 3 September 2008
I/O
Inputs to breakout box
- Trigger (LVDS)
- Clock ( RF synced pulse 31 MHz = 499/16 MHz, LVDS)
- Flip Flop scaner (1 TTL pulse)
V1495 :
- 28 Pin output on 34 pin ribbon cables
- Inputs to V1495:
- 180 bits of data = 12 bits Bunch Counter ( =31 MHz clock) + 12 bit (Event Counter + flags) + 12 bits (Chip ID) + 128 bits (data) + 16 bits (Checksum)
- The input register has been set to a size of 256 bit and there are 12 of them
Timing
- VFAT:
- Progammable through the Latency register (8 bits = 256 bits) you have but only 128 registers data registers. We can go back in time 100 *32 ns = 3 micro seconds. But we only may need 100 ns.
V1495: can have programmable delay up to?
We can program delays and play with the timing by downloading values for "lat" into the VFAT extended register and set delay on the V1495 through the ROC.
The V1495 can also interupt the VME backplane telling a ROC to readout the planes.
FPGA to VME data transfer
On 2/15/07 Ben Royd tested the read and write speeds between the VPM backplane and the FPGA user registers. He was able to write 16 bits to USER FPGA in 330 ns.
VFAT controls
VFAT control registers
Control register 0
bit | bit name | Function |
0 | Sleep/Run | 0 = sleep, 1=run also reffereed to as sleep blocking |
Control Register 1
Control register 2
Cal pulse Procedure
=== calibrate the circuit response
- Connect CalOut to DCU by setting DACsel = 1001
- set calibration mode to output VCal values by setting CalMode = 01
- set the DAC and monitor how the output changes by setting TrimDAC = a five bit value
- send MClock pulses to look at output by using the SIS3610 to output a stream of LVDS pulses to the VFAT and look at DataOut
=== set injected voltage
- set VCal