Temperature Sensor Has One Dig

MEMS/传感技术

1325人已加入

描述

Abstract: Digital temperature sensors are available with a variety of serial interfaces of varying complexity. This application note shows how to use one family of thermal monitor ICs with a very simple 2-wire (clock in, data out) digital interface.

The first digital temperature sensors used the SPI bus or I²C bus (also known as SMBus) for their serial data outputs. These buses require that the controlling processor write data to the sensor before they can read the temperature data.

The MAX6629-MAX6632 reduces complexity by not requiring the processor to write data. It requires only that you drive the clock and chip-select lines, so a simpler burst of clock pulses will read the temperature data.

The circuit of Figure 1 makes reading the data simpler still by deriving the chip select signal from the clock. Communication is achieved with a single digital input and a single digital output.

Clock pulses on the normally high SCK line drive active-low CS low, so devices of the MAX6629-MAX6632 family let you retrieve digital data by simply applying a burst of clock pulses. (In a normal configuration, the three interface lines active-low CS, SO, and SCK function as shown in Figure 2.) The 2-line approach of Figure 1, on the other hand, requires that the SCK rest state (quiescent state) be high, which in turn calls for a slight modification of the Figure 2 timing diagram.

温度传感器
Figure 1. By eliminating the need for a logic line to the active-low CS input, this circuit allows you to simply clock temperature data from the sensor device.

温度传感器
Figure 2. A serial-interface timing diagram for the Figure 1 temp sensor illustrates the function of active-low CS. It enables the interface when low, then suspends temperature-to-digital conversions until it returns to a level higher than 0.7VCC.

When SCK initially goes low, it pulls active-low CS low via the Schottky diode D1. You should set the R1-C1 time constant so the active-low CS line rises no higher than 0.3VCC between clock pulses (i.e., 1.5V for a 5V supply in Figure 1). An oscilloscope display (Figure 3) shows the slow rise time of active-low CS. To allow time for the sensor IC to perform its next temperature-to-digital conversion, active-low CS should remain above 0.7VCC (3.5V in Figure 1) for at least 0.5 seconds between temperature-read operations.

温度传感器
Figure 3. This scope display from Figure 1 shows how the presence of SCK pulses (top trace) generates a active-low CS signal (lower trace).

A similar version of this article appeared in the March 4, 2002 issue of Electronic Design magazine.

打开APP阅读更多精彩内容
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

全部0条评论

快来发表一下你的评论吧 !

×
20
完善资料,
赚取积分