This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OPT3101: problem with Auto-HDR mode

Part Number: OPT3101

Hi,

The Auto-HDR mode is used, the configuration as follow:

 this->reg.hdr_thr_high = 5200; // //High Threshold
 this->reg.hdr_thr_low = 1200; // //Low Threshold
this->reg.en_adaptive_hdr = 1; // //Enables adaptive HDR feature

this->reg.illum_dac_h_tx0 = 18; // //High Current settings [058.8mA:2.8mA X 21]
this->reg.illum_scale_h_tx0 = 2; // //Illum scale for H [058.8mA:2.8mA X 21]

this->reg.illum_dac_l_tx0 = 5; // //High Current settings [014.0mA:2.8mA X 05]
this->reg.illum_scale_l_tx0 = 2; // //Illum scale for H [014.0mA:2.8mA X 05]

There are some problems:

1. when the amp is higher than 5200, the chip changes to the low dac; but when the amp is low than 2000, the chip changes to the high dac. the hdr_thr_low(1200) does not work;

2. when use configuration as follow, target is far, chip work with high dac. suddently, an other target come in at a close distance(about 30cm), the dac sometimes does not change, and the amp = 65536, distance = 0.

 this->reg.hdr_thr_high = 24000; // //High Threshold
 this->reg.hdr_thr_low = 5000; // //Low Threshold
this->reg.en_adaptive_hdr = 1; // //Enables adaptive HDR feature

this->reg.illum_dac_h_tx0 = 18; // //High Current settings [058.8mA:2.8mA X 21]
this->reg.illum_scale_h_tx0 = 2; // //Illum scale for H [058.8mA:2.8mA X 21]

this->reg.illum_dac_l_tx0 = 5; // //High Current settings [014.0mA:2.8mA X 05]
this->reg.illum_scale_l_tx0 = 2; // //Illum scale for H [014.0mA:2.8mA X 05]


  • Hi,

    Was the configurator tool used to generate these settings?

    Best,

    Alex

  • Hi Alex:

    The code has been rewritten using C#. The settings are  generated by configuration tool , and than turned to C#.

  • Hi Alex,

      The follow configuration is used:

    this->reg.num_sub_frames = 39; // //Sub frames count
    this->reg.num_avg_sub_frames = 31; // //Average frames count
    this->reg.hdr_thr_high = 5000; // //High Threshold
    this->reg.hdr_thr_low = 1200; // //Low Threshold
    this->reg.en_adaptive_hdr = 1; // //Enables adaptive HDR feature

    The DAC changes when the amp is about 4800 and 1400(not 5000 and 1200). there is no hysteresis, and the DAC changes continually.

    but when I set "num_avg_sub_frames = num_sub_fsmes", and recalculate the amp using AMP Scale, everything goes right. DAC changes when amp is 5000/1200, and the hysteresis appears.

    Does this setting works? Or some settings are wrong?


  • Hi,

    1) Why are the 1200 and 5200 settings being used? 5200 is quite low to be switching to the low current.

    2) Device may report a overflow frame if the output quickly changes before the device can switch back to the lower current. This is indicated by the overflow flag.

    Best,

    Alex