Not quite got my finger on the pulse
Hi all! I’ve an interesting problem I’m trying to solve in that I need to generate a series of exactly timed pulses three separate output pins being used, I need the sequence to run like this;
Pulse1 occurs at PRF of variable between 400Hz and 1500Hz with variable pulse width of 10 to 150uS.
Between 2 and 50uS later, Pulse2 occurs with, again variable width of 10 to 50uS.
The, finally, Pulse 3 (also variable pulse width of 10 to 50uS ) occurs between 2 and 150uS AFTER Pulse 2 has gone low (all pulses are active high).
I think I can do it using the three timers in a PIC, but I need .25uS resolution to 40MHz here I come I think. I’ve tried to do it in PICBASIC primarily because I suck at assembler (hence the PICBASIC) but I just isn’t fast enough.
The whole process repeats continuously and the PIC also has to do other things, but they are easy and are already done. It’s just this timer routine I’m stuck on.
Can anyone help please?