登录
首页 » 嵌入式系统 » STC15W4K系列半桥驱动PWM(带死区控制的PWM)C 程序

STC15W4K系列半桥驱动PWM(带死区控制的PWM)C 程序

于 2022-08-17 发布 文件大小:1.29 kB
0 146
下载积分: 2 下载次数: 1

代码说明:

使用STC15W4K系列MCU发出带死区的PWM波,占空比可调,可用于驱动半桥电路,BUCk,BOOST带同步整流的驱动。使用本代码前,请到STC官网下载STC15W4K系列的头文件,这里不给出。使用函数set_pwm()可设置占空比,使用前要先初始化init_pwm().在初始化函数里涉及到PWM引脚,PWM周期,初始电位,是否在二分之一duty处触发ADC,初始占空比设置,使用时可以参照数据手册按需求修改,这里只是一个实际的应用例程,希望有所帮助。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • PPPoE在算法实现的源代码
    PPPoE协议在Psos中的实现源代码-Psos PPPoE in the realization of the source code
    2022-05-30 06:24:45下载
    积分:1
  • 模块: init.c 目的: 这个程序演示实时操作μC/OS中中断的使用情况...
    模块: init.c 目的: 这个程序演示嵌入式实时操作系统μC/OS中中断的使用情况-Module: init.c Objective: To demonstrate the process of embedded real-time operating system μC/OS in the use of interrupted
    2022-06-15 18:52:46下载
    积分:1
  • RTOS
    RTOS -REWORKS ReWorks里一个有关事件的例子。-RTOS-REWORKSReWorks in the case of a case in point.
    2022-06-29 11:45:58下载
    积分:1
  • 一个led的流水灯,简单的程序,贵在有proteus访真文件。
    一个led的流水灯,简单的程序,贵在有proteus访真文件。-A stream of flowing water led lights, a simple procedure, your visit in a real file proteus.
    2022-02-12 22:01:04下载
    积分:1
  • USART 蓝牙
    更具体地说,我想知道如何等待,并解析请求和响应进行有效的主动。我能想到的方法去做,但我想知道最好的方法。大部分的示例代码,我遇到一个字符串写入,500ms左右的延迟,然后检查响应,修剪的过程中。我想建立一个事件驱动的解决方案。如果无线发射连接事件,我想能够火灾事件处理程序没有callback_connect()为事件发生的投票。为此,我开始用铅笔了,可以运行在UART的中断处理程序的状态机,但进展缓慢…
    2023-05-20 08:20:02下载
    积分:1
  • 自己编写四轴直升机飞控
    本飞控系统是参考APM开源飞控系统的控制律和PID参数,主控芯片是STM32F103ZET6,跑了UC/OS操作系统,创建了多个任务,最快任务为5ms,用于更新MPU6050检测的加速度值和陀螺仪值,并调用DMP库函数得到姿态角,最后结合内外换的PID控制策略实现对姿态角的稳定控制,是一个自己认为成功的移植项目。
    2022-03-21 03:15:47下载
    积分:1
  • this document describe davicom ic dm9000 DM9000.c . this ic can be used in the e...
    this document describe davicom ic dm9000 DM9000.c . this ic can be used in the embedded systems and network lan cards. its is 10/100Mpbs ic.
    2022-03-07 01:33:21下载
    积分:1
  • 2023-07-19 09:45:02下载
    积分:1
  • Discussing embedded systems in general is difficult, because each embedded syste...
    Discussing embedded systems in general is difficult, because each embedded system is unique. Rather than presenting a list of general principles for handling embedded development issues, this book presents examples of problems encountered and solutions to those problems using real hardware and software. In that sense, it is a “cookbook” for developers that offers design “recipes” that can be elaborated on or modified as needed to solve other design problems.
    2022-02-14 10:49:17下载
    积分:1
  • 集中探讨C指针的文章
    集中探讨C指针的文章--我眼中的指针,可以参考。-focused on the C pointer articles-- I see as a pointer, they can refer to.
    2022-01-26 04:01:41下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载