參數(shù)資料
型號(hào): TMP06BRTZ-500RL7
廠商: ANALOG DEVICES INC
元件分類(lèi): 溫度/濕度傳感器
英文描述: 【0.5∑C Accurate PWM Temperature Sensor in 5-Lead SC-70
中文描述: DIGITAL TEMP SENSOR-SERIAL, 12BIT(s), 1Cel, RECTANGULAR, SURFACE MOUNT
封裝: LEAD FREE, MO-178AA, SOT-23, 5 PIN
文件頁(yè)數(shù): 22/28頁(yè)
文件大?。?/td> 706K
代理商: TMP06BRTZ-500RL7
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描述
TMP06BRTZ-REEL7 【0.5∑C Accurate PWM Temperature Sensor in 5-Lead SC-70
TMP12 Airflow and Temperature Sensor
TMP12FP Airflow and Temperature Sensor
TMP12FS Airflow and Temperature Sensor
TMP12GBC Airflow and Temperature Sensor
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
TMP06BRTZ-REEL 制造商:AD 制造商全稱(chēng):Analog Devices 功能描述:【0.5∑C Accurate PWM Temperature Sensor in 5-Lead SC-70
TMP06BRTZ-REEL7 制造商:AD 制造商全稱(chēng):Analog Devices 功能描述:【0.5∑C Accurate PWM Temperature Sensor in 5-Lead SC-70
TMP07103 制造商:TRACOPOWER 制造商全稱(chēng):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