PLANK
Newbie level 3
Greetings
Please assist with the following :
At the moment, my program can detect square pulses via an opto-coupler input without a problem.
I monitor the input of Port B on a cyclic basis and as soon as I detect a high, I await an "end of pulse" status before registering a legitimate pulse.
New high speed square pulses and decreased pulse intervals are evident to such an extent that the current program is unable to detect the 2nd, 3rd , 4th pulses ...only the 1st one.
What routine would work independant of actual pulse width / pulse intervals ?
Please assist with the following :
At the moment, my program can detect square pulses via an opto-coupler input without a problem.
I monitor the input of Port B on a cyclic basis and as soon as I detect a high, I await an "end of pulse" status before registering a legitimate pulse.
New high speed square pulses and decreased pulse intervals are evident to such an extent that the current program is unable to detect the 2nd, 3rd , 4th pulses ...only the 1st one.
What routine would work independant of actual pulse width / pulse intervals ?