-
stm32f042-drone
基于stm32f042 的四旋翼无人机遥控器程序(stm32f042 drone controller)
- 2016-05-11 18:06:08下载
- 积分: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
-
Final_Thesis_Report
Thesis on Cogntive radio. It details spectrum sensing
- 2013-03-07 20:17:24下载
- 积分:1
-
6416LCD
lcd 1602 显示软件!
可以输入字符 字符串。(lcd 1602 xinshirunjian)
- 2011-12-25 12:20:04下载
- 积分:1
-
IA4320_Wireless_Keyboard
说明: SLICON LABS 公司ISM 无线收发芯片 IA4320
设计无线键盘的电路图,源代码,使用手册
无线射频注意事项。(SLICON LABS' s ISM wireless transceiver chip IA4320 designed wireless keyboard circuit, source code, manuals RF considerations.)
- 2010-03-17 13:32:14下载
- 积分:1
-
AD1939
说明: AD1939的数据手册,多通路的模数转换器,ADSP21489板上有(AD1939 data manual, multi-channel analog-to-digital converter, ADSP21489 board)
- 2020-06-17 21:40:02下载
- 积分:1
-
STC12C5A60S2
STC12C5A60S2电子负载全部代码,TM7705做AD TM8211做DA(STC12C5A60S2,TM7705AD TM8211DA)
- 2015-08-22 12:35:21下载
- 积分:1
-
fat_C
FAT的C语言原代码,没有底层驱动,支持打开文件,读写文件,不支持长文件名.(FAT C language source code, there is no bottom-driven support to open the document, read and write documents, do not support long file names.)
- 2006-08-13 11:40:40下载
- 积分:1
-
printlist
说明: 一个自写的ClistCtrl打印类,直接引用就行(a written ClistCtrl Print category applied directly on the line)
- 2006-03-26 23:02:11下载
- 积分:1
-
STC15F2K60S2
STC15F60S2单片机的数据手册,内含典型应用电路,驱动程序(STC15F60S2 MCU datasheet, containing the typical circuit , driver program)
- 2015-08-07 15:31:32下载
- 积分:1