본문 바로가기
아날로그회로(Analog Circuit)/ADC관련

[ZSSC3241] 2차 비선형 보정 및 원시 데이터 수(Second-Order Calibration And The Number Of Raw Data Points)

by linuxgo 2025. 8. 9.
반응형

ZSSC3241 데이터시트에 따르면, 2차 비선형 보정(Second-Order Term, SOT)을 수행하기 위해 필요한 원시 데이터(Raw Data) 포인트 수는 보정의 정확도와 센서 특성에 따라 달라질 수 있지만, 데이터시트에서 명시적으로 최소 포인트 수를 정의하지는 않습니다 (According to the ZSSC3241 datasheet, the number of raw data points required for second-order calibration varies depending on calibration accuracy and sensor characteristics, but the datasheet does not explicitly define a minimum number of points). 그러나 일반적으로 2차 비선형 보정(SOT_sens, SOT_tcg, SOT_tco, SOT_T)을 효과적으로 수행하려면 센서와 온도 데이터의 비선형성을 충분히 표현할 수 있을 만큼의 데이터 포인트가 필요합니다 (However, to effectively perform second-order calibration, sufficient data points are needed to represent the nonlinearity of sensor and temperature data). 아래에서 이를 상세히 분석하고, 필요한 포인트 수를 추정합니다 (Below, this is analyzed in detail, and the required number of points is estimated).

1. 2차 비선형 보정의 개요 (Overview of Second-Order Calibration)

ZSSC3241의 보정 공식은 6.6.3.2절(Digital Sensor-Signal-Conditioning Mathematics)에 설명된 바와 같이, 센서 신호(S)와 온도 신호(T)에 대해 각각 2차 비선형 보정을 수행합니다 (As described in Section 6.6.3.2 of the datasheet, the calibration equations perform second-order nonlinear correction for sensor signal (S) and temperature signal (T)). 관련 계수는 다음과 같습니다 (The relevant coefficients are as follows):

  • SOT_sens: 센서 신호(S)의 2차 비선형 보정 계수 (Second-order nonlinear correction coefficient for sensor signal).
  • SOT_tcg: 온도 의존적 이득(Tcg)의 2차 비선형 보정 계수 (Second-order nonlinear correction coefficient for temperature-dependent gain).
  • SOT_tco: 온도 의존적 오프셋(Tco)의 2차 비선형 보정 계수 (Second-order nonlinear correction coefficient for temperature-dependent offset).
  • SOT_T: 온도 신호(T)의 2차 비선형 보정 계수 (Second-order nonlinear correction coefficient for temperature signal).

이 계수들은 Table 36에 정의된 24비트 데이터 형식으로 저장되며, 보정 공식은 Equation 6~9(Parabolic) 또는 Equation 15~20(S-shaped)에 따라 계산됩니다 (These coefficients are stored in the 24-bit data format defined in Table 36, and the calibration equations are calculated according to Equations 6-9 (Parabolic) or Equations 15-20 (S-shaped)). 2차 비선형 보정은 센서 또는 온도 신호의 포물선(Parabolic) 또는 S자형(S-shaped) 비선형성을 보상합니다 (Second-order calibration compensates for parabolic or S-shaped nonlinearity of sensor or temperature signals).

2. 2차 비선형 보정에 필요한 데이터 포인트 수 (Number of Data Points Required for Second-Order Calibration)

2차 비선형 보정은 본질적으로 2차 다항식(quadratic polynomial)을 피팅하는 과정이므로, 이론적으로 최소 3개의 데이터 포인트가 필요합니다 (Second-order calibration involves fitting a quadratic polynomial, requiring a minimum of three data points in theory). 이는 2차 다항식 y = ax² + bx + c를 정의하기 위해 3개의 독립적인 점이 필요하기 때문입니다 (This is because three independent points are needed to define a quadratic polynomial). 그러나 실제로는 센서와 온도 특성의 복잡성과 캘리브레이션의 정확도를 높이기 위해 더 많은 포인트가 필요할 수 있습니다 (In practice, more points may be needed due to the complexity of sensor and temperature characteristics and to improve calibration accuracy).

