网站地图| 免费获取|
教育资料网
  • 网站首页|
  • 资料范文|
  • 修改降重|
  • 职称资料|
  • 合作期刊|
  • 资料下载|
  • 计算机资料|
  • 外文翻译|
  • 免费资料|
  • 原创资料|
  • 开题报告资料
搜索

当前位置:教育资料网 -> 免费资料 -> 电子资料 -> 温度监控系统的设计(九)
自动化资料范文| 电子机电资料| 测控技术资料| 通信专业资料| 电气工程资料| 通信工程资料| 电子信息工程资料| 免费自动化资料| 免费电子资料| 免费电气资料| 免费通信资料

温度监控系统的设计(九)

温度监控系统的设计(九) .PROTEL 99SE 电路设计技术入门与应用(第一版).北京:电子工业出版社,2002 .
[8]  樊昌信.通信原理(第五版)[M].北京:国防工业出版社,2001 .
[9]  Richard c.Dorf.modern conctrol systerm[M].BEIJING:Science Publishing House,2002.
 [10] Donald A. Neamen. Electronic circuit analysis and design[M].Tsinghua University Press and Springer Verlag.2002.

  
  
 
附  录1
(1)本设计使用的单片机程序如下:
#include <pic.h>
//*************************
void INIT()
{
 ADCON1=0X07;
 TRISC=0X80;
 TRISB=0X00;
    TRISD=0X00;
    RD1=0;
    RD0=0;
    TRISA=0X0f;   
    TRISE=0X00;
}
//*************************
#include <pic.h>
#include "init.h"
#include "proc.h"
//*************************
unsigned char i;
unsigned int delay;
extern unsigned char a;
extern unsigned char temph;
extern unsigned char templ;
//***************************
void main()
{
//初始化
 INIT();
 for(delay=65536;delay>0;delay--) asm("clrwdt");
 temph=0x35;
 templ=0x30;
    do
    {
    asm("clrwdt");
    PROCDIANPIN();
    RC0=0;
    RC1=0;
 }while(1);
}
#include <pic.h>
#include "tranpc.h"
//*********************
union adres
{
 int y1;
    unsigned char adre[2];
}adresult;
extern unsigned int delay;
unsigned int temp;
unsigned int y;
unsigned char receive;
unsigned char a;
extern unsigned char rxbuf[];
unsigned char temph;
unsigned char templ;
extern unsigned char i;
//******************************  
void PROCDIANPIN()
{
 ADCON0=0X89;
 ADCON1=0X84;
 ADIF=0;
 ADGO=1;
 for(delay=0x8ff;delay>0;delay--)  asm("nop");
    while(ADIF==0)
    {
     asm("clrwdt");
 }
 asm("clrwdt");
 ADIF=0;
 adresult.adre[0]=ADRESL;
 adresult.adre[1]=ADRESH;
 if((adresult.y1<=0x204)&&(adresult.y1>=0xD9))
 {
  temp=0x10;  
  for(
 y=0x204;adresult.y1<=y;adresult.y1=adresult.y1+0x07)
  {
   temp++;
   if(temp==0x1a)  temp=0x20;
   if(temp==0x2a)  temp=0x30;
   if(temp==0x3a)  temp=0x40;
            if(temp==0x4a)  temp=0x50;
            if(temp==0x5a)  temp=0x60;
            if(temp==0x6a)  temp=0x70;
            if(temp==0x7a)  temp=0x80;
            if(temp==0x8a)  temp=0x90;
            if(temp==0x9a)  temp=0x100;
  }
 } 
    TXPC(temp);
 &nbs

首页 上一页 6 7 8 9 10 11 下一页 尾页 9/11/11

温度监控系统的设计(九)由教育资料网(www.jaoyuw.com)会员上传。
原创资料流程 相关资料
上一篇:电子相关课题仿真及程序 下一篇:免费资料论文--同步电机模型的MAT..
推荐资料 本专业最新资料
Tags:免费 资料论文 温度 监控系统 设计 2010-03-19 18:46:36【返回顶部】
精彩推荐
发表资料

联系方式 | 资料说明 | 网站地图 | 免费获取 | 钻石会员 | 硕士资料


教育资料网提供资料范文,资料代发,原创资料

本站部分文章来自网友投稿上传,如发现侵犯了您的版权,请联系指出,本站及时确认并删除  E-mail: 17304545@qq.com

Copyright@ 2009-2020 教育资料网 版权所有 湘ICP备19027999