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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

840 Views
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

Labels (1)
Tags (1)
0 Kudos
2 Replies

610 Views
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 Kudos

610 Views
Badman
Contributor I

Please show your code.

0 Kudos