Serial Transmit
Send serial data to UART port
Add-On Required: This feature requires the Simulink Coder Support Package for NXP FRDM-K64F Board add-on.
Libraries:
Simulink Coder Support Package for NXP FRDM-K64F Board
Description
The Serial Transmit block sends serial data to the Universal Asynchronous Receiver Transmitter (UART) port that is on the board.
To select the UART port, use the UART parameter.
To send the values to the UART port, use the Tx pin on the port. To specify the Tx (transmitting) pin, go to Configuration Parameters > Hardware Implementation pane > UARTx > Tx Pin.
The block inherits the data type from the signal at the input port.
During the external mode simulation, the block outputs the results from the executable running on the target hardware.
During simulation in all other modes, the block outputs zeroes.