TMP05AKS-REEL Analog Devices Inc, TMP05AKS-REEL Datasheet - Page 24

IC SENSOR TEMP PWM OUT SC70-5

TMP05AKS-REEL

Manufacturer Part Number
TMP05AKS-REEL
Description
IC SENSOR TEMP PWM OUT SC70-5
Manufacturer
Analog Devices Inc
Datasheet

Specifications of TMP05AKS-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
SC-70-5, SC-88A, SOT-323-5, SOT-353, 5-TSSOP
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
TMP05/TMP06
CONTINUOUSLY CONVERTING APPLICATION
This section provides an example of how to connect one
TMP05 in continuously converting mode to a microchip
PIC16F876 microcontroller. Figure 37 shows how to interface
to the PIC16F876.
The TMP05 Program Code Example 2 shows how to
communicate from the microchip device to the TMP05. This
code can also be used with other PICs by changing the include
file for the part.
TMP05 Program Code Example 2
//=============================================================================================
//
// Description : This program reads the temperature from a TMP05 part set up in continuously
// converting mode.
// This code was written for a PIC16F876, but can be easily configured to function with other
// PICs by simply changing the include file for the part.
//
//
//
//
//
//============================================================================================
#include <16F876.h>
#device adc=8
#use delay(clock=4000000)
#fuses NOWDT,XT, PUT, NOPROTECT, BROWNOUT, LVP
//_______________________________Wait for high function_____________________________________
void wait_for_high() {
}
//______________________________Wait for low function_______________________________________
void wait_for_low() {
}
//_______________________________Main begins here____________________________________________
void main(){
long int high_time,low_time,temp;
while(input(PIN_A0)) ;
while(!input(PIN_A0));
while(input(PIN_A0));
setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_OFF);
setup_spi(FALSE);
setup_timer_1 ( T1_INTERNAL | T1_DIV_BY_2);
Fosc = 4MHz
Compiled under CCS C compiler IDE version 3.4
PWM output from TMP05 connected to PortA.0 of PIC16F876
/* while high, wait for low */
/* wait for high */
/* wait for high */
// Insert header file for the particular PIC being used
Rev. B | Page 24 of 28
//Sets up timer to overflow after 131.07ms
Figure 37. Typical Continuously Converting Application Circuit
PIC16F876
T
0
MEASUREMENT
PA.0
FIRST TEMP
OUT
CONV/IN
FUNC
TMP05
TIME
MEASUREMENT
SECOND TEMP
GND
V
DD
3.3V
0.1µF

Related parts for TMP05AKS-REEL