Atomski,
Like Alain said "But note you lose the following pulse each time ( PULSIN has always to wait for the next rising edge ...)" this also takes place when you change the state and once again issue the PULSIN command. I don't beleive this scheme will work for what you are trying to accomplish. I beleive you will have to use the CCP module directly, preferably with interrupts to capture the waveform timings you require for decoding. To answer your question, there is NO support in PBP for the CCP module when using it for waveform timing. Only PWM output.
Dave Purola,
Bookmarks