mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-05 17:40:40 +02:00
Pllreset (#560)
* ctb, moench and jungfrau: pll reset at start not happening as no defines
This commit is contained in:
parent
bac32dcba9
commit
d9e34e1657
@ -100,6 +100,7 @@ This document describes the differences between v7.0.0 and v6.x.x
|
|||||||
- jungfrau reset core and usleep removed (fix for 6.1.1 is now fixed in firmware)
|
- jungfrau reset core and usleep removed (fix for 6.1.1 is now fixed in firmware)
|
||||||
- g2 change clkdivs 2 3 4 to defaults for burst and cw mode.
|
- g2 change clkdivs 2 3 4 to defaults for burst and cw mode.
|
||||||
- ctb and moench: allowing 1g non blocking acquire to send data
|
- ctb and moench: allowing 1g non blocking acquire to send data
|
||||||
|
- ctb, moench, jungfrau (pll reset at start fixed, before no defines)
|
||||||
|
|
||||||
2. Resolved Issues
|
2. Resolved Issues
|
||||||
==================
|
==================
|
||||||
|
Binary file not shown.
@ -488,7 +488,13 @@ void setupDetector() {
|
|||||||
#endif
|
#endif
|
||||||
setupUDPCommParameters();
|
setupUDPCommParameters();
|
||||||
|
|
||||||
|
// altera pll
|
||||||
|
ALTERA_PLL_SetDefines(PLL_CNTRL_REG, PLL_PARAM_REG,
|
||||||
|
PLL_CNTRL_RCNFG_PRMTR_RST_MSK, PLL_CNTRL_WR_PRMTR_MSK,
|
||||||
|
PLL_CNTRL_PLL_RST_MSK, PLL_CNTRL_ADDR_MSK,
|
||||||
|
PLL_CNTRL_ADDR_OFST);
|
||||||
ALTERA_PLL_ResetPLLAndReconfiguration();
|
ALTERA_PLL_ResetPLLAndReconfiguration();
|
||||||
|
|
||||||
resetCore();
|
resetCore();
|
||||||
resetPeripheral();
|
resetPeripheral();
|
||||||
cleanFifos();
|
cleanFifos();
|
||||||
@ -548,12 +554,6 @@ void setupDetector() {
|
|||||||
INA226_CalibrateCurrentRegister(I2C_POWER_VD_DEVICE_ID);
|
INA226_CalibrateCurrentRegister(I2C_POWER_VD_DEVICE_ID);
|
||||||
setVchip(VCHIP_MIN_MV);
|
setVchip(VCHIP_MIN_MV);
|
||||||
|
|
||||||
// altera pll
|
|
||||||
ALTERA_PLL_SetDefines(PLL_CNTRL_REG, PLL_PARAM_REG,
|
|
||||||
PLL_CNTRL_RCNFG_PRMTR_RST_MSK, PLL_CNTRL_WR_PRMTR_MSK,
|
|
||||||
PLL_CNTRL_PLL_RST_MSK, PLL_CNTRL_ADDR_MSK,
|
|
||||||
PLL_CNTRL_ADDR_OFST);
|
|
||||||
|
|
||||||
setADCInvertRegister(0); // depends on chip
|
setADCInvertRegister(0); // depends on chip
|
||||||
|
|
||||||
LOG(logINFOBLUE, ("Setting Default parameters\n"));
|
LOG(logINFOBLUE, ("Setting Default parameters\n"));
|
||||||
|
Binary file not shown.
@ -428,7 +428,13 @@ void setupDetector() {
|
|||||||
setupUDPCommParameters();
|
setupUDPCommParameters();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// altera pll
|
||||||
|
ALTERA_PLL_SetDefines(
|
||||||
|
PLL_CNTRL_REG, PLL_PARAM_REG, PLL_CNTRL_RCNFG_PRMTR_RST_MSK,
|
||||||
|
PLL_CNTRL_WR_PRMTR_MSK, PLL_CNTRL_PLL_RST_MSK, PLL_CNTRL_ADDR_MSK,
|
||||||
|
PLL_CNTRL_ADDR_OFST, PLL_CNTRL_DBIT_WR_PRMTR_MSK, DBIT_CLK_INDEX);
|
||||||
ALTERA_PLL_ResetPLL();
|
ALTERA_PLL_ResetPLL();
|
||||||
|
|
||||||
resetCore();
|
resetCore();
|
||||||
resetPeripheral();
|
resetPeripheral();
|
||||||
cleanFifos();
|
cleanFifos();
|
||||||
@ -456,12 +462,6 @@ void setupDetector() {
|
|||||||
LTC2620_Configure();
|
LTC2620_Configure();
|
||||||
resetToDefaultDacs(0);
|
resetToDefaultDacs(0);
|
||||||
|
|
||||||
// altera pll
|
|
||||||
ALTERA_PLL_SetDefines(
|
|
||||||
PLL_CNTRL_REG, PLL_PARAM_REG, PLL_CNTRL_RCNFG_PRMTR_RST_MSK,
|
|
||||||
PLL_CNTRL_WR_PRMTR_MSK, PLL_CNTRL_PLL_RST_MSK, PLL_CNTRL_ADDR_MSK,
|
|
||||||
PLL_CNTRL_ADDR_OFST, PLL_CNTRL_DBIT_WR_PRMTR_MSK, DBIT_CLK_INDEX);
|
|
||||||
|
|
||||||
/* Only once at server startup */
|
/* Only once at server startup */
|
||||||
bus_w(DAQ_REG, 0x0);
|
bus_w(DAQ_REG, 0x0);
|
||||||
|
|
||||||
|
Binary file not shown.
@ -503,7 +503,13 @@ void setupDetector() {
|
|||||||
#endif
|
#endif
|
||||||
setupUDPCommParameters();
|
setupUDPCommParameters();
|
||||||
|
|
||||||
|
// altera pll
|
||||||
|
ALTERA_PLL_SetDefines(PLL_CNTRL_REG, PLL_PARAM_REG,
|
||||||
|
PLL_CNTRL_RCNFG_PRMTR_RST_MSK, PLL_CNTRL_WR_PRMTR_MSK,
|
||||||
|
PLL_CNTRL_PLL_RST_MSK, PLL_CNTRL_ADDR_MSK,
|
||||||
|
PLL_CNTRL_ADDR_OFST);
|
||||||
ALTERA_PLL_ResetPLLAndReconfiguration();
|
ALTERA_PLL_ResetPLLAndReconfiguration();
|
||||||
|
|
||||||
resetCore();
|
resetCore();
|
||||||
resetPeripheral();
|
resetPeripheral();
|
||||||
cleanFifos();
|
cleanFifos();
|
||||||
@ -536,11 +542,6 @@ void setupDetector() {
|
|||||||
LTC2620_Configure();
|
LTC2620_Configure();
|
||||||
resetToDefaultDacs(0);
|
resetToDefaultDacs(0);
|
||||||
|
|
||||||
// altera pll
|
|
||||||
ALTERA_PLL_SetDefines(PLL_CNTRL_REG, PLL_PARAM_REG,
|
|
||||||
PLL_CNTRL_RCNFG_PRMTR_RST_MSK, PLL_CNTRL_WR_PRMTR_MSK,
|
|
||||||
PLL_CNTRL_PLL_RST_MSK, PLL_CNTRL_ADDR_MSK,
|
|
||||||
PLL_CNTRL_ADDR_OFST);
|
|
||||||
// not using setADCInvertRegister command (as it xors the default)
|
// not using setADCInvertRegister command (as it xors the default)
|
||||||
bus_w(ADC_PORT_INVERT_REG, ADC_PORT_INVERT_VAL);
|
bus_w(ADC_PORT_INVERT_REG, ADC_PORT_INVERT_VAL);
|
||||||
|
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
#define APILIB 0x220609
|
#define APILIB 0x220609
|
||||||
#define APIRECEIVER 0x220609
|
#define APIRECEIVER 0x220609
|
||||||
#define APIGUI 0x220609
|
#define APIGUI 0x220609
|
||||||
#define APICTB 0x220916
|
|
||||||
#define APIGOTTHARD 0x220916
|
#define APIGOTTHARD 0x220916
|
||||||
#define APIGOTTHARD2 0x220916
|
#define APIGOTTHARD2 0x220916
|
||||||
#define APIJUNGFRAU 0x220916
|
|
||||||
#define APIMYTHEN3 0x220916
|
#define APIMYTHEN3 0x220916
|
||||||
#define APIMOENCH 0x220916
|
|
||||||
#define APIEIGER 0x220916
|
#define APIEIGER 0x220916
|
||||||
|
#define APICTB 0x220929
|
||||||
|
#define APIMOENCH 0x220929
|
||||||
|
#define APIJUNGFRAU 0x220929
|
||||||
|
Loading…
x
Reference in New Issue
Block a user