CN0300: Calibration Options

Document created by analog-archivist Employee on Feb 23, 2016
Version 1Show Document
  • View in full screen mode

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.

Attachments

    Outcomes