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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/13/06 18:40
Read: times


 
#120223 - Back on track
Responding to: ???'s previous message
Erik here are my findings. Sorry I took so long, but I was assigned something else.

If EA, EKBI, KBCON.0 all are set, the ISR should activate.
This is true.

KBPATN = 0x03;	
KBMASK = 0x03;
KBCON = 0x00;  // KBIF gets set after this line
KBCON &= ~0x01; // I try to clear it but it does not.
                // therefore, EKBI is always set and creating 
                // erroneous interrupts. 
                // pins 0 & 1 on port 0 are low (input) when   
                // this happens. 


I used scopes and everything is like the emulator/debugger displays on screen.

What else can I do? If I decide to use only one pin then KBI works fine as long as KBCON = 0x02; But I need to use two pins. I tried to use the comparator CMP2 with P0.0 and it works fine but the KBI peripheral will consume less power. Erik can you help me any more?
Thanks




List of 28 messages in thread
TopicAuthorDate
LPC932 KBI Interrupt            01/01/70 00:00      
   nothing to do with KBI            01/01/70 00:00      
   Port is good!            01/01/70 00:00      
      whay do you not do as suggested?            01/01/70 00:00      
         I did it            01/01/70 00:00      
            below you talk about a 'stuck' interrupt            01/01/70 00:00      
   More details.            01/01/70 00:00      
      I have never used KBI, it serves no purp            01/01/70 00:00      
         That's my case!            01/01/70 00:00      
            you posted that interrupt DOES occur:            01/01/70 00:00      
               Do not get confused            01/01/70 00:00      
                  continuing            01/01/70 00:00      
                     EA is set            01/01/70 00:00      
                        so, you have an ICE, great            01/01/70 00:00      
                           ICE could affect KBI            01/01/70 00:00      
                              How is your P0 set up            01/01/70 00:00      
                                 forget it            01/01/70 00:00      
                                    ICE?            01/01/70 00:00      
                                       In Circuit Emulator            01/01/70 00:00      
                                          ICE            01/01/70 00:00      
                                             maybe it is ( to some extent?)            01/01/70 00:00      
                                                Yes            01/01/70 00:00      
                                                   Ok an emulator, (E) not an ICE            01/01/70 00:00      
                              as usual - divide and conquer            01/01/70 00:00      
                           Back on track            01/01/70 00:00      
                              you need to change something in the ISR            01/01/70 00:00      
                                 I Got it!            01/01/70 00:00      
         Does this help            01/01/70 00:00      

Back to Subject List