How can I link and enable an interrupt with the M0 LPC1114?

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

How can I link and enable an interrupt with the M0 LPC1114?

1,569 次查看
joau1301
Contributor I

I am currently trying to create and link an interrupt for my UART communication, but I was also not able to figure out how to use an external interrupt earlier. With the data sheet and header file I have, i'm having a hard time finding the method to link a function with an interrupt. With the previous ARM processor I have used (M7) I easily found the address in the data sheet that pointed to the interrupt handler. Some resources are below.

If anyone can give me some pointers I would greatly appreciate it. In regards to this problem or any other topic.

Link to Keil device page
http://www.keil.com/dd2/nxp/lpc1114fn28_102/#/eula-container

Link to data sheet
https://www.nxp.com/documents/user_manual/UM10398.pdf

Link to code
https://drive.google.com/file/d/0B6eUXT7fE9bacVZ6aklHZWJzWUU/view?usp=sharing

标签 (1)
标记 (1)
0 项奖励
回复
2 回复数

1,339 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Austin Johannes,

    You can refer to our lpcopen lpc1114 code, and refer to that code to enable the interrupt.

   Now take the TIMER interrupt as an example:

http://www.nxp.com/assets/downloads/data/en/software/lpcopen_v2_00a_keil_iar_nxp_lpcxpresso_11c24.zi... 

After configure the according module, and enable the module interrupt, then you need to enable the according IRQ and write the according interrupt service function.

pastedImage_2.png

Wish it helps you!


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,339 次查看
Badman
Contributor I

Please show your code.

0 项奖励
回复