Hi, Dwayne ...
Pulsin measures between 2 transitions on an input ( low to high and high to low i.e )
RCTime measures from the moment when order "RCTIME" is executed by CPU, to the next transition on the input ...
so, in your example it's right for pulsin measure, as max voltage is very close to input trigger level ( sawtooth waveform ??? )
BUT, for RCTIME, it is the sum Pos+neg value wich stays constant.
pos value can take every value from 1 to 34 ...depending on the moment RCTIME is executed in your program . Add one or two lines before RCtime, and you'll see what happens.
Little stupid light turned Green, at this time ???
Alain




Bookmarks