Author Topic: SP7 and ADC  (Read 16023 times)

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3188
    • View Profile
    • uTasker
Re: SP7 and ADC
« Reply #15 on: June 03, 2018, 05:47:10 PM »
Hi Raffaele

This discussion is for the Coldfire V2 ADC, which doesn't use a calibration.

For the Kinetis ADC see fnConfigureADC() in ADC_Timers.h which performs calibration on first use:

static unsigned long ulCalibrate = ADC_CALIBRATE;

...
adc_setup.int_adc_mode = (ulCalibrate | ADC_SELECT_INPUTS_A | ADC_CLOCK_BUS_DIV_2 | ...
...
fnConfigureInterrupt((void *)&adc_setup);
ulCalibrate = 0;  // performed only once


Regards

Mark