-
stm8l151串口通信例程
说明: 低功耗stm8l15x,串口通信,实现单片机与PC的通信,串口设置见文件(Low power serial communication)
- 2019-12-04 10:01:20下载
- 积分:1
-
16F877A
基于16F877A的温度湿度传感器c程序(Temperature and humidity sensors based 16F877A c program)
- 2014-09-01 23:27:17下载
- 积分:1
-
Incubator-control-system
基于51单片机的恒温箱控制系统,用两级三极管放大做驱动,PWM控制。初始设定的可调温度在室温到85度之间。(51 microcontroller-based incubator control system, do drive two transistor amplifier, PWM control. The initial set of adjustable at room temperature to 85 degrees.)
- 2012-03-23 11:53:32下载
- 积分:1
-
fuzzy-pid
fuzzy-pid comparable design fir statcom....
- 2015-02-14 14:42:46下载
- 积分:1
-
car
AGV自动导引小车程序,采用51单片机作为主控芯片,包括测速程序、PID调速程序等等。(AGV autopilot, using 51 SCM car program as main control chip, including velocimetry procedures, PID speed control procedures, etc.
)
- 2020-07-26 08:58:41下载
- 积分:1
-
24xled
说明: 24C08多花样流水,采用51开发板,编程使LED呈流水灯,初学者的好例子。(24C08 multi-pattern, running water, with 51 development board, program the LED lights were water, a good example for beginners.)
- 2011-04-07 15:47:24下载
- 积分:1
-
跑马灯(库函数)
说明: 一个stm32mini的跑马灯实验程序,有需要的小伙伴自取哟(A stm32mini horse-running lamp experiment program, small partners who need to take their own yo)
- 2020-06-25 16:40:01下载
- 积分:1
-
PWM
msp430单片机控制步进马达应用源代码(MSP430 Single-chip stepper motor control application source code)
- 2008-06-10 11:34:35下载
- 积分: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
-
Labview_GPS
说明: 基于labview的gps定位,可以拿去用,都很完整(GPS positioning based on labview, can be used, are complete)
- 2021-03-12 10:19:26下载
- 积分:1