-
uCOS_UCGUI_DEMO3.2LCD
STM32F107开发板相关源代码LCD(STM32F107 development board related source code)
- 2017-01-05 16:11:58下载
- 积分:1
-
超声波测距
说明: 51单片机控制的超声波测距程序,内含一个步进电机驱动,可以驱动步进电机改变方向,画好了pcb板(The ultrasonic ranging program controlled by single chip microcomputer contains a stepping motor driver, which can drive the stepping motor to change direction and draw the PCB board)
- 2020-03-27 14:06:05下载
- 积分: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
-
STM8-SPI-74hc595
STM8 用SPI驱动 74hc595硬件和8位数码管(STM8 chip uses SPI mode driver 595 chip)
- 2016-06-01 13:58:15下载
- 积分:1
-
1.LED
说明: 51单片机中的开发板上的LED跑马灯程序,很简单但是很实用适合新手/。(The program of LED horse-running lamp on the development board of 51 single-chip computer is very simple but practical for beginners/ novices.)
- 2019-01-26 22:09:37下载
- 积分:1
-
angle
角度传感器资料,另附源码,角度传感器测的角度通过数码管显示(Angle sensor data, attached source, angle sensor measures the angle through the digital display)
- 2013-07-22 09:27:08下载
- 积分:1
-
OLED
说明: OLED STM32驱动,8080并口方式|SPI方式 默认8080并口方式(OLED STM32 Drive,8080 mode and SPI mode, default 8080 mode)
- 2019-03-27 08:51:29下载
- 积分:1
-
51654498STM32F107_LwIP_PTP_V1.0.3
这是ptp时钟同步代码,经测试有用,移植的时候注意选择版本,推荐使用v2 版本stm32 ms评估板(this is ptp,this is ptp this is ptp this is ptp)
- 2018-01-30 19:17:29下载
- 积分:1
-
autoquad_keil
本工程为著名开源飞控autoquad的Keil工程,大家可以下载下来,直接用Keil 5.2编译通过。(This project is well-known open source flight control autoquad Keil works, you can download, compile with Keil 5.2 directly.)
- 2021-02-10 15:59:52下载
- 积分:1
-
LCD_1602
Programming LCD 1602 with stm32f4
- 2015-03-25 20:33:52下载
- 积分:1