MCUXpresso_LPC55S69/boards/lpcxpresso55s69/cmsis_driver_examples/usart/interrupt_transfer/cm33_core0/readme.txt

56 lines
1.8 KiB
Plaintext

Overview
========
CMSIS-Driver defines generic peripheral driver interfaces for middleware making it reusable across a wide
range of supported microcontroller devices. The API connects microcontroller peripherals with middleware
that implements for example communication stacks, file systems, or graphic user interfaces.
More information and usage method please refer to http://www.keil.com/pack/doc/cmsis/Driver/html/index.html.
The cmsis_uart_interrupt_transfer example shows how to use uart cmsis driver in interrupt way:
In this example, one uart instance connect to PC through uart, the board will
send back all characters that PC send to the board.
Note: The example echo every 8 characters, so input 8 characters every time.
Toolchain supported
===================
- IAR embedded Workbench 9.20.2
- Keil MDK 5.36
- GCC ARM Embedded 10.3.1
- MCUXpresso 11.5.0
Hardware requirements
=====================
- Mini USB cable
- LPCXpresso55s69 board
- Personal Computer
Board settings
==============
No special is needed.
Prepare the Demo
================
Note: MCUXpresso IDE project default debug console is semihost
1. Connect a mini USB cable between the PC host and the OpenSDA USB port on the board.
2. Open a serial terminal on PC for OpenSDA serial device with these settings:
- 115200 baud rate
- 8 data bits
- No parity
- One stop bit
- No flow control
3. Download the program to the target board.
4. Reset the SoC and run the project.
Running the demo
================
When the demo runs successfully, the log would be seen on the OpenSDA terminal like:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
USART CMSIS interrupt example
Board receives 8 characters then sends them out
Now please input:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When you input 8 characters, system will echo it by USART and them would be seen on the OpenSDA terminal.