KBI interface with ke02

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

KBI interface with ke02

跳至解决方案
1,338 次查看
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

标签 (1)
0 项奖励
回复
1 解答
1,189 次查看
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 项奖励
回复
2 回复数
1,190 次查看
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 项奖励
回复
1,189 次查看
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 项奖励
回复