I am working with a RM42 HDK to generate two PWM signals. Now, my intention is to introduce a delay (approximately 2 us) between these signals but I am not able to do it.
1. I generate the PWM signals through HET pins with HALCoGen
2. I try to delay the generation of the signal through software in CCS:
pwmStart(hetRAM1,pwm0);
for(i=0;i<10000;i++){
//do nothing
}
pwmStart(hetRAM1,pwm1);
3. In the end, no delay is applied and the signals are totally aligned.
I have tried to use RTI counter but the minimum delay is 1ms, so it is not suitable for my application. I think that the signals are aligned since I configure them in HalCoGen and this is why no delay is applied.
Is there any method or solution to solve this problem?
Thanks in advance,
Agustí.