(One intermediate revision by the same user not shown)
Line 28: Line 28:
 
|}
 
|}
 
<b>Note:</b>  
 
<b>Note:</b>  
#ISP Pin is used for ISP programming and it should not be zero during RESET, else the controller will in ISP mode.
+
#<b>ISP</b> Pin is used for <b>ISP programming</b> and it should not be zero during RESET, else the controller will in ISP mode.
#USB_BOOT Switch is used for Usb/Dfu boot loader and it should not be zero during RESET, else the controller will in USB/BFU boot mode.
+
#<b>USB_BOOT</b> Switch is used for <b>Usb/Dfu</b> bootloader and it should not be zero during RESET, else the controller will in <b>USB/DFU</b> boot mode.
 
<br><br>
 
<br><br>
  
Line 40: Line 40:
 
Below is the sample code to blink the LED's with 1ms delay using systick timer.
 
Below is the sample code to blink the LED's with 1ms delay using systick timer.
 
<html>
 
<html>
<script src="https://gist.github.com/SaheblalBagwan/2146fdccbe017e73baceb74a5843a635.js"></script>
+
<script src="https://gist.github.com/SaheblalBagwan/5addb1c0d232cd4f67d3d65047336a7e.js"></script>
 
</html>
 
</html>

Latest revision as of 17:50, 29 April 2016

In this tutorial we will discuss how to use the external interrupts on Explore M3.


Prerequisites

Please check this tutorial for detailed explanation on inbuilt Lpc1768 External Interrupts.
If you are doing it for the first time, then check the below links to setup the project for generating the .bin file.

  1. Keil4 Setup
  2. Keil5 Setup
  3. ARM GCC Setup
  4. Eclipse & ARM GCC Setup



EINTx Pins

LPC1768 has four external interrupts EINT0-EINT3.
Below table shows mapping of EINTx pins.

Interrupt LPC1768 Pin Explore M3 pin Enum to be used
EINT0 P2.10 ISP EINT0
EINT1 P2.11 USB_BOOT EINT1
EINT2 P2_12 30 EINT2
EINT3 P2.13 31 EINT3

Note:

  1. ISP Pin is used for ISP programming and it should not be zero during RESET, else the controller will in ISP mode.
  2. USB_BOOT Switch is used for Usb/Dfu bootloader and it should not be zero during RESET, else the controller will in USB/DFU boot mode.



Lpc1768 external interrupts.png

Hardware Connection

LED is Connected to pin 13 on Explore M3 board.


Code

Below is the sample code to blink the LED's with 1ms delay using systick timer.