I have a K10 (MK10DN512ZVLL10) chip. I would like to know how I can enable interrupts, so that whenever my PTC7 goes high, my chip interrupts trigger?
I am doing a bareboard project for this with using PE.
I want to see something like this:
PTC7 = interrupt() -------> interrupt () { do something when interrupt happens}
can you please let me know how to do this, either by using PE or without using it, whichever is better.
Thanks
Mehdi
Solved! Go to Solution.
Hi,
this can be easily handled by ExtInt_LDD component with Processor Expert where you configure which pins do you want to use and its parameters. Processor Expert generates for you a driver code and a skeleton of an event routine (into the events.c) that you can fill with your code.
If you are not familiar with Processor Expert and are using CodeWarrior 10.5 :
Best regards
Petr Hradsky
Processor Expert Support Team
Hi,
this can be easily handled by ExtInt_LDD component with Processor Expert where you configure which pins do you want to use and its parameters. Processor Expert generates for you a driver code and a skeleton of an event routine (into the events.c) that you can fill with your code.
If you are not familiar with Processor Expert and are using CodeWarrior 10.5 :
Best regards
Petr Hradsky
Processor Expert Support Team
I got it. Thanks for your support.
Mehdi