Serial UART Write

Target Category: AMD64, Arduino, Cortex M3, Delfino, F280x, F281X, Linux Raspberry Pi, MSP430, Piccolo, STM32

Target Sub-Category: Serial Uart

Description: The Serial UART Write block is a serial communication block for transmitting RS32 information. This block has two inputs: an enable connector and a data connector. When the enable connector is high, the values entering the data connector are presented to the transmit queue. When the enable connector is 0, values entering the data connector are ignored.

The serial port queue is interrupt driven. You may write as many bytes as are free in the transmit queue and the interrupt handler will send the bytes out automatically. You can query the current transmit queue length using the Serial UART Write block.

Use Serial UART Config to configure the serial port.

Note: If you are performing HIL on the Arduino, you cannot use serial UART blocks in your diagram or include them in Extern Definition blocks. This is because Arduino HIL communication relies on UART-0 on the target. Consequently, it is necessary to remove all UART-0 usage in your diagram when using HIL to debug it.

Data Format: Selects the data format. Binary format sends the data in raw binary format. ASCII format sends the data in human-readable format. This parameter is available only for devices that support it.

Mux Pin: Selects the physical pin on the device a given function is on.

Port: Selects the Comm port on the peripheral device. Click here for Arduino pin mapping. Click here for Raspberry Pi pin mapping.