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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/23/01 05:13
Read: times


 
#13397 - RE: How to use 8 sensors on 8051 ports
Hi Louis,

Try using something like this :

set up a timer (1mS?);
every tick, compare P0 with previous value (XOR);
if no change, quit routine;
loop for all bits of P0 :
if P0.X changed & is now active (low?), incr sensorX;

If you're counting cars, you should have enough cpu time left for other stuff.

Regards,

Richard


List of 8 messages in thread
TopicAuthorDate
How to use 8 sensors on 8051 ports            01/01/70 00:00      
RE: How to use 8 sensors on 8051 ports            01/01/70 00:00      
RE: How to use 8 sensors on 8051 ports            01/01/70 00:00      
RE: How to use 8 sensors on 8051 ports            01/01/70 00:00      
RE: How to use 8 sensors on 8051 ports            01/01/70 00:00      
RE: How to use 8 sensors on 8051 ports            01/01/70 00:00      
RE: How to use 8 sensors on 8051 ports            01/01/70 00:00      
RE: How to use 8 sensors on 8051 ports            01/01/70 00:00      

Back to Subject List