Flush 1 byte over UART | Cypress Semiconductor
Flush 1 byte over UART
I need to wake up a peripheral chip, connected to PSoC5LP via UART. This is done by sending 1 byte to the sleeping peripheral (which byte is then lost, only used for waking it up). However, in practice, I must send multiple bytes to wake it up. I suspect the UART Tx-FIFO buffer (with size 4 bytes) to be the problem. Can I strictly send 1 byte over UART, ignoring the buffer? Also, if there is a Tx-FIFO buffer, should it manually be flushed, or is it flushed "by time"?
To send 1 uint8_t 'value' over the UART component named UART_, I currently use:
UART_TXDATA_REG = value;
but this only places 'value' into the Tx-FIFO.