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.
Tool/software: Code Composer Studio
Hello all,
This is Sainath. I'm relatively new to the TI family of microcontrollers. I am trying to give a sine wave input to the ADC but the ADC output is distorted. I wonder if it is a timing issue. If that is the case, Can someone help me in setting the ADC sampling rate. I'm going through adc_soc_continous_cpu01 to test the ADC conversion. Can you please help me in what to change to in the code to set the sampling rate equal to 44.1 kHz.
Thanks in advance,
Sainath Reddy.
Thank you for your reply Gautam. Can you help me in how to change the TBPRD value to get 44.1 kHz. I'm very new to CCS and tidsp.
Thank you.
Best regards,
Sainath Reddy.
Thank you for your reply Devin. I calculated TBPRD value as TMPRD = 200 MHz / 44.1 kHz = 4308.
Is it the right way to calculate the TBPRD value. If it is correct, do I need to give the value directly as 4308 or do I need to convert in to hex.
Do I need to change any other register values to change the sampling rate???
Another issue that I am facing with the ADC is that the digitized output. Does it generally occur becaue of any error in my code.
Thank you.
Regards,
Sainath Reddy.
Basically, I am giving a sine wave input through a function generator to the ADC of the TI DSP. So, when I am verifying the ADC output. But, the ADC output pattern is distorted at some portions. Do you know why these error in the output generally occur. Is it because of error in the code or any other reason.
Thank you.
Regards,
Sainath Reddy.
Hi Sainath,
This distortion could be for a variety of reasons. Some of these could be: