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

📄 t_measure.h

📁 schduler for AVR mcu
💻 H
字号:
/*
------------------------------------------------------------------*-

   T_Measure.H (v1.00)

  ------------------------------------------------------------------
   
   LCD display  program (Test Version 1.0)


   COPYRIGHT
   ---------

   This code is from the book:

   PATTERNS FOR TIME-TRIGGERED EMBEDDED SYSTEMS by Michael J. Pont 
   [Pearson Education, 2001; ISBN: 0-201-33138-1].

   This code is copyright (c) 2001 by Michael J. Pont.
 
   --- Modefied by  sylva zhu to apply for  AVR Microcontroller .
   --- Ver 1.0  Sept 25th , 2006 .

-*------------------------------------------------------------------
*/
#ifndef  __MEASURE_H
#define  __MEASURE_H
//
void ADC_Update(void);

/************************************************************************     
*                                                                       
*                 Vref = 1.263V                                                 
*                 _____                                                     
*                   |                                                   
*                   |
*                 -----   
*                 |   |
*                 |   |  R_1 = 10 Kohm
*                 |   |
*                 -----
*                   | 
*                   |---------------------X    ADC channel #0 
*                   | 
*                 -----
*                 |   |
*                 |   |  R_NTC = ? ohm   (10Kohm @ 25 degree celcius)
*                 |   |
*                 -----
*                   |
*                   |---------------------X    ADC channel #1
*                   |
*                   |
*                  ---  
*                   - 
*                  GND
*                   
************************************************************************/  

// Defines
    #define V_ref           2.483      // voltage-reference 

// NTC-thermistor defines
   // #define Beta            3450.000    // the Beta-value for the NTC transitor
    #define Beta            3450.00
    #define R_th            10000.00    // the thermistor resistans @ 25 degree Celsius
    #define T_amb           298.0000    // the temperature in Kelvin for 25 degree Celsius
    #define T_zero          273.0000    // the temperature in Kelvin for 0 degree Celsius


    //#define SingleEnded     0x00        
    //#define Differential    0x10        
    //#define Heater          0x7F        
    //#define Cooler          0xEF 

//
#endif 

⌨️ 快捷键说明

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