Site Search

Silicon Labs CP210x: What are Flush Buffers?

CP21xx

This function resets the CP210x TX/RX FIFO when opening or closing the COM port.

When the COM port is closed before the data received from the USB Host (PC, etc.) has been sent from the UART side, or when the COM port is closed before the data received from the UART side has been sent to the USB Host. , the unprocessed data will remain in the FIFO as garbage. If COM is reopened in that state, garbage data will be sent, which may cause application problems.
The Flush Buffer feature allows you to reset the FIFO so garbage data is no longer sent.

The figure below shows the setting screen in Simplicity Studio (device is CP2102N).

Article header flush%20buffers%20%e3%81%a8%e3%81%af%e3%81%a9%e3%81%ae%e3%82%88%e3%81%86%e3%81%aa% e6%a9%9f%e8%83%bd%e3%81%a7%e3%81%99%e3%81%8b%ef%bc%9f 2

Experienced FAE
Free consultation is available.

From specific product specifications to parts selection, the Company FAE will answer your technical concerns free of charge. Please feel free to contact us.