Tuesday, 27 August 2013
Thursday, 15 August 2013
Serial ADC0831 Interfaced With 8051
ADC0831 is an 8 pin IC with 8-bit
serial data output receive the output from ADC high to low pulse is given at CS
(chip select) pin of ADC form controller. ADC requires delay of two clock
pulses before starting data conversion. At the second clock cycle, ADC sends a
‘0’ bit to the controller which indicates that the upcoming bits are the data
bits.
ADC
needs eight clock pulses to send 8-bit digital output. This digital data is
received bit by bit and stored in a variable. The data is converted to
its corresponding ASCII value and sent to LCD
for display. The connections of LCD with microcontroller
are shown in circuit diagram. The analog signals are generated by at a variable
resistance (preset) which is connected to input pin of
ADC0831.
Algorithm
1. Initialize LCD.
2. Send a high to low pulse to CS pin
to initialize conversion.
3. Send two clock pulses.
4. Receive the data bits by one by one
and store it in a variable.
5. Display its corresponding decimal
value on LCD.
This code is written in Embedded C and compiled in keil uvision 3 and simulated in proteus simulation software.
Here you can get Code, circuit, and simulation:
For Embedded C Code click here
For Protues Simulation Click Here
For Hex Code Click Here
Leave your comments to improve my site.
Give your feedback and other related ques mail me at manirandd@gmail.com
ADC 0808 INTERFACE WITH 8051
ADC0808 is an 8 bit analog to digital converter with
eight input analog channels, i.e., it can take eight different analog
inputs. The input which is to be converted to digital form can be selected by
using three address lines. The voltage reference can be set using the Vref+ and
Vref- pins. The step size is decided based on set reference value. Step size is
the change in analog input to cause a unit change in the output of ADC. The
default step size is 19.53mV corresponding to 5V reference voltage. ADC0808 needs an external clock
to operate unlike ADC0804 which has an internal clock. The ADC needs some
specific control signals for its operations like start conversion and bring
data to output pins. When the conversion is complete the EOC pins goes low to
indicate the end of conversion and data ready to be picked up.
ADC 0808 is interfaced with 8051 to read more than one analog input. here we can read 8 analog inputs.
we read analog inputs using adc0808 and displaying value in LCD.
This code is written in Embedded C and compiled in keil uvision 3 and simulated in proteus simulation software.
Here you can get Code, circuit, and simulation:
For Embedded C Code click here
For Protues Simulation Click Here
For Hex Code Click Here
Leave your comments to improve my site.
Give your feedback and other related ques mail me at manirandd@gmail.com
4 Bit Lcd With Dancing Display
Here we have
interfaced LCD with AT89c51. LCD has 16 pins, in that 8 pins for data, and 3
pins for controlling lcd.
But in 8051, we have totally 32 pins for interfacing. so if we use 11 pins for LCD interfacing, then only few pins will be available for others.
So we interface LCD in 4 bit mode. So We need 4 pins for Data and 2 pins(RS,EN) for controlling.
So that we reduce 5 pins.
For lcd in 4bit mode with dancing display,
This code is compiled in keil uvision 3 and simulated in proteus simulation software.
here you can use this in advertisement display boards,
get code, circuit diagram and simulation.
For code in LCD 4 bit mode click here
For Simulation and circuit click here
Leave your comments to improve my site.
Give your feedback and other related ques mail me at manirandd@gmail.com
But in 8051, we have totally 32 pins for interfacing. so if we use 11 pins for LCD interfacing, then only few pins will be available for others.
So we interface LCD in 4 bit mode. So We need 4 pins for Data and 2 pins(RS,EN) for controlling.
So that we reduce 5 pins.
For lcd in 4bit mode with dancing display,
This code is compiled in keil uvision 3 and simulated in proteus simulation software.
here you can use this in advertisement display boards,
get code, circuit diagram and simulation.
For code in LCD 4 bit mode click here
For Simulation and circuit click here
Leave your comments to improve my site.
Give your feedback and other related ques mail me at manirandd@gmail.com
Sunday, 11 August 2013
LCD SCROLLING DISPLAY USING 8051
Here we are going to scroll lcd display using 8051.
LCD is important Display device. here 1st we display some words in lcd, then we scroll it.
Here we have connected LCD in PORT 2 of 8051, then RS pin of LCD is connected with P3.6 pin and EN pin connected with P3.7 of 8051.
Here we have used some commands to rotate the whole display to left.
We have used keil uvision 3 for compiling code for 8051 and code written in Embedded C.
then we have designed circuit in Proteus and simulated in that same software.
We can download code click here
For circuit and simulation click here
For hex file click here
Visit my blog frequently for codes and circuits.
i'll write programs and give simulation level output for you, if you'll ask anything related to embedded systems.
Always welcome yours comments.
leave your comments here, or mail me @ manirandd@gmail.com
Thank you for your visit
Wednesday, 7 August 2013
RTC DS1307 INTERFACING WITH AT89C51
Here RTC (Real time clock) is the heart of timing systems. Nowadays all the
systems are running based on time, here rtc has inbuilt battery backup to keep
on running without external supply.
it updates it's register without external power supply.
We can see many applications based on RTC in day to day life, for Ex., Mobile phone is the essential one.
Here we have interfaced RTC DS1307 with AT89c51 using I2C(Inter Integrated circuit).
here the code has been written in Embedded C and compiled using Keil uvision 3. and simulated in proteus 6.4.
Operating system Windows 7.
If you want any guidelines to install proteus in windows 7, just mail me or comment here.
You can download c file from here
Hex file available here
For Simulation and circuit of RTC with AT89C51 click here
it updates it's register without external power supply.
We can see many applications based on RTC in day to day life, for Ex., Mobile phone is the essential one.
Here we have interfaced RTC DS1307 with AT89c51 using I2C(Inter Integrated circuit).
here the code has been written in Embedded C and compiled using Keil uvision 3. and simulated in proteus 6.4.
Operating system Windows 7.
If you want any guidelines to install proteus in windows 7, just mail me or comment here.
You can download c file from here
Hex file available here
For Simulation and circuit of RTC with AT89C51 click here
Sunday, 4 August 2013
LCD Display in 4 bit Mode
Here we have interfaced LCD with AT89c51. LCD has 16 pins, in that 8 pins for data, and 3 pins for controlling lcd.
But in 8051, we have totally 32 pins for interfacing. so if we use 11 pins for LCD interfacing, then only few pins will be available for others.
So we interface LCD in 4 bit mode. So We need 4 pins for Data and 2 pins(RS,EN) for controlling.
So that we reduce 5 pins.
For lcd in 4bit mode see the following code.
For code in LCD 4 bit mode click here
For Simulation and circuit click here
Leave your comments to improve my site.
Give your feedback and other related ques mail me at manirandd@gmail.com
Subscribe to:
Posts (Atom)