Difference between revisions of "Serial Communication using Explore M3"
Line 1: | Line 1: | ||
[[Category:Explore M3 Bare Metal]] | [[Category:Explore M3 Bare Metal]] | ||
− | In this tutorial we will see | + | In this tutorial we will see how to do serial communication on Explore M3 using ExploreEmbedded libraries.<br> |
− | + | The libraries can be used on different platforms like Keil, ARM GCC, GCC And Eclipse etc.<br><br | |
[[File:0 UART main.gif]] | [[File:0 UART main.gif]] | ||
+ | |||
+ | =Prerequisites= | ||
+ | Please check [[LPC1768: UART Programming|this tutorial]] for detailed explanation on Lpc1768 inbuilt UART module.<br> | ||
+ | If you are doing it for the first time, then check the below links to setup the project for generating the .bin file. | ||
+ | #[[LPC1768: Keil Project For Bin File|Keil4 Setup]] | ||
+ | #[[Setting Up Keil5 For ExploreM3|Keil5 Setup]] | ||
+ | #[[Setting Up ARM GCC For ExploreM3 LPC1768|ARM GCC Setup]] | ||
+ | #[[Setting Up ARM GCC And Eclipse For ExploreM3 LPC1768|Eclipse & ARM GCC Setup]] | ||
+ | <br><br> | ||
=UART module= | =UART module= | ||
− | Explore M3 has 4-UARTs | + | Explore M3 has 4-UARTs (UART0-UART3) and hence the interfaces are suffixed with uart number.<br> |
− | Below table shows the | + | Below table shows the Explore M3 UART pins.<br> |
− | + | ||
{| class="table table-striped table-hover table-condensed table-bordered" | {| class="table table-striped table-hover table-condensed table-bordered" | ||
|-class="info" | |-class="info" |
Revision as of 18:21, 28 April 2016
In this tutorial we will see how to do serial communication on Explore M3 using ExploreEmbedded libraries.
The libraries can be used on different platforms like Keil, ARM GCC, GCC And Eclipse etc.
<br
Prerequisites
Please check this tutorial for detailed explanation on Lpc1768 inbuilt UART module.
If you are doing it for the first time, then check the below links to setup the project for generating the .bin file.
UART module
Explore M3 has 4-UARTs (UART0-UART3) and hence the interfaces are suffixed with uart number.
Below table shows the Explore M3 UART pins.
Port Pin | Pin Number | PINSEL_FUNC_0 | PINSEL_FUNC_1 | PINSEL_FUNC_2 | PINSEL_FUNC_3 |
---|---|---|---|---|---|
P0.02 | 98 | GPIO | TXD0 | ADC0[7] | |
P0.03 | 99 | GPIO | RXD0 | ADC0[6] | |
P2_0 | 48 | GPIO | PWM1[1] | TXD1 | |
P0.1 | 49 | GPIO | PWM1[2] | RXD1 | |
P0.10 | 62 | GPIO | TXD2 | SDA2 | MAT3[0] |
P0.11 | 63 | GPIO | RXD2 | SCL2 | MAT3[1] |
P0.0 | 82 | GPIO | CAN1_Rx | TXD3 | SDA1 |
P0.1 | 85 | GPIO | CAN1_Tx | RXD3 | SCL1 |