mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 03:10:02 +02:00
Dev: m3 clkdiv0 20 (#924)
* m3: clk 0 changed from 10 to 20 (100MHz to 50MHz) * g2: startup clk div back to 10 as in firmware but setting in software startup to 20 * m3: minor print error if clk divider > max
This commit is contained in:
parent
bf523c0c5e
commit
ce7f01bdc4
Binary file not shown.
Binary file not shown.
@ -480,6 +480,11 @@ void setupDetector() {
|
||||
READOUT_PLL_VCO_FREQ_HZ, SYSTEM_PLL_VCO_FREQ_HZ);
|
||||
ALTERA_PLL_C10_ResetPLL(READOUT_PLL);
|
||||
ALTERA_PLL_C10_ResetPLL(SYSTEM_PLL);
|
||||
// change startup clock divider in software
|
||||
// because firmware only sets max clock divider
|
||||
setClockDividerWithTimeUpdateOption(READOUT_C0, DEFAULT_READOUT_C0_STARTUP,
|
||||
0);
|
||||
|
||||
// hv
|
||||
DAC6571_SetDefines(HV_HARD_MAX_VOLTAGE, HV_DRIVER_FILE_NAME);
|
||||
// dac
|
||||
@ -2333,6 +2338,7 @@ int setClockDividerWithTimeUpdateOption(enum CLKINDEX ind, int val,
|
||||
return FAIL;
|
||||
}
|
||||
if (val < 2 || val > getMaxClockDivider()) {
|
||||
LOG(logERROR, ("Invalid clock divider %d\n", val));
|
||||
return FAIL;
|
||||
}
|
||||
char *clock_names[] = {CLK_NAMES};
|
||||
|
@ -65,6 +65,8 @@
|
||||
#define DEFAULT_SYSTEM_C2 (5) //(200000000) // smp_clk, 200 MHz const
|
||||
#define DEFAULT_TRIMMING_RUN_CLKDIV (40) // (25000000) // 25 MHz
|
||||
|
||||
#define DEFAULT_READOUT_C0_STARTUP (20) //(50000000) // rdo_clk, 50 MHz
|
||||
|
||||
#define DEFAULT_ASIC_LATCHING_NUM_PULSES (10)
|
||||
#define DEFAULT_MSTR_OTPT_P1_NUM_PULSES (20)
|
||||
#define DEFAULT_ADIF_PIPELINE_VAL (8)
|
||||
|
@ -8,9 +8,7 @@
|
||||
#define APIGOTTHARD "developer 0x240207"
|
||||
#define APIGOTTHARD2 "developer 0x240207"
|
||||
#define APIJUNGFRAU "developer 0x240207"
|
||||
#define APIMYTHEN3 "developer 0x240207"
|
||||
#define APIMOENCH "developer 0x240207"
|
||||
#define APIXILINXCTB "developer 0x240207"
|
||||
#define APIEIGER "developer 0x240207"
|
||||
#define APIMOENCH "developer 0x240703"
|
||||
#define APIMOENCH "developer 0x240703"
|
||||
#define APIMYTHEN3 "developer 0x240715"
|
||||
|
Loading…
x
Reference in New Issue
Block a user