From: Jan Michel Date: Tue, 10 Aug 2021 12:47:30 +0000 (+0200) Subject: add new registers for MDC upgrade X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=3d08688fe63844089a1fd5092e12a4d3d40a214b;p=daqtools.git add new registers for MDC upgrade --- diff --git a/web/htdocs/addons/mdcupgrade.pl b/web/htdocs/addons/mdcupgrade.pl new file mode 100755 index 0000000..9941e0f --- /dev/null +++ b/web/htdocs/addons/mdcupgrade.pl @@ -0,0 +1,45 @@ +#!/usr/bin/perl +if ($ENV{'SERVER_SOFTWARE'} =~ /HTTPi/i) { + print "HTTP/1.0 200 OK\n"; + print "Content-type: text/html\r\n\r\n"; + } +else { + use lib '..'; + use if (!($ENV{'SERVER_SOFTWARE'} =~ /HTTPi/i)), apacheEnv; + print "Content-type: text/html\n\n"; + } + +use CGI ':standard'; +use XML::LibXML; +use POSIX; +use CGI::Carp qw(fatalsToBrowser); + +use lib qw|../commands htdocs/commands|; +use xmlpage; + +my $page; + +$page->{title} = "MDCUpgrade"; +$page->{link} = "../"; + +my @setup; + +push(@setup,({name => "TDC", + cmd => "MDCUpgrade-0xfe91-TDC", + period => 10000, + address => 1})); + +push(@setup,({name => "SpikeCount", + cmd => "MDCUpgrade-0xfe91-SpikeCount", + period => 1000, + rates => 1, + address => 1})); + +xmlpage::initPage(\@setup,$page); + + + + +1; + + diff --git a/xml-db/database/MDCUpgrade.xml b/xml-db/database/MDCUpgrade.xml new file mode 100644 index 0000000..67afbc1 --- /dev/null +++ b/xml-db/database/MDCUpgrade.xml @@ -0,0 +1,64 @@ + + + Registers for the upgraded MDC electronics + + + + + Board COnfiguration + + Switch off LED + + + Override automatic Flash selection to select golden image + + + Set test signal for Pasttrec + + + + + Individual Channel Enable + + + + + TDC COnfiguration + + Use Pasttrec test as calibration signal + + + Length of the spike rejection. Values 1..10 are not allowed + + + Length of the spike rejection + + + + + Status of the readout handler + + Status of the readout handler FSM + + + Status of the data collector FSM + + + + + + + + Counter for rejected spikes + + + + + + + + diff --git a/xml-db/database/Mimosis.xml b/xml-db/database/Mimosis.xml new file mode 100644 index 0000000..9c27007 --- /dev/null +++ b/xml-db/database/Mimosis.xml @@ -0,0 +1,64 @@ + + + Registers for the Mimosis Readout + + + + + Number of frame headers + + + + + Number of frame trailers + + + + + 16bit words in last frame + + + + + + Counter for header words + + + + + + Counter for trailer words + + + + + + Counter of data words outside of frame + + + + + + + Sensor frame number + + + + + Current word counter + + + + + Buffer fill level + + + + + + +