Department of Computer Science and Information EngineeringNational Cheng Kung University21INTERFACING TO ADC AND SENSORSTesting ADC804(cont’) HANEL
5V 10kPOT
VCCRDCLK RWRCLK inD0Vin (+)D1D2Vin (-)D3D4/2VrefD5CSD6D7D GNDINTRA GND
8051 ADC804P2.5P2.6P1.0 P1.7P2.710k 150 pF8051 Connection to ADC804 with Self-Clocking
Department of Computer Science and Information EngineeringNational Cheng Kung University22INTERFACING TO ADC AND SENSORSADC804 Clock from 8051 XTAL2 HANEL
5V CLK inCLK R10kVin (+)POTVin (-)V/2refCS A GND
VCCP2.5RDP2.6WRP1.0D0D1D2D3D4D5D6D7P1.7GNDINTRP2.7
XTAL1XTAL2
QD Q DQ Q
8051ADC804
74LS74The frequency of crystal is too high, we use two D flip-flops to divide the frequency by 4
8051 Connection to ADC804 with Clock from XTAL2 of 8051
Department of Computer Science and Information EngineeringNational Cheng Kung University23INTERFACING TO ADC AND SENSORSInterfacing Temperature Sensor HANEL
A thermistorresponds to temperature
change by changing resistance, but its response is not linearThe complexity associated with writing software for such nonlinear devices has led many manufacturers to market the linear temperature sensor1.700
750.817
1003.893
5010.000
2529.490
0Tf (K ohms)
Temperature (C) From William Kleitz, digital ElectronicsDepartment of Computer Science and Information EngineeringNational Cheng Kung University24INTERFACING TO ADC AND SENSORS HANEL
LM34 and LM35 Temperature SensorsThe sensors of the LM34/LM35 series are precision integrated-circuit temperature sensors whose output voltage is linearly proportional to the Fahrenheit/Celsius temperature¾The LM34/LM35 requires no external calibration since it is inherently calibrated¾It outputs 10 mV for each degree of Fahrenheit/Celsius temperature