최소 요구사항 (Minimum Requirements)

  • 이론적 최소 포인트 수 (Theoretical Minimum Number of Points): 2차 비선형성을 보정하려면 최소 3개의 데이터 포인트가 필요합니다 (A minimum of three data points is required to correct second-order nonlinearity). 이는 S_Raw(원시 센서 신호)와 T_Raw(원시 온도 신호)를 각각 다른 조건(예: 다른 압력, 온도 등)에서 측정하여 계수(SOT_sens, SOT_tcg, SOT_tco, SOT_T)를 계산하는 데 사용됩니다 (This involves measuring S_Raw (raw sensor signal) and T_Raw (raw temperature signal) under different conditions (e.g., different pressures, temperatures) to calculate the coefficients).
  • 실제 요구사항 (Practical Requirements): 데이터시트의 7절(Calibration)에 따르면, 캘리브레이션 과정은 다양한 센서 값(예: 저항 브리지 또는 절대 전압 소스)과 온도에서 원시 데이터를 수집하는 것을 포함합니다 (According to Section 7 of the datasheet, the calibration process involves collecting raw data at various sensor values and temperatures). 비선형 보정의 정확도를 높이기 위해, 일반적으로 3개 이상의 포인트(예: 5~9 포인트)를 수집하는 것이 일반적입니다 (To improve the accuracy of nonlinear correction, it is common to collect more than three points, typically 5-9 points).

계수별 데이터 포인트 요구사항 (Data Point Requirements by Coefficient)

  1. SOT_sens (센서 신호의 2차 비선형 보정 / Second-Order Correction for Sensor Signal):
    • 목적 (Purpose): 센서 신호의 비선형성을 보정 (Corrects nonlinearity in the sensor signal).
    • 필요 데이터 (Required Data): S_Raw를 서로 다른 센서 입력(예: 압력, 힘, 유량 등)에서 최소 3포인트 이상 측정 (Measure S_Raw at least three points under different sensor inputs, e.g., pressure, force, flow).
    • 추천 (Recommendation): 비선형성이 복잡하거나 노이즈가 많을 경우, 5~7 포인트를 측정하여 피팅 정확도를 높임 (For complex nonlinearity or noisy data, measure 5-7 points to improve fitting accuracy).
    • 예시 (Example): 압력 센서의 경우, 낮은 압력, 중간 압력, 높은 압력에서 S_Raw를 측정 (For a pressure sensor, measure S_Raw at low, medium, and high pressures).
  2. SOT_tcg 및 SOT_tco (온도 의존적 이득 및 오프셋의 2차 비선형 보정 / Second-Order Correction for Temperature-Dependent Gain and Offset):
    • 목적 (Purpose): 온도 변화에 따른 이득(Tcg)과 오프셋(Tco)의 비선형성을 보정 (Corrects nonlinearity in temperature-dependent gain (Tcg) and offset (Tco)).
    • 필요 데이터 (Required Data): T_Raw와 S_Raw를 최소 3개의 온도 지점(예: -40°C, 25°C, 125°C)에서 측정 (Measure T_Raw and S_Raw at least three temperature points, e.g., -40°C, 25°C, 125°C).
    • 추천 (Recommendation): 온도 범위 전체를 커버하기 위해 5~9 포인트를 균등하게 분포시켜 측정 (Measure 5-9 points evenly distributed across the temperature range, e.g., -40°C, -10°C, 25°C, 70°C, 125°C).
    • 예시 (Example): 각 온도에서 S_Raw와 T_Raw를 수집하여 Tcg와 Tco의 2차 비선형성을 계산 (Collect S_Raw and T_Raw at each temperature to calculate the second-order nonlinearity of Tcg and Tco).
  3. SOT_T (온도 신호의 2차 비선형 보정 / Second-Order Correction for Temperature Signal):
    • 목적 (Purpose): 온도 신호(T_Raw)의 비선형성을 보정 (Corrects nonlinearity in the temperature signal).
    • 필요 데이터 (Required Data): T_Raw를 최소 3개의 온도 지점에서 측정 (Measure T_Raw at least three temperature points).
    • 추천 (Recommendation): 온도 센서의 비선형성을 정확히 모델링하기 위해 5~7 포인트를 측정 (Measure 5-7 points to accurately model the nonlinearity of the temperature sensor).

