Example description
The UART example demonstrates the transfer of data using the UART module. The data transfer will happen in a loop from UART0 to UART1 to UART0. The UART0 will operate in polling mode, while UART1 will work in interrupt mode. The data transmitted will be checked with data recived to verify the data transfer operation. If the data transfer is succesful, the RED LED on the board�will be turned on
Special connection requirements
Connect pins on the LPC812 XPresso board :
TX0 (P_0.4) (pin 5 on J7) -> RX1 (P_0.14) (pin 5 on J6)
TX1 (P_0.13) (pin 8 on J6) -> RX0 (P_0.0) (pin 4 on J7)
Build procedures:
LPC8xx example quickstart for IAR EWARM
LPC8xx example quickstart for Keil uVision4
LPC8xx example quickstart for Code Red Xpresso
Supported boards and board setup:
NXP Xpresso LPC812 board
Submitting LPCOpen issues:
Community support for LPCOpen
| #define UART_TEST_DEFAULT_BAUDRATE 115200 |
| #define UART_TEST_REPEAT_NUMBER 0xF |
| static void bufferCheck |
( |
| ) |
|
|
static |
| static void bufferInit |
( |
uint8_t |
seed | ) |
|
|
static |
Application main function.
Main program body.
- Returns
- Does not return
- Note
- This function will not return
defined(CHIP_LPC175X_6X)
Definition at line 167 of file uart.c.
| void UART1_IRQHandler |
( |
void |
| ) |
|
Handle interrupt from UART.
- Returns
- Nothing
Definition at line 127 of file uart.c.
| volatile bool receiveCompleted = true |
|
static |
| volatile bool sendCompleted = true |
|
static |