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 14:45
Read: times


 
#94191 - Confirm
Responding to: ???'s previous message
Erik Malund said:
I need to be able to cause an int. only when any (not both)
any: yes not both: no

from the User Manual: "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."
That answers your question

Erik



Erik, I read the user's manual, but I need to confirm with you. I will have re-configure for P0.1
KBPATN = 0x02;	    	// P0.1 must be pulled high
KBCON = 0x02;		// Port 0 must match KBPATN 
KBMASK = 0x02;  	// mask out all pins except P0.1

the KBI for every pin every time I need to cause an Int?
AND for P0.5

KBPATN = 0x20;	    	// P0.5 must be pulled high
KBCON = 0x02;		// Port 0 must match KBPATN 
KBMASK = 0x20;  	// mask out all pins except P0.5

Is this right?




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