參數(shù)資料
型號(hào): TMP06BKSZ-REEL
廠商: 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
代理商: TMP06BKSZ-REEL
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描述
TMP06BKSZ-REEL7 【0.5∑C Accurate PWM Temperature Sensor in 5-Lead SC-70
TMP06BRT-500RL7 【0.5∑C Accurate PWM Temperature Sensor in 5-Lead SC-70
TMP06BRT-REEL 【0.5∑C Accurate PWM Temperature Sensor in 5-Lead SC-70
TMP05BKS-REEL 【0.5∑C Accurate PWM Temperature Sensor in 5-Lead SC-70
TMP05BKS-REEL7 【0.5∑C Accurate PWM Temperature Sensor in 5-Lead SC-70
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
TMP06BKSZ-REEL7 制造商:Analog Devices 功能描述:Temp Sensor Digital 5-Pin SC-70 T/R
TMP06BRT 制造商:Analog Devices 功能描述:TEMP SENSOR DGTL 5PIN SOT-23 - Bulk
TMP06BRT-500RL7 制造商:Analog Devices 功能描述:Temp Sensor Digital 5-Pin SOT-23 T/R
TMP06BRT-REEL 制造商:AD 制造商全稱:Analog Devices 功能描述:【0.5∑C Accurate PWM Temperature Sensor in 5-Lead SC-70
TMP06BRT-REEL7 制造商:AD 制造商全稱:Analog Devices 功能描述:【0.5∑C Accurate PWM Temperature Sensor in 5-Lead SC-70