> Is there a lot of overhead while starting/stopping ? Do you think it could > be used to "decypher" some pwm input and figure out high and low levels > duration for instance ?
Your right seb, this is a good use for this lib. start/stop doesn't have much overhead. You can see how tiny the procedures are. stopwatch_read_time() and pseudo variable stopwatch do have more overhead. > (this would require quite a lot of call to _start() and _stop()) Usually you would only really need to measure the length of one pwm pulse when you need it. In most cases, pwm pulses beside each other are nearly the same. For example, pwm pulse to a motor, or the pwm pulse out of a R/C receiver. In the case of IR SIRC or alike, you would need to measure every pulse. You will need to use stopwatch_read_time() after every pulse (only during a "low" state). So yes, this case would work as well. Matt. -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
