MSPM0L1306小练-DL_ADC12_initSingleSample函数解析

[复制链接]
 楼主| xyz549040622 发表于 2024-3-25 22:49 | 显示全部楼层 |阅读模式
ni, dc, ADC1, ADC, AD
官方对这个函数的介绍如下:
  1. /**
  2. * [url=home.php?mod=space&uid=247401]@brief[/url] Initializes ADC12 for single sampling mode operation. This
  3. * initialization configures MEMCTL0 as the default memory control register for
  4. * the conversion. If the conversion needs use a different memory control
  5. * register the user can call [url=home.php?mod=space&uid=144993]@ref[/url] DL_ADC12_setStartAddress to specify a
  6. * different control register.
  7. *
  8. * @param[in] adc12       Pointer to the register overlay for the peripheral
  9. * @param[in] repeatMode  Specifies repeat configuration. One of
  10. *                    @ref DL_ADC12_REPEAT_MODE
  11. * @param[in] sampleMode  Specifies source of the sampling signal. One of
  12. *                    @ref DL_ADC12_SAMPLING_SOURCE
  13. * @param[in] trigSrc     Specifies sampling trigger source. One of
  14. *                    @ref DL_ADC12_TRIG_SRC
  15. * @param[in] resolution  Specifies sample conversion resolution. One of
  16. *                    @ref DL_ADC12_SAMP_CONV_RES
  17. * @param[in] dataFormat  Specifies sample conversion data format. One of
  18. *                    @ref DL_ADC12_SAMP_CONV_DATA_FORMAT
  19. *
  20. */
初始化ADC12为单次采样模式时的操作,如果要将ADC12配置为序列采样模式,调用的函数应该是DL_ADC12_initSeqSample 。那么下面详细介绍下这个函数的每个参数以及在syscfg中对应的配置信息。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:qq群: 嵌入式系统arm初学者 224636155←← +→→点击-->小 i 精品课全集,21ic公开课~~←←→→点击-->小 i 精品课全集,给你全方位的技能策划~~←←

2841

主题

19330

帖子

110

粉丝
快速回复 在线客服 返回列表 返回顶部