Beruflich Dokumente
Kultur Dokumente
* ADC804 Chip
– 8-bit ADC works with +5V from National Semiconductor
– conversion time is 110µs
– it can be tested by free running configured as shown in Fig 12-5
– D0-D7: the digital data (code) output pins; tri-state buffered, accessed
only when CS = 0 and RD is low; Dout = Vin / (Vref/256)
– Analog GND and Digital GND are used to isolate the analog and digital
Microprocessor 12 - 10/13
power to improve the output accuracy
–
– Fig 12-6 shows the Read and Write timing for ADC804
1. make CS = 0 and send a low-to-high pulse to WR to start the
conversion
2. keep monitoring the INTR, if INTR is low, the conversion is finished
3. after INTR becomes low, make CS = 0 and send a high-to-low pulse
to RD to get the data out of the ADC804
– the clock is coming from the crystal of 8051, however, it is too high for
ADC, so two D flip-flops are used to divide it down by 4
Microprocessor 12 - 12/13
* Interfacing a Temperature Sensor to the 8051
– table 12-6 shows a thermistor resistance change with temperature, it is
very non-linear, increase the software complexity
– many linear temperature sensors are introduced, such as LM34, LM35
from National Semiconductor Corp.
– LM34 & LM35 are precision
integrated-circuit temperature sensors
whose output voltage is linearly
proportional to the temperature; table 12-7
and 12-8 are their selection guide
Microprocessor 12 - 13/13
– Fig 12-10 is the connection of 8051 with ADC and temperature sensor