In this tutorial we will see how to do serial communication on Explore M3 using ExploreEmbedded libraries.


0 UART main.gif

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.

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



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