ADC module application - MATLAB/Simulink code generation
Version 1.0.0 (54 KB) by
Yifei Sun
ADC module application - MATLAB/Simulink code generation
本代码生成由ePWM1模块产生SPWM,然后将产生的SPWM经过RC滤波后送入ADC模块,由ADC模块测量其有效值。相关参数如下: (1)载波频率10KHZ,调制波频率50Hz. (2)RC滤波器截至频率fc=160Hz, R=10k, C=0.1uF. 快速导航:0-14:30 简短介绍,中断选取,ADC应用,均方根求RMS。 14:30—24:13 SPWM波形 24:13——结束 CCS调试
This code generates SPWM generated by ePWM1 module, then sends the generated SPWM to ADC module after RC filtering, and the ADC module measures its effective value. Relevant parameters are as follows:
(1) Carrier frequency 10KHZ, modulated wave frequency 50Hz
(2) The cut-off frequency of RC filter fc=160Hz, R=10k, C=0.1uF
Fast navigation: 0-14:30 Brief introduction, interrupt selection, ADC application, RMS calculation of root mean square. 14: 30-24:13 SPWM waveform 24:13 - end CCS commissioning
Cite As
Yifei Sun (2025). ADC module application - MATLAB/Simulink code generation (https://uk.mathworks.com/matlabcentral/fileexchange/120058-adc-module-application-matlab-simulink-code-generation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2021a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |