DatasheetQ Logo
Electronic component search and free download site.
Transistors,MosFET ,Diode,Integrated circuits

TMP05BRT-500RL7 View Datasheet(PDF) - Analog Devices

Part Name
Description
Manufacturer
TMP05BRT-500RL7 Datasheet PDF : 28 Pages
First Prev 11 12 13 14 15 16 17 18 19 20 Next Last
TMP05/TMP06
ENTER INTERRUPT
ROUTINE
START TIMER 1
NO
CHECK IF TIMER 1
IS RUNNING
YES
COPY TIMER 1 VALUES
INTO A REGISTER
RESET TIMER 1
IS TEMPSEGMENT
NO
=1
YE S
CALCULATE
TEMP_HIGH0
RESET TIMER 0
TO ZERO
NO
IS TEMPSEGMENT
=2
YES
CALCULATE
TEMP_LOW0
USING TIMER 1
VALUES
IS TEMPSEGMENT
NO
=3
CALCULATE
TEMP_HIGH1
USING TIMER 0
VALUES
YE S
CALCULATE
TEMP_LOW1
RESET TIMER 0
TO ZERO
CALCULATE
TEMP_HIGH2
USING TIMER 0
VALUES
Figure 36. ADuC812 Interrupt Routine Flowchart
INCREMENT
TEMPSEGMENT
EXIT INTERRUPT
ROUTINE
TMP05 Program Code Example 1
//=============================================================================================
// Description : This program reads the temperature from 2 daisy-chained TMP05 parts.
//
// This code runs on any standard 8052 part running at 11.0592MHz.
// If an alternative core frequency is used, the only change required is an
// adjustment of the baud rate timings.
//
// P3.2 = Daisy-chain output connected to INT0.
// P3.7 = Conversion control.
// Timer0 is used in gate mode to measure the high time.
// Timer1 is triggered on a high-to-low transition of INT0 and is used to measure
// the low time.
//=============================================================================================
Rev. 0 | Page 20 of 28
 

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]