Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Aubrey Kagan
01/27/10 07:50
Modified:
  01/27/10 08:23

Read: 167 times
Markham
Canada


 
Msg Score: +1
 +1 Good Answer/Helpful
#172755 - Counter
Responding to: Christoph Franck'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.

List of 10 messages in thread
TopicAuthorDate
Sensor Problems      Joel Ward      01/26/10 11:52      
   milliseconds?      Jan Waclawek      01/26/10 12:11      
      I wonder too ...      Erik Malund      01/26/10 12:14      
         use of interrupts      Joel Ward      01/27/10 08:17      
            Remember state      Per Westermark      01/29/10 15:30      
      To (almost) quote Star Trek:        Christoph Franck      01/27/10 02:05      
         Counter        Aubrey Kagan      01/27/10 07:50      
   re-think code      Stefan KAnev      01/26/10 12:14      
   Weeelll if you have to      Steve M. Taylor      01/26/10 12:31      
      misnamed device      Erik Malund      01/26/10 12:46      

Back to Subject List