-
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
-
按键 步进电机
步进电机是将电脉冲信号转变为角位移或线位移的开环控制电机,是现代数字程序控制系统中的主要执行元件,应用极为广泛。。在非超载的情况下,电机的转速、停止的位置只取决于脉冲信号的频率和脉冲数,而不受负载变化的影响,当步进驱动器接收到一个脉冲信号,它就驱动步进电机按设定的方向转动一个固定的角度,称为“步距角”,它的旋转是以固定的角度一步一步运行的。可以通过控制脉冲个数来控制角位移量,从而达到准确定位的目的;同时可以通过控制脉冲频率来控制电机转动的速度和加速度,从而达到调速的目的。(Stepper motor is an open loop control motor which transforms electrical pulse signal into angular displacement or linear displacement. It is the main executive element in modern digital control system, and is widely applied. In the case of non overloaded, the motor speed and stop position depends only on the pulse frequency and pulse number, regardless of load changes, when the stepper driver receives a pulse signal, it drives stepper motor to set the direction of rotation of a fixed angle, called "step", it is the rotation of the fixed point of the operation step by step. We can control the angular displacement by controlling the number of pulses, so as to achieve the goal of accurate positioning. At the same time, we can control the speed and acceleration of motor rotation by controlling the pulse frequency, so as to achieve the purpose of speed regulation.)
- 2018-01-29 13:24:17下载
- 积分:1
-
PWM-ULN2003A
利用ULN2003A进行驱动,产生PWM波,里边有照片,可供参考,通过本例程了解PWM 的基本原理和使用 (#include <reg52.h>
unsigned char timer1
sbit PWM=P1^2
void system_Ini()
{
TMOD|= 0x11
//PWM
TH1 = 0xfe //11.0592
TL1 = 0x33
TR1 = 1
IE =0x8A
}
main()
{
system_Ini()
while(1)
{ if(timer1>100) timer1=0
if(timer1<30) PWM=0
else PWM=1
}
)
- 2013-11-21 15:17:25下载
- 积分:1
-
liushuideng
HC908GP32芯片的流水灯程序,是在MT-IDE环境中开发,希望对各位有用。(HC908GP32 chip light water program)
- 2014-12-04 20:31:35下载
- 积分:1
-
motorcontrol
本代码是基于检测遥控飞机手柄输出的PWM信号频率,转换为角度信息,再作为步进电机移动输入量,最终实现使用遥控飞机手柄摇杆精确控制步进电机转动角度的目的,包含PWM频率检测模块和步进电机驱动模块等。(This code is PWM frequency signal detection based on the output of the remote control aircraft converted to handle, angle information, and then as the stepper motor movement input, and ultimately use the remote control aircraft joystick handle precise control of stepper motor rotation angle, including PWM frequency detection module and stepper motor drive module.)
- 2017-07-31 22:08:20下载
- 积分:1
-
a-game-based-on-Sokoban
基于PROTEUS的推箱子游戏,基于51单片机,C语言编程(Game based on the Sokoban with PROTEUS to simulate, based on 51 single chip, C language programming)
- 2011-04-19 20:57:41下载
- 积分:1
-
ADC+USART1
说明: 基于STM32F1x的ADC电压检测代码(ADC Voltage Detection Code Based on STM32F1x)
- 2020-06-21 22:20:02下载
- 积分:1
-
UART
单片机双串口程序,寄存器的设置,源代码,适用适用两个串口的应用。(SCM Two serial program, register set, the source code for the application for the two serial ports.)
- 2010-11-21 12:43:28下载
- 积分:1
-
stm32f407 手写识别
基于stm32f407的手写识别程序,亲测可用(Handwriting recognition program based on stm32f407)
- 2018-03-14 22:02:21下载
- 积分:1
-
TCS3200_2.0
在原有基础上添加了新的功能,如EEPROM存储数据,选择更人性化(Based on the original by adding new features such as EEPROM to store data, choose a more humane)
- 2014-09-26 20:52:18下载
- 积分:1