基于单片机的SPWM控制系统设计研究及仿真武汉科技大学本科毕业论文
120 浏览量
更新于2024-04-09
收藏 1.48MB DOC 举报
摘 要
本文旨在建立基于单片机的SPWM调控系统,利用单片机产生SPWM波,其中脉冲的宽度按正弦规律变化,与正弦波等效的PWM波形称为SPWM波。根据SPWM法的原理,通过控制电路中开关器件的通断,使其输出的脉冲电压的面积与所希望输出的正弦波在相应区间内的面积相等,达到等效效果。利用MATLAB计算基波与载波的交点,计算交点间的持续时间,在单片机程序中建立数组,数组元素为定时器的初值,定时器溢出时输出电平自动翻转,查表赋予下一个电平的持续时间,得到SPWM波形。在protues中仿真,在示波器中观察SPWM波的波形。
关键词:单片机;MATLAB;查表;SPWM;仿真
Abstract
The main purpose of this paper is to establish an SPWM control system based on a single-chip microcomputer, using the single-chip microcomputer to generate SPWM waves, where the width of the pulse varies sinusoidally, and the PWM waveform equivalent to the sine wave is called SPWM wave. According to the principle of SPWM method, by controlling the on-off of the switching devices in the circuit, the output pulse voltage area is equal to the area of the desired output sine wave in the corresponding interval, achieving equivalent effect. Using MATLAB to calculate the intersection points of the fundamental wave and the carrier wave, calculating the duration between intersection points, establishing an array in the single-chip program, where the elements are the initial values assigned to the timer, when the timer overflows, the output level automatically flips, then looking up the table to assign the duration of the next level, and so on, to obtain an SPWM waveform. Finally, simulate in protues, and observe the waveform of the SPWM wave in the oscilloscope.
Keywords: Single-chip microcomputer; MATLAB; Look-up table; SPWM; Simulation
2022-07-03 上传
2023-07-09 上传
2023-07-09 上传
2021-09-27 上传
2023-07-08 上传
2023-07-02 上传
2023-07-09 上传
Mmnnnbb123
- 粉丝: 748
- 资源: 8万+
最新资源
- 黑板风格计算机毕业答辩PPT模板下载
- CodeSandbox实现ListView快速创建指南
- Node.js脚本实现WXR文件到Postgres数据库帖子导入
- 清新简约创意三角毕业论文答辩PPT模板
- DISCORD-JS-CRUD:提升 Discord 机器人开发体验
- Node.js v4.3.2版本Linux ARM64平台运行时环境发布
- SQLight:C++11编写的轻量级MySQL客户端
- 计算机专业毕业论文答辩PPT模板
- Wireshark网络抓包工具的使用与数据包解析
- Wild Match Map: JavaScript中实现通配符映射与事件绑定
- 毕业答辩利器:蝶恋花毕业设计PPT模板
- Node.js深度解析:高性能Web服务器与实时应用构建
- 掌握深度图技术:游戏开发中的绚丽应用案例
- Dart语言的HTTP扩展包功能详解
- MoonMaker: 投资组合加固神器,助力$GME投资者登月
- 计算机毕业设计答辩PPT模板下载