查看: 1980|回复: 3

[其他] cadc_slot_config_t是什么?slot怎么理解,求梳理。

[复制链接]
  • TA的每日心情
    难过
    2017-2-9 09:58
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]初来乍到

    9

    主题

    28

    帖子

    0

    注册会员

    Rank: 2

    积分
    143
    最后登录
    2018-6-29
    发表于 2017-4-6 10:08:00 | 显示全部楼层 |阅读模式
    各位大神,新手首次调ADC,其中配置部分 两次差分通道选择(红色字体),请问这两个配置什么区别?求大神指教。多谢!
    typedef struct CAdcChnConfig
    {
        cadc_diff_chn_t diffChns; /*!< Select the differential channel pair. @internal gui name="Channel" */
        cadc_chn_sel_mode_t diffSelMode; /*!< Select which channel is indicated in a pair. @internal gui name="Differential mode" */
      
      cadc_gain_mode_t gainMode; /*!< Gain mode for each channel. @internal gui name="Gain" */
    } cadc_chn_config_t;


    typedef struct CAdcSlotConfig
    {
        bool slotDisable; /*!< Keep the slot unavailable. @internal gui name="Slot" */
        bool syncPointEnable; /*!< Sample waits for an enabled SYNC input to occur. @internal gui name="Synchronization point" */
        bool syncIntEnable; /*!< Scan interrupt enable. @internal gui name="Scan interrupt" */

        /* Select the input channel for slot. */
        cadc_diff_chn_t diffChns;  /*!< Select the differential pair. @internal gui name="Channel pair" id="diffSlotChns" */
        cadc_chn_sel_mode_t  diffSel;   /*!< Positive or negative channel in differential pair. @internal gui name="Channel select" */


        /* Event detection mode. */
        cadc_zero_crossing_mode_t zeroCrossingMode; /*!< Select zero crossing detection mode. @internal gui name="Zero cross mode" */
        uint16_t lowLimitValue; /*!< Select low limit for hardware compare. @internal gui name="Low limit compare value" range="0..32760" */
        uint16_t highLimitValue;/*!< Select high limit for hardware compare. @internal gui name="High limit compare value" range="0..32760" */
        uint16_t offsetValue;   /*!< Select sign change limit for hardware compare. @internal gui name="Offset value" range="0..32760" */
    } cadc_slot_config_t;

    最佳答案

    moli666 发表于 2017-4-6 13:41 MKV46F256,KSDK1.3版本。 关于这个问题,可以到KV46手册中查看: The slots are used to define which input or differential pair to measure at each step in a scan sequence. Th ...
    有所收获
    回复

    使用道具 举报

    该用户从未签到

    723

    主题

    6382

    帖子

    0

    超级版主

    Rank: 8Rank: 8

    积分
    25494
    最后登录
    2025-9-9
    发表于 2017-4-6 12:43:40 | 显示全部楼层
    楼主你好,请问你用的是NXP的什么产品?
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    难过
    2017-2-9 09:58
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]初来乍到

    9

    主题

    28

    帖子

    0

    注册会员

    Rank: 2

    积分
    143
    最后登录
    2018-6-29
     楼主| 发表于 2017-4-6 13:41:57 | 显示全部楼层
    小恩GG 发表于 2017-4-6 12:43
    楼主你好,请问你用的是NXP的什么产品?

    MKV46F256,KSDK1.3版本。
    有所收获
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    723

    主题

    6382

    帖子

    0

    超级版主

    Rank: 8Rank: 8

    积分
    25494
    最后登录
    2025-9-9
    发表于 2017-4-7 16:22:30 | 显示全部楼层
    moli666 发表于 2017-4-6 13:41
    MKV46F256,KSDK1.3版本。

    关于这个问题,可以到KV46手册中查看:
    The slots are used to define which input or differential pair to measure at each step in a scan sequence. The
    SDIS register defines which sample slots are enabled.
    回复 支持 反对

    使用道具 举报

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

    本版积分规则

    关闭

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

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

    GMT+8, 2025-9-11 12:05 , Processed in 0.092709 second(s), 25 queries , MemCache On.

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.

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