基于单片机波形发生器PCB原理图报告设计资料-基于单片机比赛计时计分电路仿真设计-基于单片机报警器与旋转灯设计-基于单片机八路数据电压采集报警控制系统-基于单片机病房呼叫系统控制系统设计【毕设课设资】

1302基于单片机波形发生器PCB原理图报告设计资料-毕设课设原理图程序资料

设计一个信号发生器,能在单片机的基础上控制并产生三角波、方波、正弦波和矩形波,且频率幅度和波形可以通过按键改变。

#include <reg51.h>
#include<string.h>
#define uchar unsigned char
#define uint unsigned int
sbit RS=P3^0;
sbit RW=P3^1;
sbit EN=P3^3;
sbit K1=P2^0;
sbit K2=P2^1;
sbit K3=P2^2;
sbit K4=P2^3;
sbit K5=P2^4;
uchar WaveChoice=1;
uchar ys=30;
uchar i,a=0;
uchar sqar_num=128;
uint freq;
uchar code Sin[]={"Sine      "};
uchar code Squ[]={"Square    "} ;
uchar code Tri[]={"Triangle  "};
uchar code Saw[]={"Sawtooth  "} ;
uchar code No[]={"No Signal out "};
uchar code Wave[]={"Wave :"}; 
uchar code Fre[]={"Freq :"};
uchar code tosin[256]=
{0x80,0x83,0x86,0x89,0x8d,0x90,0x93,0x96,0x99,0x9c,0x9f,0xa2,0xa5,0xa8,0xab,
0xae,0xb1,0xb4,0xb7,0xba,0xbc,0xbf,0xc2,0xc5,0xc7,0xca,0xcc,0xcf,0xd1,0xd4,0xd6,0xd8,
0xda,0xdd,0xdf,0xe1,0xe3,0xe5,0xe7,0xe9,0xea,0xec,0xee,0xef,0xf1,0xf2,0xf4,
0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfd,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,
0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfd,0xfd,0xfc,0xfb,0xfa,0xf9,0xf8,0xf7,0xf6,0xf5,
0xf4,0xf2,0xf1,0xef,0xee,0xec,0xea,0xe9,0xe7,0xe5,0xe3,0xe1,0xde,0xdd,0xda,0xd8,
0xd6,0xd4,0xd1,0xcf,0xcc,0xca,0xc7,0xc5,0xc2,0xbf,0xbc,0xba,0xb7,0xb4,0xb1,0xae,0xab,
0xa8,0xa5,0xa2,0x9f,0x9c,0x99,0x96,0x93,0x90,0x8d,0x89,0x86,0x83,0x80,
0x80,0x7c,0x79,0x76,0x72,0x6f,0x6c,0x69,0x66,0x63,0x60,0x5d,0x5a,0x57,0x55,

1298基于单片机比赛计时计分电路仿真设计-电路程序资料

 

#include<reg51.h>//51单片机头文件
typedef unsigned char uchar;
typedef unsigned int  uint;
sbit K1=P3^2;//比赛倒计时开始/暂停
sbit K2=P3^3;//24s倒计时重新开始
sbit K3=P1^3;//乙队+1按键
sbit K4=P1^2;//乙队+2按键
sbit K5=P1^1;//甲队+1按键
sbit K6=P1^0;//甲队+2按键
sbit K7=P1^4;//甲队+3按键
sbit K8=P1^5;//乙队+3按键
sbit K9=P1^6;//预留按键
sbit beep=P2^0;//蜂鸣器接口  
sbit RS=P2^7;
sbit E=P2^5;
char miao,fen,num,time,aa;
uchar bb,cc;
uchar code table1[]={"H.T 000:000 R.T "};
uchar code table2[]={"12:00  SEC-1  24"};
//延时子函数
void delay(uint z)  
{
	uint x;

1301基于单片机病房呼叫系统控制系统设计-毕设课设资料

#include <reg51.h>
#define uint unsigned int
#define uchr unsigned char
sbit led0=P2^2;
sbit buzzer=P2^3;
sbit dula=P2^6;                //声明段选线选通端
sbit wela=P2^7;                //声明位选线选通端
sbit clear=P3^4;
uchr key,shi,ge,count;
uchr code tab[]={
0x3f,0x06,0x5b,0x4f,
0x66,0x6d,0x7d,0x07,
0x7f,0x6f,0x77,0x7c,
0x39,0x5e,0x79,0x71,
0x76,0x79,0x38,0x3f};
/*延时子函数,xms为形参*/
void delay(uint xms)
{
    uint x,y;
    for(x=xms;x>0;x--)
        for(y=110;y>0;y--);
}

1294基于单片机八路数据电压采集报警控制系统-毕设课设资料

摘要:设计了一个关于单片机数据采集控制系统的作品,采用数模转换和模数转换的技术,实现了8路数据采集功能和输出模拟信号的功能

关键词:DAC转换电路、ADC转换电路、数码管电路和警报电路

#include <reg51.h> 
#include <absacc.h>
#define DAC0832 XBYTE[0XFFFE]		//	DAC0832的地址
unsigned char code zixing[]={0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F};//0-9 
unsigned char code zixing1[]={0xbF,0x86,0xdB,0xcF,0xe6,0xeD,0xfD,0x87,0xfF,0xeF}; 	//0-9
unsigned char buf[]={0x3f,0x3f,0x00,0x00,0x00,0x00,0x00,0x00} ;	   //显示缓冲区
unsigned char c1[]={1,1,1,1,0,0,0,0};  //数码管选位
unsigned char b1[]={1,1,0,0,1,1,0,0};  	//数码管选位
unsigned char a1[]={1,0,1,0,1,0,1,0};	//数码管选位
unsigned char ad_data;//定义成全局变量,以便主函数和中断函数都能引用
unsigned char i,j;  
unsigned char TD;  
unsigned int MAX; 
unsigned int MIN;
unsigned int dig,dd;
unsigned int Aa,Bb,Cc,xuhao,df;
long int vv;
sbit P3_0=P3^0;
sbit P3_1=P3^1;
sbit P3_4=P3^4;
sbit P3_7=P3^7;
sbit P1_0=P1^0;
sbit P1_1=P1^1;
sbit P1_2=P1^2;
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;

1297基于单片机报警器与旋转灯原理图及源码

#include <reg52.h>
#include <intrins.h>
#define uint unsigned int
#define uchar unsigned char
sbit SPK = P3^7;
uchar FRQ = 0x00;

void Delayms(uint ms)
{
 	uchar i;
	while(ms--)
	{
	 	for(i=0;i<120;i++);
	}
}

void main()
{
 	P2 = 0x00;
	TMOD = 0x11;
	TH0 = 0x00;
	TL0 = 0xff;
	IT0 = 1;
	IE = 0x8b;
	IP = 0x01;


文章转自电设屋,资料百度网盘下载地址 https://www.aiesst.cn/share.html

目录

         1302基于单片机波形发生器PCB原理图报告设计资料-毕设课设原理图程序资料

1298基于单片机比赛计时计分电路仿真设计-电路程序资料

1301基于单片机病房呼叫系统控制系统设计-毕设课设资料

1294基于单片机八路数据电压采集报警控制系统-毕设课设资料

1297基于单片机报警器与旋转灯原理图及源码

猜你喜欢

转载自blog.csdn.net/u014683833/article/details/123408698