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:
Hello everyone,
I want to use the CCS Graph tool to view the signal that is sampled by the ADC. The issue that I am facing is that the graph tool displays corrupted data. I am sampling a sine-wave but the graph gives me the following:
I assume that the reason for this is the fact the CCS takes the ADC buffer values at random moments and it by chance grabs the data when the buffer is being rewriten. If I do a breakpoint at the moment when the buffer is full I get a nice signal.
The reason that stopping the program execution to get a view of the signal is that the PWM outputs also stop and this can cause issues with my circuit.
Is there a way to view to signal with the graph tool without pausing the PWM outputs? Your help is greatly appreciated.
Regards,
Samo
Hi Samo,
Have you had a chance to view this documentation on using the graph tools?
https://software-dl.ti.com/ccs/esd/documents/users_guide/ccs_debug-graphs.html
Best,
Ryan Ma
Yes I did, but I did not find any suggestions on how to solve my issue. Did you find something?
Hi Samo,
I have reached out to a colleague to see if there is another solution for this.
Best,
Ryan Ma
Hi Samo,
Even with continuous refresh you're unable to see a smooth waveform?
No, even the continuous refresh gives this chopped up waveform.
I found the following solution to my issue:
1. To prevent the PWM from stoping when the program execution is halted, I must use the function EPWM_setEmulationMode( - , EPWM_EMULATION_FREE_RUN);
2. To get a smooth graph waveform, I must add a breakpoint at the moment the ADC buffer is full and configure the breakpoint properties under "Action" to "Update view" to "Single Time -0" (graph).