⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hw.lst

📁 采用非接触式红外线测量人体体温
💻 LST
字号:
C51 COMPILER V7.08   HW                                                                    04/13/2009 21:07:52 PAGE 1   


C51 COMPILER V7.08, COMPILATION OF MODULE HW
OBJECT MODULE PLACED IN hw.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE hw.c BROWSE DEBUG OBJECTEXTEND

line level    source

   1          /*******************************************************************************
   2                                  
   3          * 文件: 红外测温程序                                                            *
   4          * 日期: 2009-4-8                                                             *                            
             -                               *                                         
   5          ********************************************************************************
   6          * 描述:                                                                       *
   7          *         A/D TLC549转换程序                                                   *                          
             -                                                *
   8          ********************************************************************************              
   9          *******************************************************************************/
  10          #include <reg52.H>
  11          #include <intrins.H>
  12          #include <math.H>
  13          /*******************************************************************************/
  14          #define uchar unsigned char
  15          #define uint unsigned int
  16          //LCD初始化
  17          #define LINE1     0
  18          #define LINE2     1
  19          #define LINE2_HEAD    0xC0
  20          #define LCD_DELAY_TIME   40
  21          #define DATA_MODE    0x38
  22          #define OPEN_SCREEN    0x0C
  23          #define DISPLAY_ADDRESS   0x80
  24          #define CLEARSCREEN    LCD_en_command(0x01)
  25          
  26          //设置引脚端口
  27          #define LCDIO  P2  // LCD 数据端口
  28          sbit LCD1602_RS=P1^1;   //数据命令选择端口
  29          sbit LCD1602_RW=P1^2;   //读写选择
  30          sbit LCD1602_EN=P1^3;   //使能信号端口     
  31          /********************************************************************/
  32          
  33          
  34          //tlc549延时函数
  35          
  36          #define    Wait1us        _nop_();
  37          #define    Wait2us        {_nop_();_nop_();}
  38          #define    Wait4us        {Wait2us;Wait2us;}
  39          #define    Wait8us        {Wait4us;Wait4us;}
  40          #define    Wait10us      {Wait8us;Wait2us;}
  41          #define    Wait30us      {Wait10us;Wait8us;Wait4us;Wait2us;}
  42          
  43          
  44          /************定义接口总线**************/
  45          sbit Clock = P0 ^ 0; //时钟口线
  46          sbit DataOut = P0 ^ 1; //数据输出口线
  47          sbit ChipSelect = P0 ^ 2; //片选口线
  48          /************接口总线定义结束**********/
  49          
  50          unsigned char table11[] = "           I wish you success";
  51          unsigned char table12[] = "  T=       C";
  52          
  53          
C51 COMPILER V7.08   HW                                                                    04/13/2009 21:07:52 PAGE 2   

  54          void LCD_delay(void);//lcd延时
  55          void LCD_en_command(unsigned char command);//写命令
  56          void LCD_en_dat(unsigned char temp);//写数据
  57          void LCD_set_xy( unsigned char x, unsigned char y );//设置显示地址

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -