An archive of community.esquilo.io as of Saturday January 26, 2019.

UART buffer size?

steveb48

Hi all,

How big is the input buffer for UARTs? Is there a way to tell it's overflowed?

thanks
Steve

Scott_Shumate

hi Steve,

The UART FIFOs in the ARM processor are 8 bytes for UARTs 0-1 and 1 byte for UARTs 2-4. We don't currently have a Squirrel function to check for overflow but it's a great suggestion. We'll try to add that in the next release.

-Scott

Scott_Shumate

I should also mention that the software FIFOs in the operating system are 64 bytes per UART for all UARTs. Since the UARTs are interrupt-driven, you are much more likely to overflow the software FIFOs than the hardware FIFOs unless you are operating the UARTs at very high speed.

-Scott

steveb48

Thanks Scott. It was the software buffer that I was looking for. Is there still no way of detecting overflow?

Steve

Scott_Shumate

Not in the current UART class but it should be easy to add.