JAJSLS3 December   2022 OPT4048

PRODUCTION DATA  

  1. 特長
  2. アプリケーション
  3. 概要
  4. Revision History
  5. 概要 (続き)
  6. Pin Configuration and Functions
  7. Specifications
    1. 7.1 Absolute Maximum Ratings
    2. 7.2 ESD Ratings
    3. 7.3 Recommended Operating Conditions
    4. 7.4 Thermal Information
    5. 7.5 Electrical Characteristics
    6. 7.6 Typical Characteristics
  8. Detailed Description
    1. 8.1 Overview
    2. 8.2 Functional Block Diagram
    3. 8.3 Feature Description
      1. 8.3.1 Spectral Matching to CIE
      2. 8.3.2 Automatic Full-Scale Range Setting
      3. 8.3.3 Output Register CRC and Counter
        1. 8.3.3.1 Output Sample Counter
        2. 8.3.3.2 Output CRC
        3. 8.3.3.3 Threshold Detection
      4. 8.3.4 Device Functional Modes
        1. 8.3.4.1 Modes of Operation
        2. 8.3.4.2 Interrupt Modes of Operation
        3. 8.3.4.3 Light Range Selection
        4. 8.3.4.4 Selecting Conversion Time
        5. 8.3.4.5 Light and Color Measurement
        6. 8.3.4.6 Light Resolution
        7. 8.3.4.7 Programming
          1. 8.3.4.7.1 I2C Bus Overview
            1. 8.3.4.7.1.1 Serial Bus Address
            2. 8.3.4.7.1.2 Serial Interface
          2. 8.3.4.7.2 Writing and Reading
            1. 8.3.4.7.2.1 High-Speed I2C Mode
            2. 8.3.4.7.2.2 Burst Read Mode
            3. 8.3.4.7.2.3 General-Call Reset Command
            4. 8.3.4.7.2.4 SMBus Alert Response
    4. 8.4 Register Maps
      1. 8.4.1 ALL Register Map
  9. Application and Implementation
    1. 9.1 Application Information
    2. 9.2 Typical Application
      1. 9.2.1 Electrical Interface
      2. 9.2.2 Design Requirements
        1. 9.2.2.1 Optical Interface
      3. 9.2.3 Detailed Design Procedure
        1. 9.2.3.1 Optomechanical Design
      4. 9.2.4 Application Curves
    3. 9.3 Do's and Don'ts
    4. 9.4 Power Supply Recommendations
    5. 9.5 Layout
      1. 9.5.1 Layout Guidelines
      2. 9.5.2 Layout Example
      3. 9.5.3 Soldering and Handling Recommendations
  10. 10Device and Documentation Support
    1. 10.1 Documentation Support
      1. 10.1.1 Related Documentation
    2. 10.2 ドキュメントの更新通知を受け取る方法
    3. 10.3 サポート・リソース
    4. 10.4 Trademarks
    5. 10.5 静電気放電に関する注意事項
    6. 10.6 用語集
  11. 11Mechanical, Packaging, and Orderable Information

パッケージ・オプション

メカニカル・データ(パッケージ|ピン)
サーマルパッド・メカニカル・データ
発注情報

Light and Color Measurement

The OPT4048 device measures light on 4 independent channels and updates output registers with proportional ADC codes. Updated are based on the mode of operation as described in Section 8.3.4.1. If readout of output registers is performed before a successful completion of a measurement, the previous measurement is what would be read out. Output of the each channel is represented by two parts (i) 4 bits of EXPONENT_CHx and (ii) 20 bits of MANTISSA_CHx. This arrangement of binary logarithmic full-scale range with linear representation with in a range, helps in covering a large dynamic range of measurements. MANTISSA here represents the linear ADC codes proportional to the measured light within a given full-scale range and the EXPONENT_CHx represents the current-full scale range selected. The selected range can be automatically determined by the auto-range selection logic or manually selected as per Table 8-3.

Lux level can be determined using the following equations:

Equation 1. MANTISSA_CHx=(RESULT_MSB_CHx<<8) + RESULT_LSB_CHx

