The Instruction for DCRC RevE Calibration and Tests

The Instruction is being moved to Confluence. Click here and check out.

This document was updated on Oct 22, 2019.

0 Preparation

0.0 Smoke Test

Smoke Test. No Smoke: No critical Issues; Smoke: It's really bad. Report.

Smoke Test

USB: initial setup, debugging, testing, firmware programming, etc

Power&Net: Power, data taking

0.1 Assign/Change an IP address via minicom

  1. Run the following commands in terminal:

Ctrl+A +Z (release Ctrl and A before press Z)to show the Menu, then configure minicom(Select O)-->Serial port setup-->change the Hardware Flow Control to No(Select F). Enter to previous menu, then choose Exit.

  1. Check the current IP.

    Type SET to check the current IP. (PS: Type HE for help. In the list popped out, SOCKET --> SET. )

Note: If screen shows nonsense when you type something, please change the baud rate: Press Ctrl+A +Z, then press P to get comm parameters menu. You will see the baud rate dispalyed at the top of the box: "Current: 9600 8N1" or something. "9600" is the baud rate. Press A to change the baud rate and then go back to try to type something. It will be the proper baud rate when the screen shows what you type.

  1. Then assign a new IP addressand MAC address, if applicable.

    SET 1 165.91.180.63 to reset IP address for the DCRC;

    SET 2 165.91.180.1 to reset the GateWay;

    SET 3 255.255.254.0 to reset the NetMask;

    SET 4 a1.b2.c3.d4.e5.f6 to reset the MAC address; (Notes: a1.b2.c3.d4.e5.f6 is just the format. Copy the real MAC address that you see in Step 2, and then only change the last part. For board serial number 15, change f6 to 0f. 0f is hexadecimal for 15.)

    NETSAV and then SET to chekc if new IP address is saved.

    RESET the board

Exit minicom with Ctrl+A then X

Disconnect the board

0.2 Load the firmware

Log in a firmware computer;

Download the script (Skip this step if you have downloaded it)

and run this command.

You could download RevE.rbf from here, https://confluence.slac.stanford.edu/display/CDMS/DCRC+Documentation. Go to Rev E FPGA firmware, and click "Rev E FPGA firmware with L1 trigger".

(For the record, here is the old instruction for loading the firmware. )


1. Prequisite before DAC Calibration and Tests

1.0 Download the iphython git package.

Go the directory you'd like to download the git package. Here you need a SUF account. If this is your first time to talk to nero, you need to set up your account first by following STEP 2 in this link.

Check the Trigger_Simulation directory. If it is empty, run these two commands.

Tips: You could switch between branches you already have by the following commands as an example. It's unnecessary for this procedure of Calibration and Tests.

If you change the code and want to push the change to git repository, check here for the procudure.

1.1 Necessary Materials for Calibration and Tests:

  1. DCRC Checklist and Calibrations Spreadsheet

  2. DCRC Register Map

  3. DCRC Test Bench (python notebook) (Done in "1.0 Prequisite before DAC Calibration and Tests")

  4. Oscilloscope and Function generator. (Both included in picoscope.)

  5. Multimeter

  6. DCRC Schematics

  7. Issues&Solutions (You may find the solution when you have an issue)


2. Calibration

2.1 Purposes

Check the slopes and find the offsets, and their uncertainties. Fill the values into "DCRC Checklist and Calibrations Spreadsheet" and make a MIDAS file.

Slopes:

2.2 Procedure

2.2.0 Preparation

2-2codecell

Probe&Pin

2.2.1 Test Signal Calibration
2.2.2 the most Calibration

Calibration values

ObEx_J4-1

2.2.3 LED Calibration

square wave


3. Tests (Noise, Phonon, Charge and Trigger)

(Trigger test is included in Phonon Test and Charge Test)

3.1 Noise Performance

Test the noise performance for ALL channels. Channel 0~11 are phonon channels and Channel 12~15 are charge channels. When you run the code, it will show the traces and PSDs of all channels. Check them visually.

NoiseTrace_PhononChannel

NoiseTrace_ChargeChannel

Traces of all channels

PSD of a phonon channel

PSD of a charge channel

3.2 Phonon Tests

Phonon Pulse Setting

Phonon Pulse Recorded

Triggered Phonon Pulse

Triggered Pulse FIR output

3.3 Charge Test

triggered charge pulse, FIR output

Now you are done the calibration and tests.