실제 캘리브레이션 포인트 수 (Actual Number of Calibration Points)

데이터시트의 7절(Calibration)에서는 명시적으로 포인트 수를 언급하지 않지만, "다양한 센서 값과 온도에서 원시 데이터를 수집"해야 한다고 설명합니다 (Section 7 of the datasheet does not explicitly mention the number of points but states that raw data should be collected at various sensor values and temperatures). 이는 센서와 온도의 조합을 고려해야 함을 의미합니다 (This implies that combinations of sensor and temperature conditions must be considered).

예를 들어, 센서 신호(S_Raw)와 온도(T_Raw)를 보정하려면 최소 3×3 = 9 포인트(3개의 센서 입력 × 3개의 온도 지점)를 측정하는 것이 일반적입니다 (For example, to calibrate S_Raw and T_Raw, a minimum of 3×3 = 9 points (3 sensor inputs × 3 temperature points) is typically measured). 이는 선형 및 2차 비선형 계수(Gain_S, Offset_S, Tcg, Tco, SOT_sens, SOT_tcg, SOT_tco)를 정확히 결정하기 위한 충분한 데이터를 제공합니다 (This provides sufficient data to accurately determine linear and second-order coefficients). 더 높은 정확도를 위해 5×5 = 25 포인트(5개의 센서 입력 × 5개의 온도 지점)와 같은 매트릭스를 사용하는 경우도 있습니다 (For higher accuracy, a 5×5 = 25-point matrix may be used).

3. 캘리브레이션 절차 (Calibration Procedure)

데이터시트의 7절(Calibration)에 따르면, 캘리브레이션 과정은 다음 단계를 포함합니다 (According to Section 7 of the datasheet, the calibration process includes the following steps):

  1. 고유 ID 할당 (Unique ID Assignment): ZSSC3241에 고유 식별자를 NVM에 저장 (Store a unique identifier in the NVM of the ZSSC3241).
  2. 원시 데이터 수집 (Raw Data Collection): 다양한 센서 값(예: 저항 브리지의 저항 변화)과 온도에서 S_Raw와 T_Raw를 수집 (Collect S_Raw and T_Raw at various sensor values and temperatures).
  3. 계수 계산 및 저장 (Coefficient Calculation and Storage): 수집된 데이터를 기반으로 보정 계수(Gain_S, Offset_S, Tcg, Tco, SOT_sens, SOT_tcg, SOT_tco, SOT_T, SENS_shift, T_shift)를 계산하고 NVM에 저장 (Calculate calibration coefficients based on collected data and store them in NVM).

2차 비선형 보정 데이터 수집 예시 (Example of Second-Order Calibration Data Collection):

  • 센서 입력 (Sensor Input): 예를 들어, 압력 센서의 경우 0%, 50%, 100% 압력 지점에서 S_Raw 측정 (For a pressure sensor, measure S_Raw at 0%, 50%, and 100% pressure points).
  • 온도 (Temperature): -40°C, 25°C, 125°C에서 T_Raw 측정 (Measure T_Raw at -40°C, 25°C, and 125°C).
  • 조합 (Combination): 각 압력 지점에서 3개의 온도 조건을 측정하여 최소 9포인트(3×3) 데이터 세트를 생성 (Measure three temperature conditions at each pressure point to create a minimum of 9-point (3×3) dataset).
  • 계산 (Calculation): 수집된 데이터를 사용하여 2차 다항식 피팅(예: 최소 제곱법)을 통해 SOT 계수를 계산 (Use collected data to calculate SOT coefficients via quadratic polynomial fitting, e.g., least squares method).

