打印

MSPM0L1306小练-DL_ADC12_initSingleSample函数解析

[复制链接]
209|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
xyz549040622|  楼主 | 2024-3-25 22:49 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
ni, dc, ADC1, ADC, AD
官方对这个函数的介绍如下:
/**
* [url=home.php?mod=space&uid=247401]@brief[/url] Initializes ADC12 for single sampling mode operation. This
* initialization configures MEMCTL0 as the default memory control register for
* the conversion. If the conversion needs use a different memory control
* register the user can call [url=home.php?mod=space&uid=144993]@ref[/url] DL_ADC12_setStartAddress to specify a
* different control register.
*
* @param[in] adc12       Pointer to the register overlay for the peripheral
* @param[in] repeatMode  Specifies repeat configuration. One of
*                    @ref DL_ADC12_REPEAT_MODE
* @param[in] sampleMode  Specifies source of the sampling signal. One of
*                    @ref DL_ADC12_SAMPLING_SOURCE
* @param[in] trigSrc     Specifies sampling trigger source. One of
*                    @ref DL_ADC12_TRIG_SRC
* @param[in] resolution  Specifies sample conversion resolution. One of
*                    @ref DL_ADC12_SAMP_CONV_RES
* @param[in] dataFormat  Specifies sample conversion data format. One of
*                    @ref DL_ADC12_SAMP_CONV_DATA_FORMAT
*
*/
初始化ADC12为单次采样模式时的操作,如果要将ADC12配置为序列采样模式,调用的函数应该是DL_ADC12_initSeqSample 。那么下面详细介绍下这个函数的每个参数以及在syscfg中对应的配置信息。

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

2696

主题

19141

帖子

103

粉丝