[NUC140] UART Rx Time-out Interrupt

Post Reply
chhsieh3
Posts: 307
Joined: 13 Mar 2020, 09:08

13 May 2020, 14:21

  • 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
Nuvoton

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 50 guests