or

Equation 2. MANTISSA_CHx=(RESULT_MSB_CHx x 2^8) + RESULT_LSB_CHx

where RESULT_MSB_CHx, RESULT_LSB_CHx and EXPONENT_CHx are registers part of the output register for each channel

RESULT_MSB_CHx register carries the most significant 12 bits of the MANTISSA_CHx and RESULT_LSB_CHx register carries the least significant 8 bits of the MANTISSA_CHx. MANTISSA_CHx is then computed using the above equations to get the 20 bit number. EXPONENT_CHx is directly read from the register which is 4 bits.

Once the EXPONENT_CHx and MANTISSA_CHx portions are calculated the linearized ADC_CODES_CHx is calculated using the following equation:

Equation 3. ADC_CODES_CHx = (MANTISSA_CHx<<EXPONENT_CHx)

or

Equation 4. ADC_CODES_CHx = (MANTISSA_CHx x 2^EXPONENT_CHx)

With maximum value for register EXPONENT_CHx being 8 ADC_CODES is effectively a 28 bit number. The semi-logarithmic numbers have been converted to a linear ADC_CODES_CHx representation making simple to convert to lux and CIE XY color coordinates

Conversion of the raw ADC codes to the CIE colorimetric X, Y and lux are given by the equation below

Equation 5. adc_codes_ch0adc_codes_ch1adc_codes_ch2adc_codes_ch3 m0xm0ym0zm0lm1xm1ym1zm1lm2xm2ym2zm2lm3xm3ym3zm3l=xyzlux
Equation 6. CIEx=xx + y + z
Equation 7. CIEy=yx + y + z

The conversion matrix can be customized based on target application and details for the same can be found in Section 9.2.4.

Lux Calculations

As listed in the Equation 16 lux values can be obtained along with the color information as part of the matrix. However, isolating the lux calculations from the matrix can be useful. In that case, the matrix can be simplified to remove lux calculations as shown below

Equation 8. a d c _ c o d e s _ c h 0 a d c _ c o d e s _ c h 1 a d c _ c o d e s _ c h 2 a d c _ c o d e s _ c h 3   m 0 x m 0 y m 0 z m 1 x m 1 y m 1 z m 2 x m 2 y m 2 z m 3 x m 3 y m 3 z = x y z

Lux can be simply calculated using the following equation

Equation 9. lux = adc_codes_ch1 x 2.15e-3

Threshold Detection Calculations

Threshold result registers THRESHOLD_H_RESULT and THRESHOLD_H_RESULT are 12 bit, while threshold exponent registers THRESHOLD_H_EXPONENT and THRESHOLD_L_EXPONENT are 4 bits. Since threshold is compared at linear ADC_CODES_CHx, the threshold registers are padded with zeros internally as shown to compare with the ADC_CODES_CHx

Equation 10. ADC_CODES_TH = THRESHOLD_H_RESULT << (8 + THRESHOLD_H_EXPONENT)

or

Equation 11. ADC_CODES_TH = THRESHOLD_H_RESULT x 2^(8 + THRESHOLD_H_EXPONENT)

and

Equation 12. ADC_CODES_TL = THRESHOLD_L_RESULT << (8 + THRESHOLD_L_EXPONENT)

or

Equation 13. ADC_CODES_TL=THRESHOLD_L_RESULT x 2^(8 + THRESHOLD_L_EXPONENT)

Threshold are then compared as shown to detect Fault events.

Equation 14. If ADC_CODES_CHx < ADC_CODES_TL a Fault Low is detected

and

Equation 15. If ADC_CODES_CHx > ADC_CODES_TH a Fault High is detected

Based on the FAULT_COUNT register setting, with consecutive Fault High or Fault Low events, respective FLAG_H and FLAG_L registers are set. Clearly understanding the difference between THRESHOLD_H_EXPONENT, THRESHOLD_H_RESULT, THRESHOLD_L_EXPONENT, THRESHOLD_L_RESULT and the output registers is important to be able to set appropriate threshold based on application needs. More details can be found in Section 8.3.4.2.