This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

calling Device_cal twice



Hi,

Device_cal() is called from BootROM before program from flash is started.
When program is developed and loaded by JTAG bootROM is not executed, hence Device_cal must be called in clock setting procedure.

1. Is it harmful when I call Devica_cal second time?

2. How to distinguish these two types of start in order to prevent calling Device_cal again?

Regards,
Piotr

PS
I use F28069.

  • Hi Piotr,

    There shouldn't be any issues with calling this function twice; it will just re-load the same values into the trim registers.

    Note that on this device you should also do an ADC offset self-calibration at least once (or you can do it periodically for best performance). This should be done after the last call to the device cal function.

    Also note that if at any point you issue an ADC module reset, you should re-call the device calibration function afterwards and then do offset self-calibration.
  • Thank you Devin,
    Regards
    Piotr