基于单片机温度远程监控控制系统设计-毕设课资料

【资源下载】下载地址如下1526:
https://docs.qq.com/doc/DTlRSd01BZXNpRUxl

通过这次实验是我更加熟悉了LCD1602的显示和DS1302的写入和读取,步进电机的控制和蜂鸣器、矩阵键盘的工作原理,外部中断的使用,串口中断的使用,双机通信的原理,以及keil和Protues的应用。

C51源程序
A机程序
#include<reg51.h>
#define dj P0
#define lcd P1

sbit DQ=P3^7;

sbit RST=P2^2;
sbit SCLK=P2^3;
sbit IO=P2^4;

sbit fmq=P2^1;

sbit RS=P2^5;
sbit RW=P2^6;
sbit EN=P2^7;

sbit K3=P3^2;
sbit K4=P3^3; 

unsigned char second,minute,hour,week,day,month,year;
unsigned char t1302[7]={0x15,0x11,0x20,0x47,0x21,0x30,0x00}; 
unsigned char code ggsj[]={0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,
						   0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,
					 	   0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,
					   	   0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,
						   0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,
						   0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59};
unsigned char zf0[5]="Time:";
unsigned char zf1[5]="Temp:";
unsigned char zf2[5]="Data:";
unsigned char zf3[5]="Week:";
unsigned char zf4[3]="><-";
unsigned char djsz[8]={0xfe,0xfc,0xfd,0xf9,0xfb,0xf3,0xf7,0xf6};
unsigned char xssj[]="0123456789:+-.CE><";
unsigned char jssj[8];
unsigned char sjsj[8];
unsigned char wdsj[8];

posted @ 2021-03-29 14:38  roadroad  阅读(161)  评论(0编辑  收藏  举报
电设屋
上千套电子毕设课设方案