MCUXpresso SDK Documentation

flexio3_uart_interrupt_transfer

flexio3_uart_interrupt_transfer#

Overview#

The flexio_uart_interrupt example shows how to use flexio uart driver in interrupt way:

In this example, a flexio simulated uart connect to PC through USB-Serial, the board will send back all characters that PC send to the board. Note: two queued transfer in this example, so please input even number characters.

Supported Boards#

MIMXRT1060-EVKB
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1060-EVKB board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • RX of USB2COM to J16-2

  • TX of USB2COM to J16-1

  • GND of USB2COM to J16-7

Prepare the Demo
  1. Connect the USB2COM Converter to the host PC

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

When the demo runs successfully, the log would be seen on the UART Terminal port which connected to the USB2COM like:

Flexio uart interrupt example
Board receives 8 characters then sends them out
Now please input:
MIMXRT1060-EVKC
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1060-EVKC board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • RX of USB2COM to J16-2

  • TX of USB2COM to J16-1

  • GND of USB2COM to J16-7

Prepare the Demo
  1. Connect the USB2COM Converter to the host PC

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

When the demo runs successfully, the log would be seen on the UART Terminal port which connected to the USB2COM like:

Flexio uart interrupt example
Board receives 8 characters then sends them out
Now please input:
MIMXRT1040-EVK
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1040-EVK board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • RX of USB2COM to J33-5

  • TX of USB2COM to J33-6

  • GND of USB2COM to J17-7

Prepare the Demo
  1. Connect the USB2COM Converter to the host PC

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

When the demo runs successfully, the log would be seen on the UART Terminal port which connected to the USB2COM like:

Flexio uart interrupt example
Board receives 8 characters then sends them out
Now please input:
EVK-MIMXRT1064
Hardware requirements
  • Mini/micro USB cable

  • EVK-MIMXRT1064 board

  • Personal Computer

  • USB to Com Converter

Board settings

Connect pin:

  • RX of USB2COM to J22-2

  • TX of USB2COM to J22-1

  • GND of USB2COM to J24-7

Prepare the Demo
  1. Connect the USB2COM Converter to the host PC

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

When the demo runs successfully, the log would be seen on the UART Terminal port which connected to the USB2COM like:

Flexio uart interrupt example
Board receives 8 characters then sends them out
Now please input: