Location:
Search - STM32 PWM DMA
Search list
Description: 首先要说:是我自己写的你他地方下不到!
这是一个用PWM播放.wav歌曲文件的程序,歌曲本身已经被和代码一起固化到FLASH中了,想要听到美妙的歌曲你只需要把PB0经过一个滤波放大电路接到蜂鸣器或耳机插孔上,并把程序下到你的STM32中运行就可以了。
另外,看看这篇关于PWM播放.wav的文章:http://wmx0901.blog.163.com/blog/static/10320222020097171727367/edit/-First of all, to say: I wrote it myself, he places less than you! This is a PWM player with. Wav files songs, songs and the code itself has been with the curing of the FLASH, and you want to hear the wonderful songs you have to do to go through a filtering PB0 received buzzer amplifier or headphones jack, and the procedures to run your STM32 it. In addition, take a look at this on the PWM player. Wav article: http://wmx0901.blog.163.com/blog/static/10320222020097171727367/edit/
Platform: |
Size: 1145856 |
Author: wmx0901 |
Hits:
Description: PLC 测试代码,芯片STM32,测试内容:RAM定位
GPIO
PWM
Systick
RTC
ADC
DMA
EEPROM(24C16)
USART
外部中断
-PLC test code, chip STM32, contents of the tests: RAM location GPIO PWM Systick RTC ADC DMA EEPROM (24C16) USART External Interrupt
Platform: |
Size: 627712 |
Author: ztx |
Hits:
Description: 浅谈STM32的DMA模块的使用,
DMA是STM32中一个独立与Cortex-M3内核的模块,有点类似与ADC、PWM、TIMER等模块-[NO ENGLISH]
Platform: |
Size: 519168 |
Author: yyy |
Hits:
Description: THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
Platform: |
Size: 144384 |
Author: VV |
Hits:
Description: 利用stm32产生PWM方波驱动LED,实现的功能是LED从暗到亮,再从亮到灭,该文件包含了完整的驱动程序,使用芯片是stm32f103c8t6-Produced by STM32 PWM square wave drive LED, to achieve the function of LED from dark to light, from the light to destroy, this file contains the integrity of the driver, the use of the chip is stm32f103c8t6
Platform: |
Size: 576512 |
Author: guoshan |
Hits:
Description: ALIENTEK战舰STM32开发板实验,DAC的DMA实验,非常有用的学习资料。我一直就是按照这个学习的。-ALIENTEK STM32 development board experiments, DMA DAC experiments, very useful learning materials. I always follow this study..
Platform: |
Size: 359424 |
Author: 李朋勃 |
Hits:
Description: STM32 嵌入式开放,介绍通讯方面的I2C/SPI/UART、模数AD/DA、Timer/Interrupt/PWM/DMA/USB/Ethnet/I2S/Can/PulseCounter-STM32 embedded open, introduced the communications I2C/SPI/UART, analog AD/DA, Timer/Interrupt/PWM/DMA/USB/Ethnet/I2S/Can/PulseCounter
Platform: |
Size: 287744 |
Author: 胡晓东 |
Hits:
Description: STM32 嵌入式开放,介绍通讯方面的I2C/SPI/UART、模数AD/DA、Timer/Interrupt/PWM/DMA/USB/Ethnet/I2S/Can/PulseCounter-STM32 Embedded Open, describes the communication aspects of the IC/SPI/UART, modulus AD/DA, Timer/Interrupt/PWM/DMA/USB/Ethnet/IS/Can/PulseCounter
Platform: |
Size: 296960 |
Author: 胡晓东 |
Hits:
Description: ADC 采集显示,PWM三路输出,一路PWM占空比PID自动调整占空比(ADC acquisition and display, PWM three way output, all the way PWM duty cycle, PID automatic adjustment duty cycle)
Platform: |
Size: 4774912 |
Author: MINIelf
|
Hits:
Description: STM32作为主控芯片,72Mhz,利用DMA+PWM实现驱动WS2812,创建16个并行800kBit / s数据流的想法如下:
使用定时器每1.25us创建一个800kHz的时基和一个DMA请求。
使用2个比较模块在低位时间(350ns)和高位时间(700ns)下创建DMA请求
1.25us DMA请求将GPIO端口的所有位设置为高电平
350ns DMA请求将数据从帧缓冲区传输到GPIO端口。如果该位为0,GPIO引脚将变为低电平,否则将保持高电平。
700ns DMA请求将所有GPIO引脚设置为低电平。
重复步骤1到3,直到发送所有位。
这产生脉冲周期为1.25us,脉冲宽度为350ns或700ns的脉冲流,具体取决于脉冲表示的位值,通过DMA将数据传输到GPIO端口意味着每16个LED每位需要一个字(两个字节)。每个LED 24位,每16个LED 24个字(48个字节)。(The idea to create 16 parallel 800kBit/s data streams is the following:
Use a Timer to create an 800kHz time base and a DMA request every 1.25us.
Use 2 compare modules to create DMA requests at the low bit time (350ns) and the high bit time (700ns)
The 1.25us DMA request sets all bits of the GPIO port high
The 350ns DMA request transfers the data from the frame buffer to the GPIO port. If the bit is a 0, the GPIO pin will go low, otherwise it will stay high.
The 700ns DMA request sets all GPIO pins low.
Repeat steps 1 to 3 until all bits have been transmitted.
This creates a stream of pulses with a pulse period of 1.25us and a pulse width of either 350ns or 700ns depending on the bit value the pulse represents.
Transferring the data via DMA to the GPIO port means that per 16 LEDs one half word (two bytes) is needed per bit. At 24 bits per LED that makes 24 half words (48 bytes) per 16 LEDs.)
Platform: |
Size: 2373632 |
Author: spt
|
Hits:
Description: 程序初始化了定时器1,并通过DMA传输修改PWM占空比,方便用来实现快速SPWM(Program initialization timer 1, and through the DMA transmission, modify the PWM duty cycle, easy to use to achieve fast SPWM)
Platform: |
Size: 1024 |
Author: 暮霭
|
Hits: