Other Parts Discussed in Thread: C2000WARE, SYSCONFIG
Basically I want to find phase of sine wave. So I just want to know how can I find Phase of a sine wave or Phase difference between two sine waves using FFT
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.
Basically I want to find phase of sine wave. So I just want to know how can I find Phase of a sine wave or Phase difference between two sine waves using FFT
Hello Niraj,
Have you already take a look at the DSP FPU library provided in C2000Ware? You can find it at C2000Ware_5_01_00_00\libraries\dsp\FPU\c28. There is a docs folder which has the user guide that can help explain the relevant FFT functions/objects.
Keep in mind that since you're using the F2837xD, you will only have the FPU32 FFT option available (this limits which FFT objects/functions you can use, per the user guide). I highly recommend using SysConfig to set this up because the tool will perform some additional error checking and simplify some of the steps needed. While it's not the exact device you're using, you can see an analogous example for the F2838x device in C2000Ware_5_01_00_00\driverlib\f2838x\examples\c28x\dsp.
So I just want to know how can I find Phase of a sine wave or Phase difference between two sine waves using FFT
Per the user guide I mentioned above, section 5.1 lists some functions which can be used for the FFT. You can look at the relevant parts of the user guide regarding the below highlighted functions:

Let me know if you have further questions.
Hello Niraj,
I believe CCS comes with SysConfig, but if it doesn't you can download it from this page. Currently I don't believe there are c2000.syscfg files imported with most of the examples for the F2837x device, so you can either follow the below FAQs for adding SysConfig support to a driverlib project or you can import a universal project and migrate this to the F2837xD device from whichever device you choose (the project can be found in C2000Ware_5_01_00_00/driverlib/<device>/<core>/examples/universal). I recommend doing the second option, since the migration is much quicker and simpler.