找回密码
 立即注册

QQ登录

只需一步,快速开始

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

[M031] ADC Flexible Channel Control

[复制链接]
跳转到指定楼层
楼主
admin 发表于 2024-5-9 14:17:21 | 只看该作者 回帖奖励 |正序浏览 |阅读模式


  • Application: This example code uses ADC with PDMA to trigger multiple ADC channels only once, and each channel can perform multiple A/D conversions.
  • BSP Version: M031_Series_BSP_CMSIS_V3.05.000
  • Hardware: NuMaker-M032KI V1.0
The ADC of the M031 series essentially supports multiple operating modes. Among them, Continuous Scan mode can trigger multiple ADC channels at one time, but each channel can only A/D convert once. What we need is to perform A/D conversion multiple times for each channel. For example, if you want to trigger the conversion of three ADC channels 1, 2, and 3 at one time, and perform two A/D conversions on each channel, then the Continuous Scan mode can only convert channels 1, 2, 3, 1, 2, 3 in sequence. This is different from the conversion sequence 1, 1, 2, 2, 3, 3 we need.

This example code uses ADC Continuous Scan mode with PDMA's autonomous data movement, calculation of movement times, and interrupt function to achieve the requirement of triggering multiple ADC channels at one time, and each channel can perform multiple A/D conversions.

You can download the sample code at https://www.nuvoton.com/resource-downlo ... 1202133645
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 顶 踩
牛卧堂
回复

使用道具 举报

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

本版积分规则

新唐MCU