??? 01/27/10 13:50 Modified: 01/27/10 14:23 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#172755 - Counter Responding to: ???'s previous message |
Although an interrupt would also be my first suggestion, depending on your 8051 variant and how fixed your layout is, you could also use the signal to clock an internal counter. That way, if you cannot service the interrupt fast enough, you could still tell how many times the signal has occurred between reads.
-Aubrey P.S. In either approach, beware of signal bounce. |
Topic | Author | Date |
Sensor Problems | 01/01/70 00:00 | |
milliseconds? | 01/01/70 00:00 | |
I wonder too ... | 01/01/70 00:00 | |
use of interrupts | 01/01/70 00:00 | |
Remember state![]() | 01/01/70 00:00 | |
To (almost) quote Star Trek: | 01/01/70 00:00 | |
Counter | 01/01/70 00:00 | |
re-think code | 01/01/70 00:00 | |
Weeelll if you have to | 01/01/70 00:00 | |
misnamed device | 01/01/70 00:00 |