mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-06 18:10:40 +02:00
802: jungfrau HW 1.0: adc output clock phase to 120 (#951)
* jungfrau: change adc output clock phase from 180 to 120 for v1.0 boards for reliable readout of adc #2 * formatting
This commit is contained in:
parent
7a28ba03c9
commit
8ada7b6e37
@ -1 +0,0 @@
|
||||
../slsDetectorServers/jungfrauDetectorServer/bin/jungfrauDetectorServerv8.0.0
|
1
serverBin/jungfrauDetectorServerv8.0.2
Symbolic link
1
serverBin/jungfrauDetectorServerv8.0.2
Symbolic link
@ -0,0 +1 @@
|
||||
../slsDetectorServers/jungfrauDetectorServer/bin/jungfrauDetectorServerv8.0.2
|
Binary file not shown.
BIN
slsDetectorServers/jungfrauDetectorServer/bin/jungfrauDetectorServerv8.0.2
Executable file
BIN
slsDetectorServers/jungfrauDetectorServer/bin/jungfrauDetectorServerv8.0.2
Executable file
Binary file not shown.
@ -488,6 +488,7 @@ void setupDetector() {
|
||||
AD9257_SetDefines(ADC_SPI_REG, ADC_SPI_SRL_CS_OTPT_MSK,
|
||||
ADC_SPI_SRL_CLK_OTPT_MSK, ADC_SPI_SRL_DT_OTPT_MSK,
|
||||
ADC_SPI_SRL_DT_OTPT_OFST);
|
||||
AD9257_Set_Jungfrau_Hardware_Version_1_0(isHardwareVersion_1_0());
|
||||
AD9257_Disable();
|
||||
AD9257_Configure();
|
||||
|
||||
|
@ -4,6 +4,10 @@
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
#ifdef JUNGFRAUD
|
||||
void AD9257_Set_Jungfrau_Hardware_Version_1_0(int val);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Set Defines
|
||||
* @param reg spi register
|
||||
|
@ -172,6 +172,14 @@ uint32_t AD9257_DigMask = 0x0;
|
||||
int AD9257_DigOffset = 0x0;
|
||||
int AD9257_VrefVoltage = 0;
|
||||
|
||||
#ifdef JUNGFRAUD
|
||||
int AD9257_is_Jungfrau_Hardware_Version_1_0 = 0;
|
||||
|
||||
void AD9257_Set_Jungfrau_Hardware_Version_1_0(int val) {
|
||||
AD9257_is_Jungfrau_Hardware_Version_1_0 = val;
|
||||
}
|
||||
#endif
|
||||
|
||||
void AD9257_SetDefines(uint32_t reg, uint32_t cmsk, uint32_t clkmsk,
|
||||
uint32_t dmsk, int dofst) {
|
||||
AD9257_Reg = reg;
|
||||
@ -286,8 +294,18 @@ void AD9257_Configure() {
|
||||
AD9257_OUT_BINARY_OFST_VAL | AD9257_OUT_LVDS_IEEE_VAL);
|
||||
|
||||
// output clock phase
|
||||
#ifdef JUNGFRAUD
|
||||
if (AD9257_is_Jungfrau_Hardware_Version_1_0) {
|
||||
LOG(logINFO, ("\tOutput clock phase: 120\n"));
|
||||
AD9257_Set(AD9257_OUT_PHASE_REG, AD9257_OUT_CLK_120_VAL);
|
||||
} else {
|
||||
LOG(logINFO, ("\tOutput clock phase: 180\n"));
|
||||
AD9257_Set(AD9257_OUT_PHASE_REG, AD9257_OUT_CLK_180_VAL);
|
||||
}
|
||||
#else
|
||||
LOG(logINFO, ("\tOutput clock phase: 180\n"));
|
||||
AD9257_Set(AD9257_OUT_PHASE_REG, AD9257_OUT_CLK_180_VAL);
|
||||
#endif
|
||||
|
||||
// all devices on chip to receive next command
|
||||
LOG(logINFO, ("\tAll devices on chip to receive next command\n"));
|
||||
|
@ -6,8 +6,8 @@
|
||||
#define APICTB "8.0.0 0x231109"
|
||||
#define APIGOTTHARD "8.0.0 0x231109"
|
||||
#define APIGOTTHARD2 "8.0.0 0x231109"
|
||||
#define APIJUNGFRAU "8.0.0 0x231109"
|
||||
#define APIEIGER "8.0.0 0x231109"
|
||||
#define APILIB "8.0.1 0x240112"
|
||||
#define APIMOENCH "8.0.2 0x240703"
|
||||
#define APIMYTHEN3 "8.0.2 0x240715"
|
||||
#define APIJUNGFRAU "8.0.2 0x240822"
|
||||
|
Loading…
x
Reference in New Issue
Block a user