Skip to content

Generalize the S-bit rate scan

Description

At the moment, the S-bit rate scan can be used only to scan the THR_ARM_DAC register in whichever mode the VFAT is configured. So far this was enough to understand and configure the VFAT. However, some investigations made us believe the THR_ZCC_DAC may be important. It should be possible to scan it as well.

Possible fixes

Implement the appropriate parameters in the calibration suite interface to scan the THR_ARM_DAC DAC and, at first, the THR_ZCC_DAC DAC.

The gem::hardware::calibration::sbitRateScanParallel function is already generic enough. Only the argument CFG_THR_ARM_DAC needs to be replaced by CFG_THR_ZCC_DAC.

One also needs to understand if the VFAT mode needs to be changed. So far the only meaningful scan was taken with the VFAT in ZCC mode, i.e.

  • CFG_SEL_COMP_MODE == 2
  • CFG_FORCE_EN_ZCC == 1