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.

Signal generation at interrupt

I am trying to generate a three phase sine wave using Control Suite's signal generation module with frequency equal to the interrupt frequency generated by f2812 processor (symmetric triangular). I need to display the wave usind CCS v4.

 I have a file sgen3.c provided by Control Suite and another files like main.c  and others with the code for f2812 initialization and interrupt generation. I am being shown an error in CCS  v4 that :sgen.h header file  (which is included by sgen3.c) cannot be included as source file" which I have included as header file. 

Please help me by telling how to approach my problem statement, i.e, how to include files and simulate the wave on CCs v4. Also, if you can help in the regard of debugging the error I mentioned.

Thank you.

  • Rohan Bhatore said:
    I am being shown an error in CCS  v4 that :sgen.h header file  (which is included by sgen3.c) cannot be included as source file" which I have included as header file. 

    Are the header file and source file (sgen.h and sgen3.c) inside the project folder or somewhere else? Can you copy and paste the complete output of the CCS build console so we can see the full error message?