Part Number: MSPM0G3519
Hi Ti Team,
I working on ADC topic for my project (10 bit resolution). Currently I'm using ULPCLK 40Mhz, MCLK using SYSOSC with 32Mhz. Value of SCOMP0 = 2 and SCLKDIV = 3 => This will imply in total 8x2 = 16 sample clock cycle.
Then with configuration of FRANGE => It will take additional 8 cycle
=> In total I think it needs around 24-25 ADC clock cycle.
My implementation is like following:
I start the ADC conversion, and the check the RIS in a while loop. There will be a timeout counter. This will be decreased everytime if check the RIS, and when it equals to 0 . It will break out the loop
If the RIS of MEM0 raises, this means the ADC conversion is completed and I can get the result.
My question is why the result is too fast? My timeout counter needs only 2 decrease value to receive the RIS flag. So I guess my calculation is not correct ?
How can I calculate the conversion time of the ADC ?