-
date
根据用户输入的年月日计算出第几天的控制台应用(To calculate the day of the console application based on user input date)
- 2015-04-06 12:37:24下载
- 积分: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
-
edf文件处理
edf文件处理,便于逆向处理数字电路
edf文件处理,便于逆向处理数字电路
edf文件处理,便于逆向处理数字电路
edf文件处理,便于逆向处理数字电路
edf文件处理,便于逆向处理数字电路
- 2022-04-16 19:46:57下载
- 积分:1
-
一个简单的多线程测试工具
一个简单的多线程测试工具-a simple multi-threaded test tools
- 2022-01-25 17:43:55下载
- 积分:1
-
MFC中加在gif图片的控件
MFC制作UI界面时,需要加在gif文件。现在上传一个gif控件,操作简单,效果理想。希望大家能用得到。
- 2022-06-15 20:27:02下载
- 积分:1
-
VT_X64
说明: 一份简单的VT框架源码~带关键的中文注释(A Simple VT Framework Source)
- 2020-06-19 22:40:02下载
- 积分:1
-
Digital-identification
数字识别系统源代码,车牌识别,可执行程序(Digital identification system source code, license plate recognition, executable)
- 2011-07-18 09:13:18下载
- 积分:1
-
分支限界法实现01背包问题源代码
通过分支限界算法实现经典0/1背包问题,并得出最优化解(branch and bound algorithm)
- 2020-06-16 02:20:06下载
- 积分:1
-
LDPC分层算法的matlab代码
LDPC分层算法的一些资料LDPC分层译码的matlab程序,LDPC在WIMAX。WIFI应用广泛
(layered decoding of LDPC , matlab codes)
- 2022-06-16 21:25:16下载
- 积分:1
-
GSM2
基于51单片机实现定位,并通过sim900a把定位信息发送到指定手机(base on 51 chip,send location to phone)
- 2016-05-11 14:09:31下载
- 积分:1