-
menu
msp430f5438 multi level menu
- 2013-03-05 18:30:59下载
- 积分:1
-
LCD12864PDS18B20
单片机为msp430f2618,程序是用12864来显示ds18b20的时钟信息,还有12864为无字库(SCM as msp430f2618 procedure is used to display a ds18b20 the clock, 12864 12864 for non-character)
- 2012-07-27 15:23:08下载
- 积分:1
-
180度舵机
180度舵机可以由按键控制,缓慢转180度(The 180 degree steering gear can be controlled by keys and rotates 180 degrees slowly)
- 2020-06-19 10:40:02下载
- 积分:1
-
yinyue
简单的音乐盒,可以播放音乐,并且有花样灯进行闪烁,是个不错的小礼物。(music box
)
- 2012-04-29 09:38:02下载
- 积分:1
-
4_4keyboard
基于C51单片机的4*4矩阵键盘扫描。有仿真和程序,数码管显示,可以用于学习矩阵键盘扫描的基础知识。并可以进行扩展。(Based on the C51 microcontroller 4* 4 matrix keyboard scanning. There simulation and procedures, digital display, can be used to learn the basics of the keyboard scan matrix. And can be extended.)
- 2015-05-11 14:06:48下载
- 积分:1
-
Photosensitive-resistance-test
利用adc,将光敏电阻的值数字化,并显示在数码管上(Use adc, the photosensitive resistor values digitized and displayed on a digital)
- 2014-05-27 14:15:19下载
- 积分:1
-
EEPROM
该程序实现了对STC单片机的EEPROM的操作。每隔0.5秒钟,单片机对EEPROM进行一次
读、擦除和写操作,并把数值显示到数码管上。
确认试验是否成功:电源上电后,数码管的值在递增,观察值。关闭电源,待几秒后上电,
数码管显示的值会从断电钱的那个值开始显示(The program realized STC microcontroller EEPROM operation. Every 0.5 seconds, the microcontroller on the EEPROM once read, erase and write operations, and the value displayed on the digital tube. Confirmatory test is successful: power-up, the digital value in increments observations. Turn the power off after a few seconds until the power, digital display of the value of money off that value from the beginning to show)
- 2010-12-26 01:44:15下载
- 积分: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
-
Air-Supply-Design-and-implementation
气源环境监控系统设计与实现Air Supply Design and implementation of environmental monitoring system(Air Supply Design and implementation of environmental monitoring system)
- 2011-01-09 20:27:46下载
- 积分:1
-
LED
旋转LED的实现,实现用单片机控制电机转速,采用无线供电方式哦(Rotate the LED, achieving MCU control motor speed, the use of wireless power supply oh)
- 2013-11-03 18:25:32下载
- 积分:1