Hi Pommie,
Pommie said:
Are all the waveforms on you diagram outputs?
Yes.
Pommie said:
Yes, I generate the 400KHz from the PIC's Crystal Oscillator (10 MHz ->416.666kHz, if I find 9.6MHz ->400kHz almost exact). This clock will be the Pulse Repetition Frequency or time between radar's burst, so, all the rest of signal are referred to it.
Pommie said:
Sorry, that's a jargon word from radar technology. Range is the distance from a target object such as a hole in golf,
an object being tracked by radar, a military target. (From Wikipedia English).
Pommie said:
What is the time from the start of a range to the range pulse?
Here is where I stopped. I need to count the 400kHz steps from the begining of each range (signal range low->blind) ...
Pommie said:
What defines the length of the range pulse?
... and launch a high level gate of 15 to 20uS to listen the echoes.
The low and high of these range signal should be fixed "manually" with a resolution based in the 400kHz period. Later could be adjusted automatically.
Pommie said:
To do the above timing with a pic is pushing it. Your CCP code has only 10 instructions in which to change the CCP mode to produce the 400kHz waveform with a 16MHz crystal (12.5 with a 20MHz).
Yes, it was easy to use the PWM Mode but now I'm thinking that perhaps I had to preserve the PWM mode to generate the reach pulses. My inexperience in the use of the PICs is what it makes me have too much doubts.
Pommie said:
If on the other hand the 400kHz signal is not required and is just your way of describing it and the 4 range signals are the only outputs then a pic can do it.
As I say above, it's the "mother of the signals".
Pommie said:
A better description of what you are trying to do would help.
I don't know if that will be enough. This is my first incursion in the PICs and in a English forum and probably I have been mistaken thinking that a timing would be easiest with the resources of a PIC.
If I don't receive other suggestions, my last bullet will be to use the PIC of "crude" way by means of combinations of delays.
My apollogies to disturb to all of you and thank you very much for your interest.
Breixo