-
Trade
解决TSP问题,遗传算法解决组合优化,并运行测试(solve the problem of TSP,Genetic algorithm to solve combinatorial optimization,And run the test)
- 2013-10-16 20:44:38下载
- 积分: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
-
C# 图像处理、神经网络、遗传算法集
遗传算法是一种高效并行的全局搜索方法,具有较好的鲁棒性、并行性和自适应性,非常适合大规模搜索空间的寻优。遗传算法已广泛应用于许多学科和领域,在图像滤波和图像阈值分割中的应用也取得了较好的效果。
- 2022-05-17 22:55:38下载
- 积分:1
-
ALL
封装实现了 多线程操作、TCP/IP操作、运算符重载等。(Package which enables multi-threaded operation, TCP/IP operations, operator overloading, and so on.)
- 2011-07-11 16:43:33下载
- 积分:1
-
Quectel EC20 官方资料
说明: Quectel EC20 官方资料 AT命令手册 硬件设计手册 用户指导等(Quectel EC20 datasheet)
- 2020-08-16 13:38:23下载
- 积分:1
-
炫酷贪吃蛇游戏
本游戏采用c#编写,提供原代码。界面设计炫酷,与俄罗斯方块相似,可以作为休闲娱乐的玩物,也可以作为winform学习的资料。
- 2022-03-22 22:04:11下载
- 积分:1
-
S32K1xx Series Reference Manual
S32F14X datashell 使用手册,包含内部各内存/寄存器的使用细则,以此供参考,谢谢(S32F14X data shell manual, including internal memory / register usage rules, for reference, thank you.)
- 2019-06-04 08:45:37下载
- 积分:1
-
irregular forms, ADO, WebService
不规则窗体,ADO,WebService-irregular forms, ADO, WebService
- 2022-02-18 13:39:28下载
- 积分:1
-
LCDmenu
LCD多级菜单具体实现源代码,仅供参考。(LCD multi-level menus to achieve specific source code for reference)
- 2011-09-11 21:53:03下载
- 积分:1
-
C语言 图像边缘算法
说明: 使用C语言编写的几种图像算法,可以用于边缘模糊,抗锯齿等。(graphic using c language)
- 2020-06-16 13:40:02下载
- 积分:1