參數(shù)資料
型號(hào): TMP06BRTZ-REEL7
廠商: Analog Devices, Inc.
元件分類: 溫度/濕度傳感器
英文描述: 【0.5∑C Accurate PWM Temperature Sensor in 5-Lead SC-70
中文描述: 【0.5ΣC高精度PWM溫度傳感器在5引腳SC - 70
文件頁(yè)數(shù): 21/28頁(yè)
文件大?。?/td> 706K
代理商: TMP06BRTZ-REEL7
TMP05/TMP06
#include <stdio.h>
#include <ADuC812.h>
void delay(int);
sbit Daisy_Start_Pulse = 0xB7;
sbit P3_4 = 0xB4;
long temp_high0,temp_low0,temp_high1,temp_low1,temp_high2,th,tl; //Global variables to allow
int timer0_count=0,timer1_count=0,tempsegment=0;
void int0 () interrupt 0
{
if (TR1 == 1)
{
th = TH1;
tl = TL1;
th = TH1;
TL1 = 0;
TH1 = 0;
}
TR1=1;
Already
if (tempsegment == 1)
{
temp_high0 = (TH0*0x100+TL0)+(timer0_count*65536); //Convert to integer
TH0=0x00;
TL0=0x00;
timer0_count=0;
}
if (tempsegment == 2)
{
temp_low0 = (th*0x100+tl)+(timer1_count*65536);
temp_high1 = (TH0*0x100+TL0)+(timer0_count*65536); //Convert to integer
TH0=0x00;
TL0=0x00;
timer0_count=0;
timer1_count=0;
}
if (tempsegment == 3)
{
temp_low1 = (th*0x100+tl)+(timer1_count*65536);
temp_high2 = (TH0*0x100+TL0)+(timer0_count*65536);
TH0=0x00;
TL0=0x00;
timer0_count=0;
timer1_count=0;
}
tempsegment++;
}
void timer0 () interrupt 1
{
timer0_count++;
}
void timer1 () interrupt 3
{
timer1_count++;
Rev. 0 | Page 21 of 28
//ADuC812 SFR definitions
//Daisy_Start_Pulse = P3.7
//access during ISR.
//See Figure 32.
//INT0 Interrupt Service Routine
//To avoid misreading timer
//Start timer1 running, if not running
//Reset count
//Convert to integer
//Reset count
//Convert to integer
//Reset count
//Keep a record of timer0 overflows
//Keep a record of timer1 overflows
相關(guān)PDF資料
PDF描述
TMP12 Airflow and Temperature Sensor
TMP12FP Airflow and Temperature Sensor
TMP12FS Airflow and Temperature Sensor
TMP12GBC Airflow and Temperature Sensor
TMP17 Low Cost, Current Output Temperature Transducer
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
TMP07103 制造商:TRACOPOWER 制造商全稱:TRACO Electronic AG 功能描述:AC/DC Power Modules
TMP07105 制造商:Traco Power 功能描述:PCB mount power supply,TMP, 5V 7W
TMP07112 制造商:Traco Power 功能描述:PCB mount power supply,TMP, 12V 7W
TMP07115 制造商:TRACOPOWER 制造商全稱:TRACO Electronic AG 功能描述:AC/DC Power Modules
TMP07124 制造商:Traco Power 功能描述:PCB mount power supply,TMP, 24V 7W