- Application: This code uses UART Rx time-out interrupt to receive data.
- BSP Version: NUC100/120 BSP v3.00.004
- Hardware: NuTiny-EVB-NUC140 LQFP100 V1.0
The FIFO depth for NUC140 UAR0 is 64 bytes. User can configure the data threshold as 1/4/8/14/30/46/62 bytes to trigger Rx interrupt when receiving data. When the received data in Rx FIFO reaches the threshold configuration, the interrupt is triggered to notify CPU to handle these data. It is used to avoid entering interrupt frequently and let CPU have enough time to process other tasks. There is another Rx time-out interrupt which can be used. When the data number in FIFO does not reach threshold value but no more data is incoming for a while, the Rx time-out interrupt is generated to notify CPU to read these data.
You can download the sample code at https://www.nuvoton.com/resource-downlo ... 1225132929
|