Difference between revisions of "Serial Communication using Explore M3"
(Created page with "Category:Explore M3 Bare Metal File:0 UART main.gif") |
|||
Line 1: | Line 1: | ||
[[Category:Explore M3 Bare Metal]] | [[Category:Explore M3 Bare Metal]] | ||
+ | In this tutorial we will see the serial communication on Explore M3 using ExploreEmbedded libraries. | ||
+ | |||
[[File:0 UART main.gif]] | [[File:0 UART main.gif]] | ||
+ | |||
+ | =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.<br> | ||
+ | Below table shows the multiplexed UARTs pins.<br> | ||
+ | |||
+ | {| 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 | ||
+ | |- | ||
+ | |P0.02 || 98 || GPIO || <b>TXD0</b> || ADC0[7] || | ||
+ | |- | ||
+ | |P0.03 || 99 || GPIO || <b>RXD0</b> || ADC0[6] || | ||
+ | |- | ||
+ | |P2_0 || 48 || GPIO || PWM1[1] || <b>TXD1</b> || | ||
+ | |- | ||
+ | |P0.1 || 49 || GPIO || PWM1[2] || <b>RXD1</b> || | ||
+ | |- | ||
+ | |P0.10 || 62 || GPIO || <b>TXD2</b> || SDA2|| MAT3[0] | ||
+ | |- | ||
+ | |P0.11 || 63 || GPIO || <b>RXD2</b> || SCL2|| MAT3[1] | ||
+ | |- | ||
+ | |P0.0 || 82 || GPIO || CAN1_Rx|| <b>TXD3 </b>|| SDA1 | ||
+ | |- | ||
+ | |P0.1 || 85 || GPIO || CAN1_Tx|| <b>RXD3</b> || SCL1 | ||
+ | |} | ||
+ | <br><br><br><br> |
Revision as of 18:12, 28 April 2016
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 |