Hello,
I am working with kbi but not getting the isr working. I have ptd4 and ptd7 connected to two switches, the first one switches to vcc and the other one switch to ground(pull up resistors done). I have attached my code
Original Attachment has been moved to: TEST_KBI.zip
Solved! Go to Solution.
The kbi_es register was 0x00 earlier. I changed it to 0x14 and its working fine now. But I am not able to reverse the edge trigger polarity. Due to this, interrupt occurs two times back to back. May be keypad bouncing?
The kbi_es register was 0x00 earlier. I changed it to 0x14 and its working fine now. But I am not able to reverse the edge trigger polarity. Due to this, interrupt occurs two times back to back. May be keypad bouncing?
Hello,
That was the gate clocking issue. Now the issue is that I cannot enable interrupt on both pins. When Kbi1_PE is 0x90(both pin selected in pin enable) only the ptd4 pin triggers the input. Ptd7 does not. When kbi1_PE is 0x80(only ptd7 selected), ptd7 works fine. Ptd4 is the output of a logical device, ptd7 is mechanical switch pulled up.