How to setup a pin as interrupt source and then call user defined callback function?

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

How to setup a pin as interrupt source and then call user defined callback function?

1,009 次查看
misterbee
Contributor II

I am using LPC 54113 MCU. I want to use the config tool. Suppose I have a pin PIO0_1 initially at high. When it goes low, I want it to raise interrupt and then call my defined callback function say my_callback().

How can I achieve this? How should I do the configuration?

标签 (1)
0 项奖励
回复
1 回复

987 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello,

I suggest downloading the SDK of the LPCxpresso54114 and reviewing the example lpcxpresso54114_pint_pin_interrupt then you can port it to your target.

Best regards,
Pavel

0 项奖励
回复