參數(shù)資料
型號(hào): TMP05BKSZ-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ù): 22/28頁(yè)
文件大?。?/td> 706K
代理商: TMP05BKSZ-REEL7
TMP05/TMP06
}
void main(void)
{
double temp1=0,temp2=0;
double T1,T2,T3,T4,T5;
// Initialization
TMOD = 0x19;
// with gate on INT0. Timer0 only counts when INTO pin // is high.
ET0 = 1;
ET1 = 1;
tempsegment = 1;
Daisy_Start_Pulse = 0;
// Start Pulse
Daisy_Start_Pulse = 1;
Daisy_Start_Pulse = 0;
// Set T0 to count the high period
TR0 = 1;
IT0 = 1;
EX0 = 1;
EA = 1;
for(;;)
{
if (tempsegment == 4)
break;
}
//CONFIGURE UART
SCON = 0x52 ;
TMOD = 0x20 ;
TH1 = 0xFD ;
TR1 = 1;
//Convert variables to floats for calculation
T1= temp_high0;
T2= temp_low0;
T3= temp_high1;
T4= temp_low1;
T5= temp_high2;
temp1=421-(751*(T1/(T2-T3)));
temp2=421-(751*(T3/(T4-T5)));
printf("Temp1 = %f\nTemp2 = %f\n",temp1,temp2);
while (1);
}
// Delay routine
void delay(int length)
{
while (length >=0)
length--;
}
Rev. 0 | Page 22 of 28
// Timer1 in 16-bit counter mode
// Timer0 in 16-bit counter mode
// Enable timer0 interrupts
// Enable timer1 interrupts
// Initialize segment
// Pull P3.7 low
//Toggle P3.7 to give start pulse
// Start timer0 running
// Interrupt0 edge triggered
// Enable interrupt
// Enable global interrupts
// 8-bit, no parity, 1 stop bit
// Configure timer1..
// ..for 9600baud..
// ..(assuming 11.0592MHz crystal)
//Sends temperature result out UART
// END of program
相關(guān)PDF資料
PDF描述
TMP05 【0.5∑C Accurate PWM Temperature Sensor in 5-Lead SC-70
TMP05AKS-REEL 【0.5∑C Accurate PWM Temperature Sensor in 5-Lead SC-70
TMP05AKS-REEL7 【0.5∑C Accurate PWM Temperature Sensor in 5-Lead SC-70
TMP05AKSZ-REEL 【0.5∑C Accurate PWM Temperature Sensor in 5-Lead SC-70
TMP05AKSZ-REEL7 【0.5∑C Accurate PWM Temperature Sensor in 5-Lead SC-70
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
TMP05BRT 制造商:Analog Devices 功能描述:TEMP SENSOR DGTL 5PIN SOT-23 - Bulk
TMP05BRT-500RL7 制造商:Analog Devices 功能描述:Temp Sensor Digital 5-Pin SOT-23 T/R
TMP05BRT-REEL 制造商:Analog Devices 功能描述:Temp Sensor Digital 5-Pin SOT-23 T/R
TMP05BRT-REEL7 制造商:Analog Devices 功能描述:TEMP SENSOR DGTL 5PIN SOT-23 - Tape and Reel
TMP05BRTZ 制造商:Analog Devices 功能描述:MONITOR TEMPERATURE SMD SOT-23-5 制造商:Analog Devices 功能描述:MONITOR, TEMPERATURE, SMD, SOT-23-5