Project

General

Profile

Bug #17916

readACDC after setConfig is all 0

Added by Miles Lucas almost 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
10/16/2017
Due date:
% Done:

0%

Estimated time:
Duration:

Description

After calling ./bin/setConfig -trig config/trig-laserstand.config ./bin/readACDC reads out 0

History

#1 Updated by Miles Lucas almost 2 years ago

Note that when we call ./bin/setConfig -trig config/trigoff.config readACDC works fine. It appears that some of the settings in our config/trig-laserstand.config are causing issues. I think it is related to the hardware trigger settings.

Edit:
Setting hardware_trig to 1 seems to be the culprit

#2 Updated by Miles Lucas almost 2 years ago

Bug in acdc-daq/src/setConfig
*Line 196:
unsigned int ext_trig_mode = 0x0 | 1 << 3 | 1 << 4 | hrdw_trigsrc << 13;
  • Hrdw_trigsrc is bitshifted left 13 bits, and has 3 bits of data, so the usable data is in bits 15-13
  • This is sent using the usb_read_mode command, with marker 0xc
  • In the firmware, these values get parsed line 796 of ACC-2xSPF/src/usbWrapperACC
    SET_TRIG_SOURCE (2 downto 0) <= USB_INSTRUCTION(14 downto 12);
  • The bits used are 14-12
  • This is a discrepency - change the bit shift in the source code to bitshift 12
    unsigned int ext_trig_mode = 0x0 | 1 << 3 | 1 << 4 | hrdw_trigsrc << 12;
  • Issues has already been committed to master. Have not yet checked for changes in hardware behavior


Also available in: Atom PDF