Question (trying to be generic here rather than post lots of code).
I want to confirm that the Pulsin statement MUST have both a leading and trailing edge to get a result. e.g. If my code loop does not jump back to running a Pulsin before the start of a new pulse (and catches it half way etc) will it ignore that pulse completely or will it measure a truncated pulse time ?
The scenario would be a case where the program loop, although it's very very short, still might happen during the start of the first pulse of a multi pulse frame, meaning the level on the pin is already at the logic level the Pulsin is looking for when it begins.
Do I have that understanding right ?
If so, then I guess if my program needs to do anything else while also waiting for a Pulse start, then I should really use an interrupt to catch the first one of the frame reliably.
Anyone ?
Thanks,
Martin
Bookmarks