From b150b069efbc3d43a24d335fe984336dd45098b5 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Tue, 23 Aug 2022 17:16:59 +0200 Subject: [PATCH] add xml file for automatic ADC reader --- web/htdocs/addons/mdcupgrade.pl | 10 ++++ xml-db/database/ADC_Controller.xml | 75 ++++++++++++++++++++++++++++++ xml-db/database/MDCUpgrade.xml | 10 +++- 3 files changed, 93 insertions(+), 2 deletions(-) create mode 100644 xml-db/database/ADC_Controller.xml diff --git a/web/htdocs/addons/mdcupgrade.pl b/web/htdocs/addons/mdcupgrade.pl index cbb2817..6d22ff3 100755 --- a/web/htdocs/addons/mdcupgrade.pl +++ b/web/htdocs/addons/mdcupgrade.pl @@ -41,6 +41,16 @@ push(@setup,({name => "HitCount", rates => 1, address => 1})); +push(@setup,({name => "ADCControl", + cmd => "ADC_Controller-0xfe90-Control", + period => 1000, + rates => 1, + address => 1})); +push(@setup,({name => "ADCResult", + cmd => "ADC_Controller-0xfe90-Results", + period => 1000, + rates => 1, + address => 1})); xmlpage::initPage(\@setup,$page); diff --git a/xml-db/database/ADC_Controller.xml b/xml-db/database/ADC_Controller.xml new file mode 100644 index 0000000..839a6cb --- /dev/null +++ b/xml-db/database/ADC_Controller.xml @@ -0,0 +1,75 @@ + + + Registers for the onboard ADC for Trb3sc++ + + + + + ADC Configuration + + Full command register + + + Channel number + + + Set the conversion range + 6.144V + 4.096V + 2.048V + 1.024V + 0.512V + 0.256V + 0.256V + 0.256V + + + Conversion speed select + 8/64 + 26/64 + 32/128 + 64/256 + 128/512 + 250/1000 + 475/1900 + 860/3440 + + + Factor used on result, e.g. in case a voltage divider is used + ERROR + x1 + x2 + x4 + + + + + Configuration Register + + Enable ADC readout + + + Time between two readout cycles + + + + + + + + Readback value + + + + ADC Temperature + + + + + + + diff --git a/xml-db/database/MDCUpgrade.xml b/xml-db/database/MDCUpgrade.xml index b299f50..f85a0b0 100644 --- a/xml-db/database/MDCUpgrade.xml +++ b/xml-db/database/MDCUpgrade.xml @@ -6,7 +6,7 @@ > Registers for the upgraded MDC electronics - + Board COnfiguration @@ -19,6 +19,9 @@ Set test signal for Pasttrec + + Powerdown group of Pasttrec + @@ -48,7 +51,10 @@ Status of the data collector FSM - + + + + -- 2.43.0