MSP430™CapTIvateSoftwareLibraryAPIGuide
1_83_00_05
|
This module contains sensor calibration routines. More...
Functions | |
void | CAPT_calibrateSensor (tSensor *pSensor) |
void | CAPT_calibrateSensorWithEMC (tSensor *pSensor) |
void | CAPT_calibrateGain (tSensor *pSensor, volatile bool *pbEndOfConversionFlag, uint8_t ui8Frequency) |
void | CAPT_calibrateBiasCurrentTrim (tSensor *pSensor, volatile bool *pbEndOfConversionFlag, uint8_t ui8Frequency) |
Only valid on certain devices, please consult device-specific datasheet. More... | |
void | CAPT_calibrateOffset (tSensor *pSensor, volatile bool *pbEndOfConversionFlag, uint8_t ui8Frequency) |
This module contains sensor calibration routines.
void CAPT_calibrateSensor | ( | tSensor * | pSensor | ) |
The calibrate sensor function calibrates all elements in the sensor based on the sensor's input conversion gain and conversion count parameters.
This routine calibrates at one frequency only, and is intented to be used in applications where noise immunity (EMC) features are disabled.
After this function has completed running, the following outputs are set:
pSensor | is a pointer to the sensor to adjust |
void CAPT_calibrateSensorWithEMC | ( | tSensor * | pSensor | ) |
The calibrate sensor function runs all of the necessary calibration routines to achieve the desired sensitivity for a sensor with EMC (noise immunity) enabled. This involves calibrating gain and offset at 4 conversion frequencies based on the sensor's input conversion gain and conversion count parameters, and ensuring that all calibration values are valid.
After this function has completed running, the following outputs are set:
pSensor | is a pointer to the sensor to adjust |
void CAPT_calibrateGain | ( | tSensor * | pSensor, |
volatile bool * | pbEndOfConversionFlag, | ||
uint8_t | ui8Frequency | ||
) |
The calibrate gain parameter function identifies the correct gain ratio to achieve the specified conversion gain. Note that this calibration will clear out any offset applied by a call to CAPT_calibrateOffset(). Call this calibration function first.
pSensor | is a pointer to the sensor to calibrate |
void CAPT_calibrateBiasCurrentTrim | ( | tSensor * | pSensor, |
volatile bool * | pbEndOfConversionFlag, | ||
uint8_t | ui8Frequency | ||
) |
Only valid on certain devices, please consult device-specific datasheet.
The calibrate bias current trim parameter function identifies the correct bias current trim to achieve the specified conversion gain. Note that this calibration should be called after CAPT_calibrateGain() but before CAPT_calibrateOffset().
pSensor | is a pointer to the sensor to calibrate |
void CAPT_calibrateOffset | ( | tSensor * | pSensor, |
volatile bool * | pbEndOfConversionFlag, | ||
uint8_t | ui8Frequency | ||
) |
The calibrate offset parameter function identifies the correct offset tap to achieve the specified conversion count.
pSensor | is a pointer to the sensor to calibrate |