Serial Communication using Explore M3
In this tutorial we will see the serial communication on Explore M3 using ExploreEmbedded libraries.
UART module
Explore M3 has 4-UARTs numbering 0-3, similarly the pins are also named as RXD0-RXD3 and TXD0-TXD3.As the LPC1768 pins are multiplexed for multiple functionalities, first they have to be configured as UART pins.
Below table shows the multiplexed UARTs 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 |