TMP05BRTZ-REEL Analog Devices Inc, TMP05BRTZ-REEL Datasheet - Page 22

no-image

TMP05BRTZ-REEL

Manufacturer Part Number
TMP05BRTZ-REEL
Description
IC,TEMPERATURE SENSOR,HYBRID,TSOP,5PIN,PLASTIC
Manufacturer
Analog Devices Inc
Datasheet

Specifications of TMP05BRTZ-REEL

Function
Temp Monitoring System (Sensor)
Topology
ADC (Sigma Delta), Averaging Control
Sensor Type
Internal
Sensing Temperature
-40°C ~ 150°C
Output Type
CMOS/TTL
Output Alarm
No
Output Fan
No
Voltage - Supply
3 V ~ 5.5 V
Operating Temperature
-40°C ~ 150°C
Mounting Type
Surface Mount
Package / Case
SOT-23-5, SC-74A, SOT-25
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
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)
TR1=1;
Already
if (tempsegment == 1)
if (tempsegment == 2)
timer0_count=0;
timer1_count=0;
if (tempsegment == 3)
tempsegment++;
}
void timer0 () interrupt 1
{
timer0_count++;
}
void timer1 () interrupt 3
{
timer1_count++;
{
th = TH1;
tl = TL1;
th = TH1;
TL1 = 0;
TH1 = 0;
}
{
temp_high0 = (TH0*0x100+TL0)+(timer0_count*65536); //Convert to integer
TH0=0x00;
TL0=0x00;
timer0_count=0;
}
{
temp_low0 = (th*0x100+tl)+(timer1_count*65536);
temp_high1 = (TH0*0x100+TL0)+(timer0_count*65536); //Convert to integer
TH0=0x00;
}
{
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;
}
TL0=0x00;
Rev. B | Page 22 of 28
//ADuC812 SFR definitions
//Daisy_Start_Pulse = P3.7
//INT0 Interrupt Service Routine
//To avoid misreading timer
//Start timer1 running, if not running
//Keep a record of timer0 overflows
//Keep a record of timer1 overflows
//Reset count
//Convert to integer
//Reset count
//Convert to integer
//Reset count
//access during ISR.
//See
Figure 32
.

Related parts for TMP05BRTZ-REEL