mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 15:20:02 +02:00
gotthard2: sleep before configuring on chip dacs, default exptime 0 and default period to 1ms
This commit is contained in:
parent
42124ca97c
commit
36bd91daa3
Binary file not shown.
@ -451,10 +451,15 @@ int readConfigFile() {
|
||||
return initError;
|
||||
}
|
||||
|
||||
// require a sleep before and after the rst dac signal
|
||||
usleep (1 * 1000);
|
||||
|
||||
// inform FPGA that onchip dacs will be configured soon
|
||||
FILE_LOG(logINFO, ("Setting configuration starting bit\n"));
|
||||
bus_w(ASIC_CONFIG_REG, bus_r(ASIC_CONFIG_REG) | ASIC_CONFIG_RST_DAC_MSK);
|
||||
|
||||
usleep (1 * 1000);
|
||||
|
||||
FILE* fd = fopen(CONFIG_FILE, "r");
|
||||
if(fd == NULL) {
|
||||
sprintf(initErrorMessage, "Could not open on-board detector server config file [%s].\n", CONFIG_FILE);
|
||||
|
@ -32,8 +32,8 @@
|
||||
#define DEFAULT_BURST_MODE (BURST_INTERNAL)
|
||||
#define DEFAULT_NUM_FRAMES (1)
|
||||
#define DEFAULT_NUM_CYCLES (1)
|
||||
#define DEFAULT_EXPTIME (1 * 1000 * 1000) // 1 ms
|
||||
#define DEFAULT_PERIOD (1 * 1000 * 1000 * 1000) // 1 s
|
||||
#define DEFAULT_EXPTIME (0) // 0 ms (220ns in firmware)
|
||||
#define DEFAULT_PERIOD (1 * 1000) // 1 ms
|
||||
#define DEFAULT_DELAY_AFTER_TRIGGER (0)
|
||||
#define DEFAULT_HIGH_VOLTAGE (0)
|
||||
#define DEFAULT_TIMING_MODE (AUTO_TIMING)
|
||||
|
@ -8,5 +8,5 @@
|
||||
#define APICTB 0x200131
|
||||
#define APIJUNGFRAU 0x200131
|
||||
#define APIMOENCH 0x200131
|
||||
#define APIGOTTHARD2 0x200131
|
||||
#define APIMYTHEN3 0x200130
|
||||
#define APIGOTTHARD2 0x200204
|
||||
|
Loading…
x
Reference in New Issue
Block a user