Line 11: Line 11:
 
{| class="table table-striped table-hover table-condensed table-bordered"
 
{| class="table table-striped table-hover table-condensed table-bordered"
 
|-class="info"
 
|-class="info"
!Port Pin||Ext Interrupt || PINSEL_FUNC_0 || PINSEL_FUNC_1 ||PINSEL_FUNC_2 ||PINSEL_FUNC_3
+
!Port Pin|| PINSEL_FUNC_0 || PINSEL_FUNC_1 ||PINSEL_FUNC_2 ||PINSEL_FUNC_3
 
|-
 
|-
|P2.10 || EINT0 || GPIO || <b>TXD0</b> || ADC0[7] ||  
+
|P2.10 || GPIO || <b>EINT0</b> || NMI ||  
 
|-
 
|-
|P2.11 || EINT1 || GPIO || <b>RXD0</b> || ADC0[6] ||  
+
|P2.11 || GPIO || <b>EINT1</b> || I2STX_CLK ||  
 
|-
 
|-
|P2_12 || EINT2 || GPIO || PWM1[1] || <b>TXD1</b>  ||
+
|P2_12 || GPIO || <b>EINT2</b> || I2STX_WS ||
 
|-
 
|-
|P2.13 || EINT3 || GPIO || PWM1[2] || <b>RXD1</b> ||  
+
|P2.13 || GPIO || <b>EINT3</b> || I2STX_SDA ||  
 
|}
 
|}
 
<br><br><br><br>
 
<br><br><br><br>

Revision as of 19:39, 13 April 2016


Objective:

In this tutorial we will discuss how to configure and use the LPC1768 external interrupts(EINT0-EINT3).
At the end of tutorial we will see how to use the exploreembedded external interrupt library.

EINTx Pins

LPC1768 has four external interrupts EINT0-EINT3.
As LPC1768 pins are multi functional, these four interrupts are available on multiple pins.
Below table shows mapping of EINTx pins.

Port Pin PINSEL_FUNC_0 PINSEL_FUNC_1 PINSEL_FUNC_2 PINSEL_FUNC_3
P2.10 GPIO EINT0 NMI
P2.11 GPIO EINT1 I2STX_CLK
P2_12 GPIO EINT2 I2STX_WS
P2.13 GPIO EINT3 I2STX_SDA