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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/17/06 11:23
Read: times


 
#120367 - Some answers
Responding to: ???'s previous message
Q1: I would expect P2 to have the value you mention.

Q2: The column is not 'detected' as it is controlled by the code. The variable 'col' has the current column number.This line takes into account the column and key pressed:

key=row_xlat[row]+col; /* get key code */

Q3: I assume you are referring to the line: P2|=0xf0;
Good question - at a quick glance I would think that the line should read P2 = 0xff;
Without looking at the complete piece of code, I cannot understand why Michael 'or's the column selects,I would have simply assigned the column select value to P2 with the lower nibble all '1's.




List of 7 messages in thread
TopicAuthorDate
Help on understanding 4x4 matrix keypad            01/01/70 00:00      
   Some answers            01/01/70 00:00      
      Another question            01/01/70 00:00      
         cols            01/01/70 00:00      
         look at this way            01/01/70 00:00      
   About the FF            01/01/70 00:00      
   one improvement            01/01/70 00:00      

Back to Subject List