本代码生成由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
引用格式
Yifei Sun (2024). MATLAB/Simulink code generation - ADC module application (https://www.mathworks.com/matlabcentral/fileexchange/120058-matlab-simulink-code-generation-adc-module-application), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2021a
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |