LPC11U68 interrupts for buttons

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

LPC11U68 interrupts for buttons

1,443 次查看
Guy_mego
Contributor II

Hi All,

I defined my buttons as GPIOs, I want to get an interrupt when button is being pressed. 
I can't find how to connect a GPIO to an interrupt.

I work on LPC11U68 board.

Does any one how  should i connect  my button that i will get an interrupt what its state is changed?
released -> pressed -> released.

Thanks in advance.

Best Regards,
Guy.

 

0 项奖励
回复
4 回复数

1,385 次查看
Guy_mego
Contributor II

Thanks a lot for the help.

0 项奖励
回复

1,436 次查看
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

I would recommend you to use the LPCOpen libraries available in this link. You will find several examples to help you with your development.

I hope this helps, Daniel.

0 项奖励
回复

1,423 次查看
Guy_mego
Contributor II

Hi,
I checked the examples and didn't find a solutions that assist me with my issue.
I also trying to search an answer in the forum but didn't find any. 
I know how to work with interrupt but as I said, I don't know to connect a GPIO to an interrupt.

 

0 项奖励
回复

1,390 次查看
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

I would recommend you to use as a reference any LPCOpen example that implements interrupts to see how an interrupt is enabled.

I also recommend you to take a look to chapter 3, 7, 8 and 9 of the User Manual.

I hope this helps, Daniel.

0 项奖励
回复