
manufactured by the National Semiconductor Corporation. The conversion
time of this A/D converter is 100 ms. As shown in Fig. 5.13, these converters
interface to the microcontroller using the following pins (only the pins used in a
standard application are shown):
DB0-DB7 8 data output pins
RD Read input
WR Write input
INTR Interrupt output
137
Temperature Projects
unsigned int TEMP;
digit1_latch=1; /*set digit1 latch*/
digit2_latch=1; /*set digit2 latch*/
digit3_latch=1; /*set digit3 latch*/
con®gure_ds1620(); /*con®gure DS1620*/
set_thigh(60); /*set THIGH for 30C*/
set_tlow(50); /*set TLOW for 25C*/
start_temp_conv(); /*start conversion*/
for(;;) /*endless ...