找回密码
 立即注册

QQ登录

只需一步,快速开始

打印 上一主题 下一主题
开启左侧

[NUC140] UART Rx Time-out Interrupt

[复制链接]
跳转到指定楼层
楼主
admin 发表于 2022-7-26 10:35:13 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 顶 踩
牛卧堂
回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则

新唐MCU