资源列表
MCU-IO-simulate-the-PS2-protocol
- 用单片机普通的I/O脚(非中断)模拟PS2协议,通过引脚的的拉高和拉低来读取按键的时序,从而读出键值并且把读出的键值显示到1602液晶显示屏上,并且按键时蜂鸣器会响-Ordinary MCU I/O foot (not interrupt) to simulate the PS2 protocol, through the pins of the sequence of up and down to read the buttons, to read out the key value and
MCU--simulate-frared-receiving-
- 本例程是通过单片机普通的I/O脚(非中断)模拟红外接收时序 -This routine is by single-chip microcomputer common I/O foot (not interrupt) simulation of infrared receiving sequence
responder
- 系统上电后,显示提示符P.,按K1进入抢答界面,如果主持人没按K1开始键,选手按动 则视为违规抢答,数码管显示违规选手号,蜂鸣器报警,违规指示灯亮,-After the system is powered on, according to the prompt p., press K1 vies to answer first into the interface, if the host doesn t press K1 start, press is considered illegal v
PWM-C
- PWM周期为20ms,分成100等份,每一份0.2ms。P1.0输出占空比为3/10PWM方波,使用T0方式1中断控制方式,设置一个软件计数器count,如果占空比为30 ,-#include<reg51.h> #define uchar unsigned char #define uint unsigned int uchar count sbit PWM=P1^0 void T0_init(void) void delay(uint
stepper-c
- 这是利用单片机进行步进电机的控制,效果可以达到正反转,速度调节,对于初学者来说,是一个很好的实验-#include <reg51.h> #define uchar unsigned char sbit P1_0=P1^0 sbit P1_1=P1^1 sbit P1_3=P1^3 sbit P1_4=P1^4 sbit P1_5=P1^5 sbit P1_6=P1^6 sbit P1_7=P1^7 uchar RRR,flg,KKK
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
PWM12-simulate-proteus
- 这是利用proteus进行仿真,利用的是AVR单片机,对步进电机进行控制,有详细的仿真图-#include "config.h" #include "PWM.h" void PWM_Init(uint8 Mode, uint8 FioSelect) { switch(Mode) { case FAST_PWM: TCCR0 &= (~(1 << WGM01) & ~(1 << WGM00))
chaoshengbo
- HC-SD04超声波模块,负载已经调好的程序,可测障碍范围4cm-200cm-HC-SD04 ultrasonic module, load has been tuned procedure, measurable disturbance range 4cm-200cm
steep
- LPc2101 步进电机,编程软件使用的是keil,只是简单的例程-lpc2101 steep
51Calcula
- 利用51单片机开发板上面的矩阵键盘和数码管实现计算器-51 MCU development board above the keyboard and digital control using matrix was compiled Calculator
modbus51
- 基于51单片机的modbus协议,宏晶半导体芯片-Modbus protocol based on 51 single chip microcomputer
gpsPgprsP5110Psim300
- 基于单片机的STC12C5A60S2 可以实现远程手机信息定位及 在线的DTU实时监控(可以方便的移植到自己要开发的产品上)-Microcontroller-based STC12C5A60S2 can achieve remote location and phone information DTU online real-time monitoring (can be easily ported into their own products to be developed)
