标题: [NUC140] UART Rx Time-out Interrupt [打印本页] 作者: admin 时间: 2022-7-26 10:35 标题: [NUC140] UART Rx Time-out Interrupt 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.