Osram ams TSL2521 Скачать руководство пользователя страница 18

 

 

Document Feedback 

TSL2521 ALS/Flicker 

 

 

ALS Result Data Format 

 

 

Application Note 

• PUBLIC 

 

AN001042 

• v1-01 • 2022-Jan-27 

23

 

│ 17 

 

3.5.1 

Analog Saturation 

Analog saturation means that the signal from the photodiodes amplified by the gain stage is that high 
that it cannot be checked fast enough by the modulator circuit. It is signaled by the bits 
als_datax_analog_saturation_status dedicated for each modulator in register 

ALS_STATUS

, the 

result set of all modulators needs to be ignored in this case. The ALS_DATAx register of the affected 
modulator is forced to the value 0xFFFF additionally, in case of 24-bit FIFO format to 0xFFFFFF, in 
case of 32-bit FIFO format to 0xFFFFFF. Analog saturation sets the modulator interrupt flag mint in 
register 

STATUS

 as well. 

In case of manual gain setting the gain needs to be reduced, in case of enabled saturation AGC this is 
done automatically. If a gain of only 0.5x does not remove the saturation condition the number of used 
photodiodes for this filter needs to be reduced with the SMUX registers in the sequencer section. 

3.5.2 

Digital Saturation 

The als_digital_saturation flag in register 

STATUS2

 is set if an internal ALS results cannot be 

expressed in the data format chosen by als_msb_position in register 

MEAS_MODE1

. Additionally, the 

ALS_DATA

x register of the affected modulator is forced to the value 0xFFFE, in case of 24-bit FIFO 

format to 0xFFFFFE. Digital saturation sets the modulator interrupt flag mint in register 

STATUS

 as 

well. 

Like for analog saturation this can be solved by reducing the gain - if not done by the AGC 
automatically 

– or by reducing the number of photodiodes connected to the affected modulator. In 

contrast to analog saturation a reduction of the ALS integration time has the same effect. 

3.5.3 

Maximum Value of ALS Result 

The maximum value of the ALS result can be important to check because it can be reached, 
depending on the als_nr_samples and sample_time settings, without getting analog or digital 
saturation. Nevertheless, measurements beyond this maximum value will always show the same value 
and are therefore not linear anymore. 

This maximum value needs to be checked on host side and in case of occurrence marked as 
saturation due to maximum value reached, the sensor does not recognize this nonlinearity. Equation 7 
shows the calculation for measurements when Residuals are disabled, the factor 16 at the end takes 
care for the 4 bits reserved for Residuals, it has to be omitted if the 16-bit data results transfer 
described above is used. 

Equation 7: 

𝐴𝐿𝑆_𝑚𝑎𝑥_𝑣𝑎𝑙𝑢𝑒  = ((𝑎𝑙𝑠_𝑛𝑟_𝑠𝑎𝑚𝑝𝑙𝑒𝑠  + 1)   ∗ (𝑠𝑎𝑚𝑝𝑙𝑒_𝑡𝑖𝑚𝑒  + 1)   − 2)   ∗ 16 

In case of enabled Residual measurement the calculation is not that easy anymore since the 
maximum value can change a bit with the Residual measurement time and due to other reasons. 
In order to be on the save side the result of the following calculation and every bigger value should be 
considered as saturation due to maximum value reached. 

Содержание ams TSL2521

Страница 1: ...Product Document Published by ams OSRAM Group...

Страница 2: ...Application Note AN001042 TSL2521 ALS Flicker Settings and Comparison to Legacy ALS Devices v1 01 2022 Jan 27...

Страница 3: ...C 11 2 6 Wait Time 12 3 ALS Result Data Format 13 3 1 Internal Data Format 13 3 2 16 Bit Data Full Count Results in ALS_DATA Registers 14 3 3 20 Bit Data Result in ALS_DATA Registers Including 4 Bit R...

Страница 4: ...e data compression features and measurements can be planned in sequences with individual settings Additionally a new residual measurement feature offers higher resolution at lower gain These new featu...

Страница 5: ...odes like Clear C and Infrared IR but after the two available ALS modulators modulator 0 and modulator 1 Figure 1 shows the number and filter type of the six available photodiodes on TSL2521 The photo...

