??? 09/19/06 18:56 Modified: 09/19/06 18:58 Read: times |
#124611 - overly complicated KISS Responding to: ???'s previous message |
I set each column high in turn, and check to see if P1 == 0xFF after each column goes high.
That's how I figure out which column I'm dealing with. That is overly complicated KISS. I now see what you are doing you are first using rows as outputs, then you switch to columns as outputs. Why not keep it straight and keep one as output and the other as input? Erik PS you do know that the P89LPC3xx has a dedicated 8 input keyboard interrupt, saving you the negative OR. |