Other Parts Discussed in Thread: HALCOGEN
Hy,
I would like to use n2het1 pwm interrupt feature to create a low to high transition and interrupt after a variable delay,
so, the delay could be setted by code using for example the following instructions:
hetSIGNAL_t pwm0_signal;
pwm0_signal.duty = 50;
pwm0_signal.period = 5000000; /*in usecs*/
pwmSetSignal(hetRAM1,pwm0,pwm0_signal);
pwmStart(hetRAM1, pwm0);
my problem is that the delay I need to set is between 10us and 40ms in steps of 10us,
so basically I need about 40ms/10us = 4000 possible values of delay,
I've tried to set looptime = 40ms but it seems that "Actual LR Time" doesn't change if I set Loop Time = 4ms instead of 40ms,
maybe there's a saturation problem somewhere?
Do you think I can use het to produce such variable delay (between 10us and 40ms in steps of 10us)
Thanks for your help,
Antonio