牛卧堂MCU技术交流

标题: [M031] ADC Flexible Channel Control [打印本页]

作者: admin    时间: 2024-5-9 14:17
标题: [M031] ADC Flexible Channel Control


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





欢迎光临 牛卧堂MCU技术交流 (http://nuvoton-mcu.com/) Powered by Discuz! X3.2