Tool/software:
Hey Support Team,
I was searching for the ADC_calibration for TMS320F2808 MCU, But i see that this section has been removed from the datasheet.
I searched more in another devices like TMS320F2833x and i found there is calibration for the ADC.
in Brief, the ADC_cal() is called before ADC_ClkEnable and there is a assembly file is called >> DSP2833x_ADC_cal.asm
it contains:
.def _ADC_cal
.asg "0x711C", ADCREFSEL_LOC
;-----------------------------------------------
; _ADC_cal
;-----------------------------------------------
;-----------------------------------------------
; This is the ADC cal routine.This routine is programmed into
; reserved memory by the factory. 0xAAAA and 0xBBBB are place-
; holders for calibration data.
;The actual values programmed by TI are device specific.
;
; This function assumes that the clocks have been
; enabled to the ADC module.
;-----------------------------------------------
.sect ".adc_cal"
_ADC_cal
MOVW DP, #ADCREFSEL_LOC >> 6
MOV @28, #0xAAAA ; actual value may not be 0xAAAA
MOV @29, #0xBBBB ; actual value may not be 0xBBBB
LRETR
-----------------------
I undestood that the addresses #0xAAAA and #0xBBBB are placeholders, we should change them with the ADC_Cal values that stored in OTP for the device.
The problem is that i cant find these addresses that stored inside it the ADC calibration values to replace them with the placeholders 0xAAAA,#0xBBBB.
---
My Questions are:
1- Is there any ADC_Calibration values are stored in the OTP address ?
2- If it is, How can i know the OTP Addresses that stores the ADC_CAlibration values?
Thanks,
Abdelrahman