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.

Changing Sampling Rate

Other Parts Discussed in Thread: TMS320F28335

Hi

I want to sample a 50Hz power signal at 1KHz sampling rate. How do I set the sampling rate value for my TMS320F28335 device. I have tried looking at examples from Control Suite but could not figure out the process.

  • Hi bavesh,

    Focus your research on the AdcSoc example.  In this example, the ePWM periodically triggers the ADC to do some conversions.  To change the sampling rate, you are going to want to alter the ePWM settings such that the ePWM creates a trigger at a 1KHz rate.

    It may be helpful to have the ePWM also toggle a pin every time it creates a trigger.  This will allow you to verify that you have achieved the desired sampling frequency by viewing the ePWM output on a pin. 

  • Hi Devin

    Problem Solved !

    Thanks a lot for suggesting the AdcSoc example. The example along with reference manual for ADC and EPWM helped a lot and now I am able to set the sampling rate at desired value.

    Regards

    Bhavesh

    Undergraduate Student

    Electrical Engineering, IIT Delhi