GithubHelp home page GithubHelp logo

xinligh / stm32f4xx_buzz_example Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 576 KB

使用 STM32F4 的定时器 TIM 产生 PWM,来实现无源蜂鸣器的驱动

C 91.08% Assembly 7.94% C++ 0.97% Batchfile 0.01%
stm32 buzzer buzz

stm32f4xx_buzz_example's Introduction

STM32F4xx_BUZZ_Example

使用STM32F4的定时器TIM产生PWM,来实现无源蜂鸣器的驱动。适用于STM32F4全部芯片。

开发环境

  • 固件库:STM32F4xx_DSP_StdPeriph_Lib_V1.8.0
  • 编译器:ARMCC V5.06
  • IDE:Keil uVision5
  • 操作系统:Windows 10 专业版

API

  • void BUZZ_SetStatus(BUZZ_Status status)
  • BUZZ_Status BUZZ_GetStatus(void)

注意

修改接口需要注意,蜂鸣器的驱动方式和使用的TIM。对应修改PWM输出电平和TIM时钟配置函数。

stm32f4xx_buzz_example's People

Watchers

 avatar

Forkers

louisguan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.