I already posted that, but it was while trying (unfortunately) to
re-suscribe to the PICLIST ; so I don't know if this message had been
correctly sent. A thousand of excuses if you already read it (but I got
no answer :-((
>Here it was :
> hello all PICers,
>
> I wish to decode the multiplexed frame of a R/C command in order to cont
rol
{Quote hidden}>an output as a PWM. Let me try to explain :
>
>The input of the PIC is a frame of 20 ms beginning with a synchronizing pulse
>(3 to 4 ms ?), than a serie of 8 pulses of min 1ms, max 2ms.
>
>My PIC must :
>* recognize the sync pulse
>* count the pulse that is to be decoded (1 to 8). It will be given by
>hardware or "programmation" of EEPROM registers
>* measure it
>* give it to the rest of the program
>
>* And all this should be done with an adequate accuracy while an independa
nt
>PWM output (50 to 100 Hz) is running !
>* AND with a PIC that has NO INTERRUPT FACILITIES (I wish to use a 12C509
SMD
{Quote hidden}>since it is the smaller in 8 pins package)
>
>That may seem very simple to experienced people but not for me ;-)
>
>I planned to :
>* run a timer as an absolute clock
>* make to consecutive loops for "In stuff" than "Out stuff"
>* in each loop, read the absolute clock at the timer, compute delta time (
=
>duration), control any overflow of the timer, check if duration have haapened
>...
>-> I have to check the overall accuracy ...
>
>Any idea (or already done application :-) will be welcome ...
>
>Thanks a lot !!!
>
>Jean-Yves
>
>
>
>