reg51.h>
共 24 篇文章
reg51.h> 相关的电子技术资料,包括技术文档、应用笔记、电路设计、代码示例等,共 24 篇文章,持续更新中。
基于51单片机的Pt100的温度计程序
<p>#include <reg51.h></p><p>#include <absacc.h></p><p>#define uchar unsigned char</p><p>#define uint unsigned int</p><p>#define ADC0801 XBYTE[0x7fff]</p><p>#define disp_dat P1</p><p>
SHT10+LCD1602温湿度测量及显示(完整版)
<p>#include<reg51.h></p><p><br/></p><p>#include <intrins.h></p><p><br/></p><p>#include<math.h></p><p><br/></p><p>#include <stdio.h></p><p><br/></p><p>#define LCD_DBPO</p><p><br
基于51+ADC0832+LCD1602+仿真图四位电压显示测试
<p>/说明:调用VR2时,ADC0832将模拟电压转换为数字电压并显示在LCD1602上</p><p><br/></p><p>//********************************</p><p><br/></p><p>#include<reg51.h></p><p><br/></p><p>#include<intrins.h></p><p><br/></p>
温度控制的PID算法的C语言程序.
<p>#nclude<reg51.h></p><p>#include<intrins.h></p><p>#销nclude<math.h></p><p>#include<string.h></p><p>struct PID{</p><p>unsigned int SetPoint;//设定目标 Desired Value unsigned int Pr
AT89C51单片机编写的C代码,用proteus设计电路仿真案例
<p>采用C代码编写的8位LED流水灯程序,附件是用PROTEUS设计的仿真电路工程,直接可以使用。请用Proteus 8以上版本。</p><p>下面是验证好的源代码,供大家参考学习:</p><p>------------------------------------------</p><p>#include <reg51.h></p><p>void main()</p><p>{LE
电子书- 十天学会单片机实例100.pdf
<p>电子书-十天学会单片机实例100.pdf</p><p><br/></p><p>//实例 4:用单片机控制一个灯闪烁:认识单片机的工作频率 #include<reg51.h> //包含单片机寄存器的头文件 /**************************************** 函数功能:延时一段时间 ***********************************
51单片机C语言程序设计Proteus仿真实训
基础程序设计 01 闪烁的LED <br />
/* 名称闪烁的LED <br />
说明LED按设定的时间间隔闪烁 <br />
*/ <br />
#include<reg51.h> <br />
#define uchar unsigned char <br />
#define uint u
基于8051+Proteus仿真案例
基础程序设计 01 闪烁的LED <br />
/* 名称闪烁的LED <br />
说明LED按设定的时间间隔闪烁<br />
*/ <br />
#include<reg51.h> <br />
#define uchar unsigned char <br />
#define uint unsigne
//*********主机代码****** #include <reg51.h> #include "Clicent_Setting.h" #include "LCD_Funt
//*********主机代码******
#include <reg51.h>
#include "Clicent_Setting.h"
#include "LCD_Funtion.h"
#include "Futions.h"
#include "Host_Interrupt_Funtion.h"
int num1=1 //从机数码管起始数
int
单字右移1616点阵右移C程序16bit #include<reg51.h> #include<intrins.h> sbit DAT=P1^0 /*"74HC59
单字右移1616点阵右移C程序16bit
#include<reg51.h>
#include<intrins.h>
sbit DAT=P1^0 /*"74HC595第14脚 数据 ",0*/
sbit YW=P1^1 /*"74HC595第11脚 移位存 ",0*/
sbit SUO=P1^2 /*"74HC595第12脚 锁存 ",0*/
#include <reg51.h> void delay_ms(unsigned short ms) { unsigned short i unsigned char j
#include <reg51.h>
void delay_ms(unsigned short ms)
{
unsigned short i
unsigned char j
for(i=0 i<ms i++)
{
for(j=0 j<200 j++)
for(j=0 j<102 j++)
}
}
用定时器以间隔500MS在6位数码管上依次显示0、1、 2、3….C、D、E、F,重复。
#include<reg51.h><br />
#define uchar unsigned char<br />
#define uint unsigned int<br />
uint i,j;<br />
sbit dula=P2^6;<br />
sbit wela=P2^7;<br />
<br />
uchar code table[]={0x3f,0x06,0x5b,0x
一個很好用的 lcd 時鐘程序 C語言 #include<reg51.h> #include<stdio.h> //定義計時器0 的重裝值 #define RELOAD
一個很好用的 lcd 時鐘程序 C語言
#include<reg51.h>
#include<stdio.h>
//定義計時器0 的重裝值
#define RELOAD_HIGH 0x3C
#define RELOAD_LOW 0xD2
//定義按鍵彈跳時間
#define DB_VAL
//定義設置模式的最大時間間隔
#define TIMEOUT 20
cs5460a程序(C程序源代码)
<P><FONT color=#000000 size=3>#include <reg51.h><BR>#include <main.h><BR>#include <interrupt.h></FONT></P>
<P><A class=showtopic title=cs5460a应用电路(含源程序) href="http://www.elecfans.com
DS1302+AT89S52+LED时钟程序(C语言源代码+
<P>#include<reg51.h><BR>/*************************<A href="http://www.elecfans.com/soft/39/2008/200801141952.html">ds1302</A>与<A href="http://www.elecfans.com/soft/78/223/2008/200803192523.html"
#include <reg51.h> /*-------------------------------------------- 调用方式:自行I/O 口定义﹫2001/05/12
#include <reg51.h>
/*--------------------------------------------
调用方式:自行I/O 口定义﹫2001/05/12
函数说明:私有函数,各接口定义
--------------------------------------------*/
sbit HD7279_CS=P1^4 // HD7279_CS
89s51单片机控制继电器! 由s51io口输出低电平使三极管导通 从而控制继电器闭合 #include <reg51.H> sbit P0_0=P0^0 sbit P1_
89s51单片机控制继电器! 由s51io口输出低电平使三极管导通 从而控制继电器闭合
#include <reg51.H>
sbit P0_0=P0^0
sbit P1_7=P1^7
main()
{while(1)
{
if (P0_0==0)
P1_7==1
}
}
数字钟显示电路
<P>SHUZIZHONG显示电路</P>
<P>源程序如下:</P>
<P>#include <reg51.h><BR>#include <intrins.h></P>
<P>unsigned char data dis_digit;</P>
<P>unsigned char code dis_code[]={ 0x3f,0x06,0x5b,0x4f,<BR>0x66,0
基于单片机的简单电子琴(源代码)
简单电子琴的51单片机程序<br />
<br />
#include<reg51.h> //包含51单片机寄存器定义的头文件<br />
sbit P14=P1^4; //将P14位定义为P1.4引脚<br />
sbit P15=P1
旋转led时钟程序
<p>
#include<reg51.h><br />
unsigned char miao=0,fen=0,shi=0;</p>
<p>
unsigned char miao1=0,miao2=0;<br />
unsigned char fen1=0,fen2=0;<br />
unsigned char&nbs