usart_polling_example#
Overview#
The uart_polling example shows how to use uart driver in polling way: In this example, one uart instance connect to PC, the board will send back all characters that PC send to the board.
Supported Boards#
LPC845BREAKOUT
Hardware requirements
Micro USB cable
LPC845 Breakout board
Personal Computer
Board settings
No special settings are required.
Prepare the demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port on the board.
Open a serial terminal with the following settings:
9600 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
The log below shows the output of the USART polling driver example in the terminal window:
Usart polling example.
Board will send back received characters.
Now, please input any character:
LPCXpresso802
Hardware requirements
Mini/micro USB cable
LPCXpresso802 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port on the board
Open a serial terminal with the following settings:
9600 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
The log below shows the output of the hello world demo in the terminal window:
Usart polling example.
Board will send back received characters.
Now, please input any character:
LPCXpresso804
Hardware requirements
Mini/micro USB cable
LPCXpresso804 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port on the board
Open a serial terminal with the following settings:
9600 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
The log below shows the output of the hello world demo in the terminal window:
Usart polling example.
Board will send back received characters.
Now, please input any character:
LPCXpresso824MAX
Hardware requirements
Mini/micro USB cable
LPCXpresso824MAX board
Personal Computer
Board settings
Connect SJ9: 2-3
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port on the board
Open a serial terminal with the following settings:
9600 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
The log below shows the output of the hello world demo in the terminal window:
Usart polling example.
Board will send back received characters.
Now, please input any character:
LPCXpresso845MAX
Hardware requirements
Mini/micro USB cable
LPCXpresso845MAX board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port on the board
Open a serial terminal with the following settings:
9600 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
The log below shows the output of the hello world demo in the terminal window:
Usart polling example.
Board will send back received characters.
Now, please input any character:
LPCXpresso860MAX
Hardware requirements
Micro USB cable
LPCXpresso860MAX board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port on the board
Open a serial terminal with the following settings:
9600 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
The log below shows the output of the hello world demo in the terminal window:
Usart polling example.
Board will send back received characters.
Now, please input any character: