Difference between revisions of "LPC1768: External Interrupts"
Line 6: | Line 6: | ||
=EINTx Pins= | =EINTx Pins= | ||
− | LPC1768 has four external interrupts EINT0-EINT3. As LPC1768 pins are multi functional, these four interrupts are available on multiple 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. | Below table shows mapping of EINTx pins. | ||
+ | {| class="table table-striped table-hover table-condensed table-bordered" | ||
+ | |-class="info" | ||
+ | !Port Pin|| Pin Number || PINSEL_FUNC_0 || PINSEL_FUNC_1 ||PINSEL_FUNC_2 ||PINSEL_FUNC_3 | ||
+ | |- | ||
+ | |P2.10 || 98 || GPIO || <b>TXD0</b> || ADC0[7] || | ||
+ | |- | ||
+ | |P2.11 || 99 || GPIO || <b>RXD0</b> || ADC0[6] || | ||
+ | |- | ||
+ | |P2_12 || 48 || GPIO || PWM1[1] || <b>TXD1</b> || | ||
+ | |- | ||
+ | |P2.13 || 49 || GPIO || PWM1[2] || <b>RXD1</b> || | ||
+ | |} | ||
+ | <br><br><br><br> |
Revision as of 19:30, 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 | Pin Number | PINSEL_FUNC_0 | PINSEL_FUNC_1 | PINSEL_FUNC_2 | PINSEL_FUNC_3 |
---|---|---|---|---|---|
P2.10 | 98 | GPIO | TXD0 | ADC0[7] | |
P2.11 | 99 | GPIO | RXD0 | ADC0[6] | |
P2_12 | 48 | GPIO | PWM1[1] | TXD1 | |
P2.13 | 49 | GPIO | PWM1[2] | RXD1 |