数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

TMP05 数据表(PDF) 23 Page - Analog Devices

部件名 TMP05
功能描述  짹0.5째C Accurate PWM Temperature Sensor in 5-Lead SC-70
PDF  28 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  AD [Analog Devices]
网页  http://www.analog.com
标志 AD - Analog Devices

TMP05 数据表(HTML) 23 Page - Analog Devices

Back Button TMP05 Datasheet HTML 19Page - Analog Devices TMP05 Datasheet HTML 20Page - Analog Devices TMP05 Datasheet HTML 21Page - Analog Devices TMP05 Datasheet HTML 22Page - Analog Devices TMP05 Datasheet HTML 23Page - Analog Devices TMP05 Datasheet HTML 24Page - Analog Devices TMP05 Datasheet HTML 25Page - Analog Devices TMP05 Datasheet HTML 26Page - Analog Devices TMP05 Datasheet HTML 27Page - Analog Devices Next Button
Zoom Inzoom in Zoom Outzoom out
 23 / 28 page
background image
TMP05/TMP06
Rev. 0 | Page 23 of 28
3.3V
GND
FUNC
CONV/IN
OUT
TMP05
PIC16F876
VDD
0.1
µF
PA.0
FIRST TEMP
MEASUREMENT
T0
TIME
SECOND TEMP
MEASUREMENT
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.
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 simply changing the include file for the
part.
Figure 37. Typical Daisy-Chain Application Circuit
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.
//
//
Fosc = 4MHz
//
Compiled under CCS C compiler IDE version 3.4
//
PWM output from TMP05 connected to PortA.0 of PIC16F876
//
//============================================================================================
#include <16F876.h>
// Insert header file for the particular PIC being used
#device adc=8
#use delay(clock=4000000)
#fuses NOWDT,XT, PUT, NOPROTECT, BROWNOUT, LVP
//_______________________________Wait for high function_____________________________________
void wait_for_high() {
while(input(PIN_A0)) ;
/* while high, wait for low */
while(!input(PIN_A0));
/* wait for high */
}
//______________________________Wait for low function_______________________________________
void wait_for_low() {
while(input(PIN_A0));
/* wait for high */
}
//_______________________________Main begins here____________________________________________
void main(){
long int high_time,low_time,temp;
setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_OFF);
setup_spi(FALSE);
setup_timer_1 ( T1_INTERNAL | T1_DIV_BY_2);
//Sets up timer to overflow after 131.07ms



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com