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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/19/06 14:08
Read: times


 
#124560 - I was wrong again
Responding to: ???'s previous message
I set the "output/colums" as open drain with internall pullups enabled. TO my understanding this is "quasi-bidirectional" right?
OK. Well, when I said before that it worked, I was half right.
I'm using ground as one of my columns. When I'm scanning a keypress, I set each column in turn High, and check the rows. If none of my columns change the row, I assume it must be the ground column which has has pulled the row low. So when I've got my coluns in open-drain, if I press a button, it scans the keypad and comes back with the button number that should be associated with the ground column. That tells me that when my code is setting the columns High to check for the current row, the column isn't able to drive the input(the row) to a high state and properly decode the keypress, therefore it assumes the ground column is the active one.
SO.
I'm sure this topic has been beaten to death around here, but in my searching I'm somehow still not getting that AHA! moment which is going to clear this up. I figure either:
a) I'm wrong to have configured my ports this way, or
b) I should be using external pullups on the columns?

I tried using 10K external pullup on a column to test, but still no go.
So, what glaringly obvious tidbit am I not catching here?

List of 60 messages in thread
TopicAuthorDate
AND gate, INT0            01/01/70 00:00      
   Some thoughts            01/01/70 00:00      
      Should have stated..            01/01/70 00:00      
         Pullups            01/01/70 00:00      
            I'm a DUMMY            01/01/70 00:00      
   Port modes            01/01/70 00:00      
      Thanks, Kai            01/01/70 00:00      
      I was wrong again            01/01/70 00:00      
         are you too fast?            01/01/70 00:00      
            OK            01/01/70 00:00      
            does this look too fast?            01/01/70 00:00      
               depends on            01/01/70 00:00      
                  idea            01/01/70 00:00      
                     no            01/01/70 00:00      
                        but            01/01/70 00:00      
                           are you looking for \'pressed key high\'?            01/01/70 00:00      
                              Detecting            01/01/70 00:00      
                                 yes            01/01/70 00:00      
                                    Ah, slightly different            01/01/70 00:00      
                                       I tried to read what you posted            01/01/70 00:00      
                                          to clarify            01/01/70 00:00      
                                             overly complicated KISS            01/01/70 00:00      
                                                when..            01/01/70 00:00      
                                             that will be all rows OR all columns plus one of t            01/01/70 00:00      
                                                I'll try again            01/01/70 00:00      
                                                   got it, but            01/01/70 00:00      
                                                   Heavily unsuited!            01/01/70 00:00      
                                                      Well            01/01/70 00:00      
                                                      OR            01/01/70 00:00      
                                                         Still unsuited...            01/01/70 00:00      
                                                            I Think....            01/01/70 00:00      
                                                               and now you will make a better one and ....            01/01/70 00:00      
                                                                  If it's bad, toss it!            01/01/70 00:00      
                                                               No shame at all!            01/01/70 00:00      
                                                            well, any decent code will do the two steps            01/01/70 00:00      
               too fast?            01/01/70 00:00      
   why to the hell ?            01/01/70 00:00      
      Before sending somebody to hell, read carefully!            01/01/70 00:00      
         leave idle by timer            01/01/70 00:00      
            debounce            01/01/70 00:00      
   Other method            01/01/70 00:00      
      Oh            01/01/70 00:00      
   a language lesson and some general co0mments            01/01/70 00:00      
      Don't be silly...            01/01/70 00:00      
         as I said            01/01/70 00:00      
            Erik, please!            01/01/70 00:00      
               I said nothing about an AND gate            01/01/70 00:00      
                  Have fun...            01/01/70 00:00      
                  well,            01/01/70 00:00      
                     No, it does not            01/01/70 00:00      
                     You are right, Mark            01/01/70 00:00      
                        if so, wht are there two symbols ?            01/01/70 00:00      
                           So what?            01/01/70 00:00      
                              because some of us want to show the intention            01/01/70 00:00      
                                 Intentions            01/01/70 00:00      
                                    chip and function            01/01/70 00:00      
                                       Sorry, but this becomes more and more ridiculous            01/01/70 00:00      
                                          that a correct description makes the function            01/01/70 00:00      
      wait a minute...            01/01/70 00:00      
   I just recall            01/01/70 00:00      

Back to Subject List