KBI interface with ke02

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KBI interface with ke02

Jump to solution
889 Views
surajka
Contributor III

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

Labels (1)
0 Kudos
Reply
1 Solution
740 Views
surajka
Contributor III

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?

View solution in original post

0 Kudos
Reply
2 Replies
741 Views
surajka
Contributor III

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?

0 Kudos
Reply
740 Views
surajka
Contributor III

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.

0 Kudos
Reply