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.

TMS320F28386D: Graph function

Expert 2380 points
Part Number: TMS320F28386D
Other Parts Discussed in Thread: C2000WARE

When I am doing the IPC function, want to use the graph function to measure the timing of the counter from 0 to overflow as below picyure one.

I set the sampling rate is 1hz and the time display unit as second.

As the picture show that the low 32bits of IPC  counter from 0 to 4294 967 295 (Max of 32bit), it is almost 42s.

But as I use the GPIO to get the real timing it is about 21s.(21s is the right as calculated with system clock)

I have the question,  why graph's horizontal ordinate is wrong?

  • Hello,

    I will look into this and get back to you tomorrow.

    Best regards,

    Omer Amir

  • Hello,

    I tested this on my side with the timer example in C2000Ware and was able to confirm something stated here. The sampling rate that you choose will affect the time scale for the x-axis on the graph, and does not have any awareness about the hardware of the device; if you want to get it to match the hardware timing in the device, you will have to fiddle with the number to get the right value (for example for the timer example, when I chose a sample rate of 4 Hz the timer was approximately lined up to 1 second).

    Best regards,

    Omer Amir