ModusToolbox Safety Test Library
Loading...
Searching...
No Matches

General Description

Macros

#define ATOP_AFE_GROUP_0   (0U)
 ATOP ADC group 0 - AFE differential pair AIN0P / AIN0N.
#define ATOP_AFE_GROUP_1   (1U)
 ATOP ADC group 1 - AFE differential pair AIN4P / AIN4N.
#define ATOP_AFE_GROUP_2   (2U)
 ATOP ADC group 2 - AFE differential pair AIN6P / AIN6N.
#define ATOP_AFE_GROUP_3   (3U)
 ATOP ADC group 3 - AFE differential pair AIN8P / AIN8N.
#define ATOP_AFE_GROUP_COUNT   (4U)
 Number of ADC groups, each with one AFE.
#define ATOP_AFE_GAIN_LOW_NUM   (33)
 Numerator of the lower AFE gain (8.25 = 33 / 4).
#define ATOP_AFE_GAIN_LOW_DEN   (4)
 Denominator of the lower AFE gain (8.25 = 33 / 4).
#define ATOP_AFE_GAIN_HIGH_NUM   (33)
 Numerator of the higher AFE gain (16.5 = 33 / 2).
#define ATOP_AFE_GAIN_HIGH_DEN   (2)
 Denominator of the higher AFE gain (16.5 = 33 / 2).
#define ATOP_AFE_GAIN_RATIO   (2)
 Expected ratio of the 16.5x reading to the 8.25x reading (16.5 / 8.25).
#define ATOP_AFE_SATURATION_CODE   (2040)
 Magnitude (12-bit codes) at or above which a signed differential reading is treated as saturated / out of range.
#define ATOP_AFE_CODE_NOISE_FLOOR   (48)
 Fixed slack (codes) added to each acceptance window on top of the percentage tolerance, to absorb quantisation and small-signal noise.
#define ATOP_AFE_DEFAULT_RAW_MIN   (40)
 Suggested lower bound of the raw (AFE-off) differential window (codes).
#define ATOP_AFE_DEFAULT_RAW_MAX   (120)
 Suggested upper bound of the raw (AFE-off) differential window (codes); kept below full-scale/16.5 so the 16.5x reading does not saturate.
#define ATOP_AFE_DEFAULT_TOLERANCE_PCT   (25U)
 Suggested +/- tolerance (percent) on the amplified codes and gain ratio.