Professional Documents
Culture Documents
Last but not the least we are thankfull to all the technical
and non technical staff who helped us to complete this task in time.
INTRODUCTION
The basic concept behind this project is Embedded
Systems. In this system we are suppose to use Micro-Controllers to
develop the complete application with a basic Controller Card. In
the discussions we will move on step by step to achieve the
complete knowledge of the card and its application circuit with
programming in assembly language which is the basic language of
Electronics Engineers.
Microcontroller Section
• IC AT89S52 ATMEL 1
• Capacitors 22µf,25volts 1
• Optocoupler 4n35 1
• Resistors 8.2KΩ 1
• Crystal oscillator 11.058Mhz 1
• Heating element 1
• Relay 6 V dc 1
• Transistors 3
• Switches (for level setting)
• Reset switch 1
• Oven cover(Stainless steel)
• LCD( for display)
Software
• Keil Compiler
• C language
Miscellaneous
• Multi-strand wires
• Solder paste
• Solder iron
• Screw driver
• Jumper wire
• Cutter
• Twister
• Flux
• Double side 10-pin connector
• Multimeter
Hardware Description
• Power Supply :-
Regulator :-
The heart of this regulator is a special regulator chip with three
legs:-
1. Input
2. Output
3. Common.
These chips come in all different varieties and
the ones we are interested in are the:-
• 5 Volt positive
regulator..........7805
IC AT89S51 :
The AT89S52 is a low power, high-performance
CMOS 8-bit microcontroller with 8K bytes of in-system
programmable flash memory. The device is manufactured using
Atmel’s high-density nonvolatile memory technology and is
compatible with the industry-standard 8051 instruction set and
pinout. The on-chip flash allows the program memory to be
reprogrammed in-system or by a conventional nonvolatile memory
programmer. This IC is a powerful microcontroller which provides
a highly-flexible and cost-effective solution to many embedded
controller applications. It has many features as following:-
• 8K bytes of in-system
programmable flash memory
• 4.0v to 5.5v operating range
• 256x8-bit internal RAM
• 32 programmable i/o lines
• Two 16-bit timer/counters
• Full duplex serial port
• Two data pointer
100 u
MICROCONTROLLER CARD
33 PF
4 MHz
PIN Configuration
The AT89C51 provides the following standard features: 4K bytes
of Flash, 128 bytes of RAM, 32 I/O lines, two 16-bit timer/counters,
a five vector two-level interrupt architecture, a full duplex serial
port, on-chip oscillator and clock circuitry. In addition, the
AT89C51 is designed with static logic for operation down to zero
frequency and supports two software selectable power saving
modes. The Idle Mode stops the CPU while allowing the RAM,
timer/counters, serial port and interrupt system to continue
functioning. The Power Down Mode saves the RAM contents but
freezes the oscillator disabling all other chip functions until the next
hardware reset.
Pin Description
WORKING
#include<intrins.h>
#include<reg51.h>
#include<lcdrout.h>
#define DATA P2;
#define RS P10
#define RW P11
#define E P12
#define LED P14
#define S1 P35
#define S2 P36
#define S3 P37
#define D P33
Void main ( )
{
While(1)
{
Unsigned char a;
Led=1;
Lcd_initialize();
Acc=0x80;
Lcd_cmd();
Lcd_display(“WELCOME”,7)
SECDELAY(1);
ACC=0X01;
ACC=0X80;
LCD_CMD( );
LCD_DISPLAY(“MICROWAVE OVEN”,14);
SECDELAY(2);
ACC=0X01;
ACC=0X80;
LCD_CMD( );
LCD_DISPLAY(“ENTER LEVEL”,11);
WHILE(S3!=0)
{
if(S1==0)
{
a++;
if(a==5)
{
a=1;
}
}
if(S2==0)
{
a--;
if(a==0)
{
a=5;
}
}
ACC=0X01;
ACC=0X80;
LCD_CMD( );
DISPLAYPVAL(a);
ms_delay(200);
}
If(s3==0)
{
Control_device(a);
}
}
}
ACC=0x01;
ACC=0x80;
Lcd_cmd( ) ;
Lcd_display(“LEVEL 5”,7)
}
}