I'm learning CCp module.
There is something I don't understand yet.
I want to know the length of the first 16 rising edges of an incoming stream to decide whether it's the right stream or noise..
I have to check when a single rising edge has come (CCP1CON % 00000101), then switch to CCP1CON %00000111( 16th edge capture), Timer1 starts, then finally when another event occured read the CCPR1 bytes and decide if this is the correct timing.
Is this the correct procedure?
It seems to me that this way i need 17 rising edges (the first for let Timer1 start and the other 16 for having the correct event on CCP module).Where i'm wrong....
Thanks .
Roberto
Bookmarks