From b5eb4a860ea23c263447f2bfb4eb330f1105b962 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Fri, 26 Jan 2018 11:52:24 +0100 Subject: [PATCH] add new register set for new Padiwa designs --- web/htdocs/thresh/threshold.htm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/web/htdocs/thresh/threshold.htm b/web/htdocs/thresh/threshold.htm index d463043..4b1b4c8 100644 --- a/web/htdocs/thresh/threshold.htm +++ b/web/htdocs/thresh/threshold.htm @@ -15,7 +15,7 @@ Board DAC-Chain Channel -Board Type +Board Type Update Interval (ms) Reference (mV) DiRich2 Flash: @@ -85,6 +85,10 @@ function update(bar,scale) { command = (0x8 << 20) + ((chan%16+16) << 24) + (total); command = command.toString(16); } + else if(type == 9) { + command = (0x8 << 20) + ((chan%16) << 24) + (total); + command = command.toString(16); + } else { command = (type << 20) + (chan << 16) + (total); command = command.toString(16); @@ -180,6 +184,11 @@ function setValues() { document.getElementById("timeget").style.background = "#a55"; getdata(cmdstring,anaret2); } + else if(type == 9) { + cmdstring = "../commands/spiexec.pl?"+board+"-d400-"+((((chan%16) << 24)).toString(16))+"-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-"+(1<