1265【毕设课设】基于单片机8路数据电压采集控制系统
作者:互联网
【资源下载】百度网盘下载地址如下:
https://docs.qq.com/doc/DTlRSd01BZXNpRUxl
摘要:设计了一个关于单片机数据采集控制系统的作品,采用数模转换和模数转换的技术,实现了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; void delay(unsigned int time); //子程序声明 void ADC(); void xianshi(); void xianding();
标签:P3,P1,课设,int,unsigned,1265,char,毕设,sbit 来源: https://www.cnblogs.com/ythero/p/14501080.html