SLAAES1 April 2026 TAA5212 , TAC5112 , TAC5112-Q1 , TAC5212
The below code is used to observe the effect of changing one of the IADC parameters, in this case, the OSR value. The voltages are set as per Figure 2-2, and the IADC output is measured 100 times. Figure 2-4 shows the impact on the measured values in time domain, while Figure 2-5 shows the same in a histogram.
####################################################################
##### IADC Configured to show the impact of OSR
w a0 00 00
w a0 01 01
w a0 02 09
d 10
#Configure ADC channels
w a0 50 88 #Channel 1 - DC-coupled, Single-ended MUX INP1 input
w a0 55 88 #Channel 1 - DC-coupled, Single-ended MUX INP2 input
#IADC Configurations
w a0 4c be #NSKIP = 4096, NRESET = 150, OSR = 128 - CHANGE OSR
w a0 51 c0 #Enable IADC in sequential single channel mode
w a0 00 01 #Page 1
w a0 55 08 #Get IADC data in diags register
w a0 00 00
w a0 76 f0
w a0 78 80 #Power up ADC
#Read IADC Locations (copy-paste below code snippet 100 times and capture the readback value)
#################################Copy from here################################################################
d 64
w a0 00 01 #Page 1
r a0 62 03 #IADC Channel 1
r a0 65 03 #IADC Channel 2
r a0 68 03 #IADC Channel 3
r a0 6b 03 #IADC Channel 4
w a0 00 00
#################################Till here################################################################
w a0 78 00 #Power Down ADC
w a0 51 00 #Disable IADCNote that the results shown in Figure 2-4 and Figure 2-5 are the calibrated numbers calculated from the IADC output as described in Section 2.4.