4. 추천 포인트 수 (Recommended Number of Points)

  • 최소 포인트 (Minimum Points): 이론적으로 각 2차 비선형 계수(SOT_sens, SOT_tcg, SOT_tco, SOT_T)를 결정하려면 각각 최소 3포인트가 필요 (Theoretically, a minimum of three points is needed for each second-order coefficient). 따라서 센서와 온도를 모두 고려하면 최소 9포인트(3개의 센서 입력 × 3개의 온도) (Thus, considering both sensor and temperature, a minimum of 9 points is required).
  • 실제 추천 포인트 (Practical Recommended Points): 정확도와 안정성을 위해 5~7개의 센서 입력과 5~7개의 온도 지점을 측정하는 것이 일반적이며, 이는 25~49 포인트(5×5 또는 7×7)를 의미 (For accuracy and stability, measure 5-7 sensor inputs and 5-7 temperature points, resulting in 25-49 points).
  • 고정밀 애플리케이션 (High-Precision Applications): 의료 기기나 산업용 센서와 같이 높은 정밀도가 필요한 경우, 더 많은 포인트(예: 7×7=49 또는 9×9=81)를 수집하여 계수의 정확도를 높일 수 있음 (For high-precision applications like medical or industrial sensors, collect more points, e.g., 49 or 81 points).

5. 추가 고려사항 (Additional Considerations)

  • Auto-Zero (AZ): 데이터시트의 6.5절에 따르면, Auto-Zero를 활성화하면 신호-노이즈 비율이 개선되지만 업데이트 속도가 느려집니다 (According to Section 6.5, enabling Auto-Zero improves signal-to-noise ratio but slows update speed). 2차 비선형 보정을 위해 AZ를 사용할 경우, 각 포인트에서 AZS(센서 Auto-Zero)와 AZT(온도 Auto-Zero) 데이터를 추가로 수집해야 할 수 있습니다 (When using AZ for second-order calibration, additional AZS and AZT data may need to be collected).
  • NVM 설정 (NVM Configuration): 보정 계수는 NVM에 저장되며, SOT_sens는 0EHEX, 0FHEX, SOT_tcg는 09HEX, 0AHEX, SOT_tco는 0BHEX, SOT_T는 10HEX, 11HEX에 저장됩니다 (Coefficients are stored in NVM at addresses like SOT_sens: 0EHEX, 0FHEX; SOT_tcg: 09HEX, 0AHEX; etc.).
  • SOT_curve 선택 (SOT Curve Selection): Parabolic(SOT_curve = 0) 또는 S-shaped(SOT_curve = 1)를 선택하여 보정 공식을 조정 (Select Parabolic or S-shaped curve to adjust the calibration equation). 센서 특성에 따라 적합한 곡선 유형을 선택해야 하며, 이는 데이터 포인트의 분포에 영향을 줄 수 있음 (The appropriate curve type depends on sensor characteristics and may affect data point distribution).
  • 노이즈와 안정성 (Noise and Stability): 데이터시트의 6.5절에서 언급된 바와 같이, 노이즈가 많은 환경에서는 더 많은 포인트를 수집하여 평균값을 사용하거나, Oversample-x Measure 명령(ACHEX~AFHEX)을 사용하여 평균화된 데이터를 수집할 수 있습니다 (In noisy environments, collect more points for averaging or use Oversample-x Measure commands).

6. 결론 (Conclusion)

ZSSC3241에서 2차 비선형 보정을 위해 필요한 최소 원시 데이터 포인트 수는 이론적으로 9포인트(3개의 센서 입력 × 3개의 온도 지점)입니다 (The minimum number of raw data points required for second-order calibration is theoretically 9 points). 그러나 실제 애플리케이션에서는 정확도와 안정성을 위해 25~49 포인트(5×5 또는 7×7)를 수집하는 것이 일반적이며, 고정밀 애플리케이션에서는 더 많은 포인트를 사용할 수 있습니다 (In practice, 25-49 points are typically collected, with more points for high-precision applications). 캘리브레이션 과정은 다양한 조건에서 S_Raw와 T_Raw를 수집하고, 이를 기반으로 2차 다항식 피팅을 통해 SOT 계수를 계산하는 것을 포함합니다 (The calibration process involves collecting S_Raw and T_Raw under various conditions and calculating SOT coefficients via quadratic polynomial fitting). 데이터시트의 7절(Calibration)Equation 6~22를 참조하여 적절한 캘리브레이션 전략을 설계하세요 (Refer to Section 7 and Equations 6-22 to design an appropriate calibration strategy).

반응형