Er. Zatin Gupta: Report Based On The Project
Er. Zatin Gupta: Report Based On The Project
Zatin Gupta
DESIGNED BY:
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
INDEX
Acknowledgement
DTMF Signal
Embedded System
Microcontroller
Introduction to Project
Hardware used
Block diagram
Circuit Diagram
Working Diagram of Project
Keypad assignment
91214B IC
8870 IC
AT89S52 IC
ULN2004A IC
Software used in Project
Testing
Hardware testing
Software testing
Application of project
Further work
Reference
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
Acknowledgement
ZATIN GUPTA
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
DTMF Signal
History
DTMF was developed at Bell Labs in order to allow
dialing signals to dial long-distance numbers,
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
Keypad
When you press the buttons on the keypad, a
connection is made that generates two tones at the
same time. A "Row" tone and a "Column" tone. These
two tones identify the key you pressed to any
equipment you are controlling. If the keypad is on
your phone, the telephone company's "Central
Office" equipment knows what numbers you are
dialing by these tones, and will switch your call
accordingly. If you are using a DTMF keypad to
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
1 2 3 697 Hz
4 5 6 770 Hz
7 8 9 852 Hz
* 0 # 941 Hz
1209 Hz 1336 Hz 1477 Hz
Low High
Event
frequency frequency
Busy signal 480 Hz 620 Hz
Dial tone 350 Hz 440 Hz
Ring back tone
440 Hz 480 Hz
(US)
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
Embedded system
Embedded system:
A hardware system which is designed to
perform a specific task in a particular time period,
e.g. mobile phones
Hardware
Input & Output
Software
Sensors
Keys
Analog signals
Pulses
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
Software’s Hardware’s
Machine language Digital IC’s (driver,
decoder, MUX)
Assembly language linear IC’s (op amp,
ADC, DAC, comparator)
High level language Passive components
(L, C, R’s)
C, C++, java PCB, Relays,
Motors
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
Microcontroller
µC 8051
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
4 – Bit microcontroller
8 – Bit microcontroller
16 – Bit microcontroller
32 – Bit microcontroller
4 – BIT MICROCONTROLLERS
8 – BIT MICROCONTROLLERS
16 –BIT MICROCONTROLLERS
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
32 – BIT MICROCONTROLLERS
Feature Quantity
ROM 4K bytes
RAM 128 bytes
Timer 2
I/O Pins 32
Serial port 1
Interrupt sources 6
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
8052 MICROCONTROLLER
Has all the features of 8051 along with extra
128 bytes of RAM, a timer and an extra 4K bytes
of on chip ROM
8051 is upward compatible to 8052
8031 MICROCONTROLLER
ROM-less 8051 i.e. contains 0 K bytes of on chip
ROM
An external ROM must be added to make it
functional.
VERSIONS OF 8051 µC
8751 microcontroller
4K bytes of on chip UV-EPROM require PROM burner,
as Ill as UV-EPROM to erase its contents and takes 20
min erase cycle.
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
Introduction to Project
Project Description
Title
“A2Z Control System ”
Hardware used
ULN 2004A IC
LCD display
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
Features
Keys for entering particular no.
No. of corresponding key display on LCD
BLOCK DIAGRAM OF PROJECT
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
CIRCUIT DIAGRAM
Power supply
Keypad
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
DTMF Encoder
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
DTMF Decoder
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
Relays
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
OFF STATE
ON STATE
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
Keypad Assignment
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
Pin Description
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
AT89S52 microcontroller
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
Pin Description
VCC
Supply voltage.
GND
Ground
Port 0
Port 0 is an 8-bit open drain bidirectional I/O port.
As an output port, each pin can sink eight TTL
inputs. When 1s are written to port 0 pins, the pins
can be used as high impedance inputs. Port 0 can
also be configured to be the multiplexed low order
Address/data bus during accesses to external
Program and data memory in this mode, P0 has
internal Pullups. Port 0 also receives the code bytes
during Flash programming and outputs the code
bytes during program verification. External pullups
are required during program verification.
Port 1
Port 1 is an 8-bit bidirectional I/O port with internal
pullups. The Port 1 output buffers can sink/source
four TTL inputs. When 1s are written to Port 1 pins,
they are pulled high by the internal pullups and can
be used as inputs. As inputs, Port 1 pins that are
externally being pulled low will source current (IIL)
because of the internal pullups. In addition, P1.0
and P1.1 can be configured to be the timer/counter
2 external count input (P1.0/T2) and the
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
Port 2
Port 2 is an 8-bit bidirectional I/O port with internal
pullups. The Port 2 output buffers can sink/source
four TTL inputs. When 1s are written to Port 2 pins,
they are pulled high by the internal pullups and can
be used as inputs. As inputs, Port 2 pins that are
externally being pulled low will source
Current (IIL) because of the internal pullups Port 2
emits the high-order address byte during fetches
from external program memory and during accesses
to external data memory that use 16-bit addresses
(MOVX @ DPTR). In this application, Port 2 uses
strong internal pullups when emitting 1s. During
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
Port 3
Port 3 is an 8-bit bidirectional I/O port with internal
pullups. The Port 3 output buffers can sink/source
four TTL inputs. When 1s are written to Port 3 pins,
they are pulled high by the internal pullups and can
be used as inputs. As inputs, Port 3 pins that are
externally being pulled low will source current (IIL)
because of the pullups. Port 3 also serves the
functions of various special features of the AT89S52,
as shown in the following table. Port 3 also receives
some control signals for Flash programming
And verification
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
RST
Reset input. A high on this pin for two machine
cycles while the oscillator is running resets the
device. This pin drives High for 96 oscillator periods
after the Watchdog times out. The DISRTO bit in SFR
AUXR (address 8EH) can be used to disable this
feature. In the default state of bit DISRTO, the
RESET HIGH out feature is enabled.
ALE/PROG
Address Latch Enable (ALE) is an output pulse for
latching the low byte of the address during accesses
to external memory. This pin is also the program
pulse input (PROG) during Flash programming. In
normal operation, ALE is emitted at a constant rate
of 1/6 the oscillator frequency and may be used for
external timing or clocking purposes. Note, however,
that one ALE pulse is skipped during each access to
external data memory. If desired, ALE operation can
be disabled by setting bit 0 of SFR location 8EH.
With the bit set, ALE is active only during a MOVX or
MOVC instruction. Otherwise, the pin is weakly
pulled high. Setting the ALE-disable bit has no
Effect if the microcontroller is in external execution
mode.
PSEN
Program Store Enable (PSEN) is the read strobe to
external program memory. When the AT89S52 is
executing code from external program memory,
PSEN is activated twice each machine cycle, except
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
EA/VPP
External Access Enable EA must be strapped to GND
in order to enable the device to fetch code from
external program memory locations starting at
0000H up to FFFFH. Note, however, that if lock bit 1
is programmed, EA will be internally latched on
reset. EA should be strapped to VCC for internal
program executions. This pin also receives the 12-
volt programming enable voltage (VPP) during Flash
programming.
XTAL1
Input to the inverting oscillator amplifier and input
to the internal clock operating circuit.
XTAL2
Output from the inverting oscillator amplifier
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
ULN 2004A IC
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
Logic Diagram
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
Pin Description
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
#include<reg51.h>
#define keyport P1
#define lcdport P3
#define relay P2
sbit rs=P2^0;
sbit en=P2^1;
void lcdsetup();
void keysense();
void key();
void display(int);
void cmdwrt();
void datwrt();
void delay(int);
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
void main()
{
lcdsetup();
while(1)
{
keysense();
}
}
void keysense()
{
keyport=0xef;
key();
keyport=0xdf;
key();
keyport=0xbf;
key();
keyport=0x7f;
key();
return;
}
void key()
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
{
if(keyport==0xee)
{
while(keyport==0xee);
display(1);
return;
}
else if(keyport==0xed)
{
while(keyport==0xed);
display(2);
return;
}
else if(keyport==0xeb)
{
while(keyport==0xeb);
display(3);
return;
}
else if(keyport==0xe7)
{
while(keyport==0xe7);
display(4);
return;
}
else if(keyport==0xde)
{
while(keyport==0xde);
display(5);
return;
}
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
else if(keyport==0xdd)
{
while(keyport==0xdd);
display(6);
return;
}
else if(keyport==0xdb)
{
while(keyport==0xdb);
display(7);
return;
}
else if(keyport==0xd7)
{
while(keyport==0xd7);
display(8);
return;
}
else if(keyport==0xbe)
{
while(keyport==0xbe);
display(9);
return;
}
else if(keyport==0xbd)
{
while(keyport==0xbd);
display(10);
return;
}
else
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
return;
}
void display(int b)
{
if(b==1)
{
lcdport=0x80;
cmdwrt();
delay(1000);
for(i=0;i<3;i++)
{
lcdport=msg1[4];
datwrt();
delay(1000);
}
lcdport='1';
datwrt();
delay(1000);
for(i=3;i<10;i++)
{
lcdport=msg1[4];
datwrt();
delay(1000);
}
}
else if(b==2)
{
lcdport=0x80;
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
cmdwrt();
delay(1000);
for(i=0;i<3;i++)
{
lcdport=msg1[4];
datwrt();
delay(1000);
}
lcdport='2';
datwrt();
delay(1000);
for(i=3;i<10;i++)
{
lcdport=msg1[4];
datwrt();
delay(1000);
}
}
else if(b==3)
{
lcdport=0x80;
cmdwrt();
delay(1000);
for(i=0;i<3;i++)
{
lcdport=msg1[4];
datwrt();
delay(1000);
}
lcdport='3';
datwrt();
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
delay(1000);
for(i=3;i<10;i++)
{
lcdport=msg1[4];
datwrt();
delay(1000);
}
}
else if(b==4)
{
lcdport=0x80;
cmdwrt();
delay(1000);
for(i=0;i<3;i++)
{
lcdport=msg1[4];
datwrt();
delay(1000);
}
lcdport='4';
datwrt();
delay(1000);
for(i=3;i<10;i++)
{
lcdport=msg1[4];
datwrt();
delay(1000);
}
}
else if(b==5)
{
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
lcdport=0x80;
cmdwrt();
delay(1000);
for(i=0;i<3;i++)
{
lcdport=msg1[4];
datwrt();
delay(1000);
}
lcdport='5';
datwrt();
delay(1000);
for(i=3;i<10;i++)
{
lcdport=msg1[4];
datwrt();
delay(1000);
}
}
else if(b==6)
{
lcdport=0x80;
cmdwrt();
delay(1000);
for(i=0;i<3;i++)
{
lcdport=msg1[4];
datwrt();
delay(1000);
}
lcdport='6';
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
datwrt();
delay(1000);
for(i=3;i<10;i++)
{
lcdport=msg1[4];
datwrt();
delay(1000);
}
}
else if(b==7)
{
lcdport=0x80;
cmdwrt();
delay(1000);
for(i=0;i<3;i++)
{
lcdport=msg1[4];
datwrt();
delay(1000);
}
lcdport='7';
datwrt();
delay(1000);
for(i=3;i<10;i++)
{
lcdport=msg1[4];
datwrt();
delay(1000);
}
}
else if(b==8)
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
{
lcdport=0x80;
cmdwrt();
delay(1000);
for(i=0;i<3;i++)
{
lcdport=msg1[4];
datwrt();
delay(1000);
}
lcdport='8';
datwrt();
delay(1000);
for(i=3;i<10;i++)
{
lcdport=msg1[4];
datwrt();
delay(1000);
}
}
else if(b==9)
{
lcdport=0x80;
cmdwrt();
delay(1000);
for(i=0;i<3;i++)
{
lcdport=msg1[4];
datwrt();
delay(1000);
}
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
lcdport='9';
datwrt();
delay(1000);
for(i=3;i<10;i++)
{
lcdport=msg1[4];
datwrt();
delay(1000);
}
}
}
void lcdsetup()
{
lcdport=0x38;
cmdwrt();
delay(10000);
lcdport=0x01;
cmdwrt();
delay(10000);
lcdport=0x0e;
cmdwrt();
delay(10000);
lcdport=0x80;
cmdwrt();
delay(10000);
return;
}
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
void cmdwrt()
{
rs=0;
en=0;
for(i=0;i<5;i++);
en=1;
return;
}
void datwrt()
{
rs=1;
en=0;
for(i=0;i<5;i++);
en=1;
return;
}
void delay(int p)
{
while(p!=0);
return;
}
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
HARDWARE TESTING
WITHOUT IC
Continuity in between
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
Vcc=5v
Gnd=0v
Reset=0v initial & 5v pressed
EA=5v
WITH IC
Vcc=5v
Gnd=0v
Reset= low-high-low
EA=5v
Crystal Oscillator: in this there are 2 parameters as
below
Voltage
Frequency
Voltage at 18 & 19 pin <=2v
Frequency=11.0592MHz
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
SOFTWARE TESTING
LCD
RELAYS
LCD
lcdport equ p0
rs bit p2.7
rw bit p2.5
en bit p2.6
clr rw
main:
acall lcdinit
acall display
sjmp main
Lcdinit:
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
commandwr:
clr rs
setb en ;HIGH
ENABLE
nop
nop
nop
clr en ;RESET
ENABLE
ret
display:
mov lcdport,#'Z'
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
acall datawr
acall delay
Mov lcdport,#'A'
acall datawr
acall delay
mov lcdport,#'T'
acall datawr
acall delay
mov lcdport,#'I'
acall datawr
acall delay
mov lcdport,#'N'
acall datawr
acall delay
ret
datawr:
setb rs ;SET REG SELECT
setb en ;SET ENABLE
nop
nop
nop
clr en ;CLEAR ENABLE
ret
delay:
mov r5,#100d
lp2: mov r6,#10d
lp1: mov r7,#100d
lp0: djnz r7,lp0
djnz r6,lp1
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
djnz r5,lp2
ret
RELAYS
delay:
MOV R5,#20d
lp2: MOV R6,#200d
lp1: MOV R7,#250d
lp0: djnz R7,lp0
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
djnz R6,lp1
djnz R5,lp2
Ret
delay:
MOV R5,#20d
lp2: MOV R6,#200d
lp1: MOV R7,#250d
lp0: djnz R7,lp0
djnz R6,lp1
djnz R5,lp2
Ret
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
APPLICATION OF PROJECT
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
FURTHER WORK
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)
Er. Zatin Gupta
REFERENCE
Websites
www.google.com
www.howstuffworks.com
www.alldatasheet.com
www.dogpile.com
www.electroguys.com
www.wikipedia.com
www.efy.com
Books
Mazidi
Programming & customizing the PIC &
microcontrollers ( e-book)
http://zatin.gupta2000.googlepages.com
Create PDF files without this message by purchasing novaPDF printer (http://www.novapdf.com)