Hi! I'm trying to use a GPIO interrupt to light an LED when a square wave input changes from 0V to 3.3V and I need a good example of how to use capture. I cannot find one, any suggestions? I'm using the LPC1115
Hi Melissa Mantey,
Please download the lpc11xx code from this link:
1. IAR and MDK project
Sample Code Bundle for LPC11xx Peripherals using Keil's MDK-ARM | www.LPCware.com
2. LPCXpresso IDE project
Sample Code Bundle for LPC11xx Peripherals using NXP LPCXpresso | www.LPCware.com
Then, refer to GPIO code:
lpc11xx.keil-examples-CMSIS-update\gpio
This code have the GPIO interrupt, when you get the rising interrupt, you can control the LED to light.
Wish it helps you!
If you still have question, please let me know!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------