Hello Mister_e,
M>>Dwayne use Transisor, op amp, voltage comparator will not resolve the problem. But in this case what i think... never test but...
do 2 Pulsin reading one for state 1 and 1 for state 0 will give you the entire period.
Pulsin SignalInput,1,TimeHigh
Pulsin SignalInput,0,TimeLow
EntirePeriod=TimeHigh+TimeLow
<<
If i am reading correctly Mister_e, PULSIN *is* the full cycle of the wave, and RCTIME is 1/2 the cycle.
The problem I think Melanie was pointing out, is the threshold on the pin.
Lets say the threshold is 2 volts. Lets say your wave is 2.1 volts.... that means PULSIN *will* get it on the rise, but it will be at the very *tip* of the wave.. Most of the wave is ignored.
If the sine wave is 5 volts, it will activate less than 1/2 the way up the wave...a different location on the wave than the 2.1 volt wave. RCTIME will give extreme different measurements, but PULSIN should give the same. (unless I am misunderstanding something... which could possibly be the case!)
Dwayne
Ability to Fly:
Hurling yourself towards the ground, and missing.
Engineers that Contribute to flying:
Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute
Pilots that are Flying:
Those who know their limitations, and respect the green side of the grass...
Bookmarks