51单片机DS18B20+lcd1602温度报警器( Proteus仿真程序)
51单片机DS18B20+lcd1602温度报警器( Proteus仿真程序)51单片机DS18B20+lcd1602温度报警器( Proteus仿真程序)
AT89C52、DS18B20和lcd1602
温度报警器按键设置报警上下限.
Proteus仿真程序
器件
实例代码123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 ...
51单片机+LCD12864的万年历Proteus仿真
51单片机+LCD12864的万年历Proteus仿真51单片机+LCD12864的万年历Proteus仿真
Proteus仿真效果
按键说明:递增按键的范围是根据设置的属性变化而变化,如果是年就是0-99,超出范围归0,如果是月份就是0-12超出范围归0,如果是日期就是0-31,超出归0,递减有所不同只能做到0-9之间递减。
使用说明
关于有朋友反馈,仿真时时间从代码设定值开始,00:00:00开始走起,可以将main.c里面的第143行,Ds1302Init();//Ds1302初始化,并且附上设定的默认时间注释掉即可,重新编译,Proteus仿真时重新调用编译的hex文件进行仿真。
实例代码
main.c
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 ...
51单片机 1602液晶字符滚动演示+Proteus仿真
51单片机 1602液晶字符滚动演示+Proteus仿真51单片机 1602液晶字符滚动演示+Proteus仿真
Proteus仿真
主程序代码123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148/\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/#include <reg5 ...
51单片机 1602液晶按键字符输入演示+Proteus仿真
51单片机 1602液晶按键字符输入演示+Proteus仿真51单片机 1602液晶按键字符输入演示+Proteus仿真
Proteus仿真
示例主程序代码123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167//\*\*\*\*\*\*\*\*\*\*\ ...
51单片机 16X16点阵动态显示+Proteus仿真
51单片机 16X16点阵动态显示+Proteus仿真51单片机 16X16点阵动态显示+Proteus仿真
Proteus仿真
实例代码123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117#include <reg52.h>#define int8 unsigned char#define int16 unsigned int#define int32 unsigned longint8 flag;int8 n;int8 code table[][32]={ {0x ...
51单片机 74HC154译码器制作流水灯+Proteus仿真
51单片机 74HC154译码器制作流水灯+Proteus仿真51单片机 74HC154译码器制作流水灯+Proteus仿真
Proteus仿真
实例代码12345678910111213141516171819202122#include <reg52.h>#define uint unsigned int#define uchar unsigned charvoid Delay(uint x){ uchar i; while(x--) { for(i=0;i<120;i++); }}void main(){ while(1) { P2 = (P2+1)%16; Delay(50); }}
源码和仿真资源123链接:https://pan.baidu.com/s/1NLknGxFh2jtiR85cK9C4IA 提取码:32hf
51单片机 4511 +BCD数码管显示+Proteus仿真
51单片机 4511 +BCD数码管显示+Proteus仿真51单片机 4511 +BCD数码管显示+Proteus仿真
Proteus仿真图
4511真值表
实例代码12345678910111213141516171819202122232425262728293031323334353637#include <reg52.h>#define uchar unsigned char#define uint unsigned intuchar code DSY_Index[] = { 0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f };uchar code BCD_CODE[] ={ 0xf2,0x00,0XF2,0xf1,0xf1,0x00,0xf3,0xf1};//2021 10 31 void DelayMS(uint ms){ uchar i; while(ms--) { for(i=0;i<120;i++); }}void ...
51单片机 74LS138译码器流水灯+Proteus仿真
51单片机 74LS138译码器流水灯+Proteus仿真51单片机 74LS138译码器流水灯+Proteus仿真
Proteus仿真
实例代码1234567891011121314151617181920212223#include <reg52.h>#define uint unsigned int#define uchar unsigned charvoid Delay(uint x){ uchar i; while(x--) { for(i=0;i<120;i++); }}void main(){ P2 = 0x00; while(1) { P2 = (P2+1)%8; Delay(200); }}
程序源码和仿真资源123链接:https://pan.baidu.com/s/1NfpE75vKDVNFf\_549G7mEQ 提取码:1yi2
51单片机 74HC595应用实例+Proteus仿真
51单片机 74HC595应用实例+Proteus仿真51单片机 74HC595应用实例+Proteus仿真
Proteus仿真
实例代码1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162#include <reg52.h>#include <intrins.h>#define uint unsigned int#define uchar unsigned charsbit SH_CP = P2^0;sbit DS = P2^1;sbit ST_CP = P2^2;uchar temp;uchar code DSY_CODE[]={ 0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90 };void Delay(uint x){ uchar i; while(x--) { f ...
51单片机 ADC0809模数转换与显示+Proteus仿真
51单片机 ADC0809模数转换与显示+Proteus仿真51单片机 ADC0809模数转换与显示+Proteus仿真
Proteus仿真
实例代码123456789101112131415161718192021222324252627/\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/#include <reg52.h>#include <absacc.h>#define uint unsigned int#define uchar unsigned char#define DAC0832 XBYTE[0xfffe]void DelayMS(uint ms){ uchar i; while(ms--) { for(i=0;i<120;i++); }}void main(){ uchar i; while(1) { for(i=0;i<256;i++) DAC0832 = i; ...
