KBI interface with ke02

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

KBI interface with ke02

ソリューションへジャンプ
1,422件の閲覧回数
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,273件の閲覧回数
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,274件の閲覧回数
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,273件の閲覧回数
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 件の賞賛
返信