usart_transfer_ring_buffer#
Overview#
The usart_interrupt_rb_transfer example shows how to use usart driver in interrupt way with RX ring buffer enabled.
In this example, one uart instance connect to PC through, the board will send back all characters that PC send to the board.
Note: The example echo every 8 characters.
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 transfer using ring buffer driver example in the terminal window:
USART RX ring buffer example.
Send back received data.
Echo every 8 bytes.
LPCXpresso802
Hardware requirements
Mini/micro USB cable
LPCLPCXpresso54114 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 (J7) on the board
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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 RX ring buffer example.
Send back received data.
Echo every 8 bytes.
LPCXpresso804
Hardware requirements
Mini/micro USB cable
LPCLPCXpresso54114 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 (J7) on the board
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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 RX ring buffer example.
Send back received data.
Echo every 8 bytes.
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 (J3) on the board
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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 RX ring buffer example.
Send back received data.
Echo every 8 bytes.
LPCXpresso845MAX
Hardware requirements
Mini/micro USB cable
LPCLPCXpresso54114 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 (J7) on the board
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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 RX ring buffer example.
Send back received data.
Echo every 8 bytes.
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 (J7) on the board
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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 RX ring buffer example.
Send back received data.
Echo every 8 bytes.