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 08:59
Read: times


 
#13405 - RE: How to use 8 sensors on 8051 ports
If your sensor gives a '1' at the port input pin when a car is detected, how about something like:
count0 += P0.0;
count1 += P0.1;
count2 += P0.2;
etc
(that's kinda pseudocode; adapt as appropriate to the syntax of your particular language & implementation)


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