This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Serial Transmit

Send an [MxN] array of data to the UART


Simulink Coder Support Package for NXP FRDM-KL25Z Board/FRDM-KL25Z


Send an [MXN] array of data to the selected UART.

You can change the Baud Rate and also select the Tx pin for the UARTx Serial Interface from Configuration Parameters > Hardware Implementation pane > UARTx.

During simulations without the hardware, this block does nothing.



Select the UART for the serial communication interface.

Make sure not to select UART0 when you use external mode because the External mode uses UART0 for target to host communication.

Send mode

To transmit an array of byte data to the UART, set the Send mode parameter to putc.

Select printf value for debugging purposes. You can send an array of any data type to the terminal.