Group all Htabs

Description

Developed By:

Himanshu Choudhary

Many a times, it is required to receive signals from different sensors and to monitor the related data on a PC. In such cases, an ADC is required to convert analog signals, from the sensors, to digital pattern. Also, this data transfer can be carried out through the serial port, RS232, of the computer. This circuit demonstrates the principle and operation ADC0808 interfacing using serial port via 8051 microcontroller (AT89C51). The circuit is divided into four parts: clock, ADC, controller and serial port. This circuit can be used as an intermediate module in many important applications.

ADC0808 which is an 8-bit resolution ADC has eight analog input pins to take inputs. The circuit uses a preset for providing the analog input. The clock for driving the ADC0808 is taken from the crystal of the . The controller AT89C51 uses a crystal of frequency 11.0592 MHz. As this frequency is too high for the ADC, it is divided using a D flip-flop and then given to the ADC0808. The circuit uses four D flip-flops by employing 74LS74

. It is a 14 pin IC with two internal D flip-flops. The circuit uses two ICs to divide the frequency by 16. The circuit diagram shows the connection of the D flip-flop ICs.

The output pins of the ADC are connected to the port P0 of the microcontroller. Pins ALE, OE, SC and EOC (pins 22, 9, 6 & 7 respectively) are connected to pins P1^0, P1^3, P1^1 & P1^2 of the microcontroller AT89C51

The output from the ADC comes on port P0 and is stored into the SBUF register. This data is then transmitted serially to the serial port of the PC using the serial transmitter pin TxD (pin11) of the controller.

74LS47 is a BCD to 7-segment decoder/driver IC. It accepts a binary coded decimal as input and converts it into a pattern to drive a seven-segment for displaying digits 0 to 9. Binary coded decimal (BCD)...