Jump to main content

##

# 2.131.16 USARTx_WriteByte Function

## C

    /* x = USART instance number */

    /* Blocking mode */
    void USARTx_WriteByte( int data )

## Summary

Submits a byte of data to the given USART peripheral to transfer.

## Description

This function submits a byte of data to the USART peripheral to transfer. This Function is available only in non-interrupt mode.

## Precondition

- USARTx_Initialize must have been called for the associated USART instance.

- Transmitter readiness must be confirmed using USARTx_TransmitterIsReady.

## Parameters

Param | Description
--- | ---
data | Data byte to be transferred.

## Returns

None

## Example

    USART1_WriteByte(0xAA);

## Remarks

None.