-
PMSM-28335
基于SVPWM控制的永磁同步伺服电机控制代码(SVPWM Based on PMSM control code.)
- 2020-07-01 03:20:02下载
- 积分:1
-
【19】DMA PWM WS2812 GPIO输出16组
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.)
- 2020-12-15 10:49:13下载
- 积分:1
-
STM32103制作的数控电源源代码
说明: 用STM32103单片机,采用数码管显示电流、电压的数控电源。对学习STM32单片机编程和DIY数控电源很有实用价值。(With STM32103 single chip microcomputer, digital tube is used to display current and voltage. It is very useful for learning STM32 single chip computer programming and DIY numerical control power supply.)
- 2020-03-10 22:21:20下载
- 积分:1
-
b00st
:文章在对双BOOST DC-AC单级正弦波逆变电路工作原理进行分析的基础上,采用SPWM调制技术对其进行了仿真和试验研究,给出了相关结果。实践表明该电路可以实现高频功率变换下的单级升压工频逆变输出。(b00st)
- 2009-10-17 21:41:14下载
- 积分:1
-
STC15系列只用一个定时器的红外接收程序
STC15系列只用一个定时器的红外接收程序,有需要的可以看一下(STC15 series infrared receiving program with only one timer, you can see if you need it.)
- 2020-06-21 22:00:02下载
- 积分:1
-
1602LCDtest
51系列单片机,1602LCD显示测试程序,测试通过,可直接使用(51 series, 1602LCD display test program, test, can be used directly)
- 2011-11-08 09:24:59下载
- 积分:1
-
AlarmClock--CSharp
一个多功能闹钟和源码(C#) 很适合C#的学习 大神请飘过 注释很详细(A multi-function alarm clock and source code (C#) is very suitable for learning C# god please drifting very detailed notes)
- 2013-06-14 16:36:04下载
- 积分:1
-
ActivePower
使用Atmega16单片机和Att7022计量芯片检测有功功率,有详细的校表过程,在此程序基础上可已开发更多功能(Att7022 Atmega16 measured using microarray microcontroller and active, detailed calibration process, this procedure can be developed on the basis of more features)
- 2021-01-29 17:08:35下载
- 积分:1
-
430.13
430读写IIC总线以及中断控制程序(430 literacy IIC bus and interrupt control procedures)
- 2005-01-17 16:03:51下载
- 积分:1
-
msp430g2553pinlvji.c
基于MSP430G2553的频率计数计的程序编写,已经过测试,程序无误可以完整运行。(Based on the frequency count MSP430G2553 meter programming, has been tested, the program can complete run correctly.)
- 2013-08-17 11:33:17下载
- 积分:1