基于51单片机的温控风扇设计-基于51单片机温控电风扇

2026/4/28 13:06:46

}

while(flag==1) { }

while(flag==2) {

49

d1=18;d2=shang/10;d3=shang; display(); if(key1==0) { }

if(key2==0) { }

if(key3==0) {

delay(10); if(key3==0) {

if(shang<=10)shang=10;

if(key2==0) {

shang+=5;

if(shang>=100)shang=100; delay(10); if(key1==0)flag=2; while(key1==0);//松手检测

}while(key2==0);//松手检测

}while(key3==0);//松手检测

}

}

}

d1=17;d2=xia/10;d3=xia; display(); if(key1==0) { }

if(key2==0) { }

if(key3==0) {

delay(10); if(key3==0) {

xia-=1;

if(xia<=0)xia=0;

delay(10); if(key2==0) {

if(xia>=95)xia=95; delay(10); if(key1==0)flag=0; while(key1==0);//松手检测

}while(key2==0);//松手检测

}while(key3==0);//松手检测

}

void zi_dong()//自动温控模式 {

uchar i;

50

}

d1=dang;d2=wen_du/10;d3=wen_du; zi_keyscan();//按键扫描函数 display();

if(wen_du=xia)&&(wen_du<=shang))//1挡 { }

if(wen_du>shang){dj=1;dang=2;}//高温全速

dang=1;

for(i=0;i<5;i++){dj=0;display();zi_keyscan();} for(i=0;i<5;i++){dj=1;display();zi_keyscan();}

void main() { }

uchar j; dj=0; shang=30; for(j=0;j<80;j++) ReadTemperature(); while(1) { }

ReadTemperature();

for(j=0;j<100;j++)zi_dong();//自动温控模式

51

外文资料译文

With the rapid development of electronic technology, computers have been deeply infiltrated into our lives, many e-learning enthusiasts SCM knowledge, but the content of SCM abstract comparison, the relative electronic enthusiasts already familiar with the analog circuits, digital Circuit, SCM in a number of new concepts, even these very basic concept of the general disdain the author, natural materials will not be very in-depth on these concepts, but they are learning in the content must be understandable, the combination of the following I am learning, teaching experience, the most basic of these concepts to make a note of hope one’s help.

Microcontroller Features

(1) High integration, small size, high reliability SCM will each feature integrated in a crystal chip, highly integrated, compact nature is also the smallest. The chip itself is designed according to industrial measurement and control environmental requirements, and internal wiring is very short, its anti-industrial noise performance is better than the general common CPU. Microcontroller program instructions, constants and tables in the ROM is not easy to cure such damage, many signal channel within a chip, so high reliability.

(2) Strong control To meet the requirements of the control object, the microcontroller has a very rich instruction conditions: ability to branch transfer, I / O port logic operations and bit processing power, ideal for special control functions.

(3) low-voltage, low power, ease of production of portable products In order to meet widely used in portable systems, many microcontroller operating voltage of only 1.8V ~ 3.6V, the operating current of only hundreds of microamps.

(4) easy to expand

With a computer chip components required for normal operation. There

52


基于51单片机的温控风扇设计-基于51单片机温控电风扇.doc 将本文的Word文档下载到电脑
搜索更多关于: 基于51单片机的温控风扇设计-基于51单片机温控电风扇 的文档
相关推荐
相关阅读
× 游客快捷下载通道(下载后可以自由复制和排版)

下载本文档需要支付 10

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:xuecool-com QQ:370150219