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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/01/05 15:52
Read: times


 
#94196 - you are
Responding to: ???'s previous message
if I am not mistaken with "KBPATN = 0x22" the int will be activated only if both pins go high (p0.1 and p0.5)
You are mistaken

"The Keypad Interrupt function is intended primarily to allow a single interrupt to be generated when Port 0 is equal to or not equal to a certain pattern."

Thus if KBPATN 0x22
KBMASK = 0x22
KBCON = 2
0x22 int
0x00 no int
0x02 no int
0x20 no int

Thus if KBPATN 0x22
KBMASK = 0x00
KBCON = 0
0x22 int
0x00 no int
0x02 int
0x20 int

use what works and just ignore what you do not want in the ISR

Erik



List of 7 messages in thread
TopicAuthorDate
LPC932 KBI            01/01/70 00:00      
   yes and no            01/01/70 00:00      
      Confirm            01/01/70 00:00      
         pls explain            01/01/70 00:00      
            ...            01/01/70 00:00      
               you are            01/01/70 00:00      
   I'll Check            01/01/70 00:00      

Back to Subject List