Question
Can you explain the calibration options in the example code?
Answer
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.