Search FAQs on the left to see if your question has been answered. Click on the dropdown to view all of the documents associated with the product. If you can't find your question, click on Ask a Question

CN0300: Calibration Options

Can you explain the calibration options in the example code?

 

Two #defines in the “Thermocouple_to_DAC.c” configure the calibration settings
for the ADC  and the DAC.

For the ADC:
#define calibrateADC1 0 // Set to 0 if you don't want to calibrate
     // Set to 1 if you want to calibrate externally and save to flash
    // set to 2 if you want to load previously saved values from flash
By default, a value of 0 is used

For the DAC:
#define calibrateDAC  1 // Set to 0 if you don't want to calibrate and just use
default values
   // Set to 1 if you want to calibrate externally and save to flash
   // set to 2 if you want to load previously saved values from flash
By default, a value of 1 is used.

To use any calibration mode, you must have the UART connected to a PC – use the
SWD-UART interface board to connect to a USB port of your PC – see the CN0300
document for more details.
Comments
Anonymous
Related