Tool/software:
Hello,
I have a question about the DELAY_US(A) macro defined in C2000 source files.
The macro is defined as follow:
// DO NOT MODIFY THIS LINE.
#define DELAY_US(A) F28x_usDelay(((((long double) A * 1000.0L) / (long double)CPU_RATE) - 9.0L) / 5.0L)
The problem I face is the actual delay what I see from the oscilloscope is 1.6 times higher than the amount of the argument I insert as "A".
I have tried it for both 10 us and 1 second.
I need to note that I know that the MCU clock frequency is 100 MHZ and according to this number I got my desired PWM frequency correctly.
Therefore, I guess something else is wrong or not set correctly.
Thank you