-
9 BLDC PMSM开环调速
说明: STM32F103实现BLDC调速,此代码可以实现BLC和PMSM开环的控制(STM32F103 realizes BLDC speed regulation. This code can realize open-loop control of BLC and PMSM.)
- 2020-06-16 06:00:01下载
- 积分: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
-
mcu-ultrasonic-ranging-program
使用51单片机实现的超声波测距模块,带有显示,语音报警功能,附有原理图和PCB板(A MCU program using Ultrasonic testing to measure the distant with display and voice alarm function, package with PCB and schematic)
- 2015-05-29 10:20:11下载
- 积分:1
-
FAT_Picture_out
具備fat格式 讀取sd card內的圖片顯示在tft螢幕上 (lpc17xx系列)(HAVE FILE SYSTEM AND CAN READ PICTURE IN SD CARD THEN DISPLAY ON TFT(LPC17XX ))
- 2011-06-18 12:56:10下载
- 积分:1
-
ttl_driver
辅助数字电路课程学习,说明TTL电路中驱动电流之间的 关系。
(auxiliary digital circuit courses on TTL circuit-drive current relationship.)
- 2006-12-19 11:10:04下载
- 积分:1
-
ATT7022EU-YingYongBiJi
ATT7022E(26E 28E)三相电能专用计量芯片应用笔记(可用于三相三线和三相四线制)(ATT7022E (26E 28E) three-phase energy metering IC Application Note (available for three-phase three-wire and three-phase four-wire system))
- 2014-08-26 22:46:46下载
- 积分:1
-
paYyo4Pd
51波特率计算,输入波特率能自动算出所需附的初值(51 baud rate calculation, enter the baud rate will automatically calculate the initial value of necessary laws)
- 2010-09-20 20:37:37下载
- 积分:1
-
IO_UART
STC单片机IO口模拟RS232测试程序,Keil Cx51应用开发技术中的程序主要的功能是在利用串口调试工具发送一个8bit的数据,而后单片机接收后把这个数据发送给模拟串口(STC Single-chip analog IO port RS232 test procedures, Keil Cx51 technology application development process is essentially the function is in the use of serial debug tools send an 8bit data, and then after the single-chip receive the data sent to the simulation of serial)
- 2008-08-17 16:01:12下载
- 积分:1
-
STM32F10x_硬件I2C从机(接收数据 - 中断方式)
实现STM32F103单片机作为主机与其他单片机进行通信(STM32F103 microcontroller as a host to communicate with other microcontrollers)
- 2017-06-27 19:39:12下载
- 积分:1
-
单片机基础实验源代码
测试CC2530,完成基础的功能测试,包括I/O口,串口,无线(Test CC2530, complete the basic functional test, including I/O port, serial port, wireless)
- 2018-04-27 10:53:12下载
- 积分:1