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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/11/04 05:35
Read: times


 
#70152 - RE: branching ports through memory mapping
Responding to: ???'s previous message

Are the input bits from a pushbutton switch? If so, we need to debounce these inputs first. Do a search on keyboards and debounce.


If I am to understand what you want to do:

On the falling edge (1 -> 0) of an input bit, you want to output some data onto P1.

If the bit is held low for >5 seconds something is reset.

Each input bit outputs different data.


Where does the data to output come from? Is it a table?

How fast do we expect the input bits to change?

What happens if both bits go to 0 together? What data do we output?

Regardless of the number of inputs, the complexity doesn't increase but the amount of code does. De-compose your problem into simple steps first rather than worry about how to code it.











List of 7 messages in thread
TopicAuthorDate
branching ports through memory mapping            01/01/70 00:00      
   RE: branching ports through memory mapping            01/01/70 00:00      
      RE: branching ports through memory mapping            01/01/70 00:00      
         RE: branching ports through memory mapping            01/01/70 00:00      
            Simplifying            01/01/70 00:00      
   RE: branching ports through memory mapping            01/01/70 00:00      
      Plz close this thread            01/01/70 00:00      

Back to Subject List