readout software for 2 channels [0 and 1] of the tdc-gpx2 board with raspberry pi 3B SPI readout. This code is a fork of the original design by marvin.peter@physik.uni-giessen.de https://github.com/marvin5300/tdc-gpx2_software
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1.4 KiB

Software for RPi compatible shield for TDC-GPX2 chip

The TDC-GPX2 is a time-to-digital converter from ScioSense with up to 10ps timing accuracy. This software uses the linux kernel for GPIO and SPI-Bus to readout the GPX2 and calculate time intervals between signals. There is also the possibility of reading out the TDC using a FPGA which will then give much faster readout.

TDC-GPX2_Software

Files for building readout software for the TDC-GPX2 from ScioSense.

Folder Description
source/gpx2-raspi-readout-program Contains a readout loop, buffer and calculations to measure time intervals between two signals with good accuracy.
source/spi Folder containing gpx2 source files for making the tdc board library containing all options and an high level access for readout.
scripts python script makes a histogram of the output. requires matplotlib
data empty folder for output

Readout via SPI:

Required:

  • linux operating system (preferrably raspberry pi OS)
  • up-to-date c++ compiler (C++17 compatible), tested with clang 11 and newer

How to build:

  • requires cmake
  • builds the gpx2 library and optionally the readout program
cd source
mkdir build
cd build
cmake ..
cmake --build .

to run the code:

/// outputs to stdout
./bin/readout 

///redirect to file
./bin/readout > ../data/test_out.data