查看: 2274|回复: 1

[已解决] KEA128 FIFO标志位问题

[复制链接]
  • TA的每日心情

    2016-11-23 21:42
  • 签到天数: 3 天

    连续签到: 1 天

    [LV.2]偶尔看看I

    2

    主题

    9

    帖子

    0

    注册会员

    Rank: 2

    积分
    68
    最后登录
    2018-6-16
    发表于 2018-6-7 19:50:20 | 显示全部楼层 |阅读模式
    请问KEA128的ADC采集的FIFO标志位在哪,我看到使能ALEN,会进入中断,但是不知道中断函数在哪,看到别人帖子是需要等待转换完成,请问转换完成标志位在哪啊

    最佳答案

    ADC_SC4[AFDEP], 这个位的解释你就可以知道了: FIFO Depth enables the FIFO function and sets the depth of FIFO. When AFDEP is cleared, the FIFO is disabled. When AFDEP is set to nonzero, the FIFO functio ...
    回复

    使用道具 举报

    该用户从未签到

    712

    主题

    6371

    帖子

    0

    超级版主

    Rank: 8Rank: 8

    积分
    24883
    最后登录
    2025-7-20
    发表于 2018-6-8 10:59:35 | 显示全部楼层
    ADC_SC4[AFDEP], 这个位的解释你就可以知道了:
    FIFO Depth enables the FIFO function and sets the depth of FIFO. When AFDEP is cleared, the FIFO is
    disabled. When AFDEP is set to nonzero, the FIFO function is enabled and the depth is indicated by the
    AFDEP bits. The ADC_SC1[ADCH] and ADC_R must be accessed by FIFO mode when FIFO function is
    enabled. ADC starts conversion when the analog channel FIFO is upon the level indicated by AFDEP bits.
    The COCO bit is set when the set of conversions are completed and the result FIFO is upon the level
    indicated by AFDEP bits.
    也就是FIFO满的时候,COCO位会置1, 然后如果你使能了中断,就会进入中断了。
    COCO就是ADC_SC1[COCO]位,你看下手册就知道了。

    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /3 下一条

    Archiver|手机版|小黑屋|恩智浦技术社区

    GMT+8, 2025-7-21 00:24 , Processed in 0.085137 second(s), 23 queries , MemCache On.

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.

    快速回复 返回顶部 返回列表