I'm using InputCaptureEx to measure the high and low periods of a '555 output cycle, usually correctly. Maybe 1% of the time, however, I see an entire cycle, not just a high or low period, in the high (first) count. For example:
ZX-24n:
Code: Select all
2127 1015
2120 1016
2112 1017
2117 1020
3097 1021 **
2127 1030
2140 1044
2149 1055
2144 1047
ZX24:
Code: Select all
2159 1013
2152 1014
2152 1013
2152 1014
3111 1013 **
2155 1014
2155 1014
2147 1015
2148 1015
What might cause this?
Later edit:
I see different behavior if the capture starts on the falling edge:
ZX-24n:
Code: Select all
1027 2148
1027 2148
1027 2152
1025 2153
995 2155
1024 2158
1024 2157
1024 2159
1027 2165
Here the low period is occasionally a few percent short, but I do not see the full-cycle error. In both cases, scoping the signal shows some jitter, and some ground noise, but no glitches.