Страница 6: ...ement_sequencer_als_pattern in register MEAS_SEQR_ALS_FD_1 for both modulators by default ALS with both modulators is enabled for step 0 only Flicker measurement can be enabled for each modulator indi...

Страница 7: ...ution results in an effective gain of 4096x in this case but at the gain non linearity of 256x which is rather low In order to use the second gain table mod_gain_select has to be set to 3 before start...

Страница 8: ...red or not the way to get back to the same number space comparable to legacy devices is to divide the results by 16 in this case the decimal places show the residual amount The GUI provided by ams OSR...

Страница 9: ...al measurement time This reduces the ALS integration time accordingly but only by a very small amount and in case of no flicker measurement during the same step most times it can be neglected as shown...

Страница 10: ...n as set in fd_nr_samples in registers FD_NR_SAMPLES0 and FD_NR_SAMPLES1 and increases at the same time the ALS result as often as set in als_nr_samples in registers ALS_NR_SAMPLES0 and ALS_NR_SAMPLES...

Страница 11: ...ation and Proposed Settings Item Value dec Customer Example Specification Update interval 0 5 s ALS integraton time 50 ms Max flicker frequency 2 kHz FFT bin size 10 Hz Proposal Sample time 125 s Samp...

Страница 12: ...nt_sequencer_agc_asat_pattern in register MEAS_SEQR_STEP1_MOD_PHDX_SMUX_H individually for each sequencer step This setting is valid for both modulators The second one is the predict AGC that defines...

Страница 13: ...sabled by clearing bit mod_calib_nth_iteration_az_enable 2 6 Wait Time Related to ALS measurement on legacy ALS devices like TCS3707 was the Wait time that defined the sample rate of the ALS measureme...

Страница 14: ...As shown in Figure 10 the maximum result width of 26 bit including 4 bit Residual counts requires als_msb_position to be set to 6 In most applications the second shown format of 24 bit is a good setti...

Страница 15: ...taining Residuals later since the number space is a different one without the 4 bits on LSB side 3 3 20 Bit Data Result in ALS_DATA Registers Including 4 Bit Residuals It is possible to transfer the 1...

Страница 16: ...full counts result in the ALS_DATAx is shifted by 4 bits to the left or simply multiplied by 16 on host side to keep the data consistent over the whole range and to stay in the same 20 bit number spa...

Страница 17: ...urement in different steps of the sequencer If this is not possible the bit do_als_final_processing in register CFG1 has to be set This delays the writing of ALS data until all flicker data is written...

Страница 18: ...0xFFFE in case of 24 bit FIFO format to 0xFFFFFE Digital saturation sets the modulator interrupt flag mint in register STATUS as well Like for analog saturation this can be solved by reducing the gain...

Страница 19: ...Document Feedback TSL2521 ALS Flicker ALS Result Data Format Application Note PUBLIC AN001042 v1 01 2022 Jan 27 23 18 Equation 8 _ _ _ _ _ _ 1 _ 1 22 16...

Страница 20: ...to reduce the number of transferred flicker data bits in order to reduce I2 C traffic For high flicker samples rates the dynamic range is lower so the absolute number of bits of a transferred sample...

Страница 21: ...t reduces the I2 C traffic significantly the drivers provided by ams OSRAM show and document the use of these features 4 3 Flicker Data Transfer Via FIFO Flicker data is always written to the FIFO if...

Страница 22: ...1 Bit and Filled Up FIFO Byte The flicker data can be read out from register FIFO_DATA at any time The right procedure is to get firstly fifo_lvl by reading FIFO_LEVEL 0xFD and FIFO_STATUS0 0xFE as bl...

Страница 23: ...formation Changes from previous version to current revision v1 01 Page Initial version Corrected number of preferred modulator for flicker measurements 4 Page and figure numbers for the previous versi...

Страница 24: ...otice RoHS Compliant ams Green Statement RoHS Compliant The term RoHS compliant means that ams OSRAM AG products fully comply with current RoHS directives Our semiconductor products do not contain any...

Отзывы: