Microwave Oven Project Using Picsimlab
Microwave Oven Project Using Picsimlab
USING PICSIMLAB
PRESENTED BY,
DHARANI M
ECE - FINAL YEAR
Content:
INTRODUCTION
EMBEDDED C
MICROCONTROLLER AND MICROPROCESSOR
REQUIREMENTS
PERIPHERALS
SIMULATION
INTRODUCTION:
Embedded System:
An embedded system is a combination of computer Hardware and Software designed
for a specific application/task.
It can be based on either microprocessor or microcontroller.
Example:
❑ Household appliances: Washing Machine, Smart TV’s, etc.,
❑ Automobiles (Car/Bike)- ECU, Airbags, ABS, Seat belt, Navigation System, Automatic
wiper, ADAS, etc.,
❑ Mobile Phones- GUI s/w and h/w, operating systems, cameras, microphones, USB
❑ Health Care- Medical equipments
BLOCK DIAGRAM FOR EMBEDDED SYSTEM
MICROWAVE OVEN:
Microwave Oven works on the principle of conversion of electromagnetic
energy into thermal energy.
It is an electric oven that heat and cook food by exposing it to
electromagnetic radiation.
MODES:
1. MICRO MODE
2. GRILL MODE
3. CONVECTION MODE
4. START MODE
1. MICRO MODE
It uses the maximum power of 900W.
2. GRILL MODE
It is equipped with heating coils that are responsible for grilling, roasting
and toasting food to make it brown and crispy.
3. CONVECTION MODE
Convection mode enables to set the temperature as required.
The maximum cooking time is 60 minutes.
If you want more cooking capabilities, larger cooking capacity and
have the space for it.
The baking is done by the convection mode.
User can set the oven to pre heat for a particular temperature and it
takes 3minutes to pre heat the oven.
After pre heating is done then the user can set the time as per the
requirements.
EMBEDDED C
Why C is used in Embedded System?
➢ In Embedded Systems, the program code should operate within a fixed
memory space to execute the code. C offers a level of control over the hardware.
➢ C programming produce efficient and compact code.
➢ It produces very reliable code to execute critical tasks.
Readability- It uses the meaningful variable, function names and comments to make
code more understandable.
Portability- It has the ability to run a program on different hardware and operating
systems.
Scalable- It is easier to reuse the code and can easily add modules to an existing
system.
For Conditional
Single iteration- if, if else, if else if and switch case
Multiple iteration- for, while, do -> Loops
Jump- break, go, continue (unconditional)
OPERATORS:
Operators are symbols that represent operations to be performed
on one or more operands.
Types of Operator:
Unary Operator (++, --)
Binary Operator
1. Relational Operators (<, <=, >, >=, ==, !=)
2. Arithmetic Operators (+, -, *, /, %)
3. Logical Operators (&&, ||, !)
4. Bitwise Operators (&, |, <<, >>, ~, ^)
5. Assignment Operators (=, +=, -=, *=, /=, %=)
Ternary Operator(?:)
ARRAY- Collection of same data type.
POINTERS- To store the memory address of other variables, functions or
even other pointers.
FUNCTION- It is a block of code which only runs when it is called.
PARAMETERS- The variables that are defined during a function
declaration.
STORAGE CLASSES- Used to describe the features of a variable/ function.
- auto, extern, static-> local & global, register
PREPROCESSOR DIRECTIVES- Preprocessor programs provide preprocessor directives
that tell the compiler to preprocess the source code before compiling.
MICROPROCESSOR
ALU
INPUT DEVICE
OUTPUT DEVICE
CONTOL UNIT
REGISTER ARRAY
MEMORY UNIT
REQUIREMENTS:
❑ MPLAB IDE
❑ XC8 COMPILER
❑ PICSimLAB
PIC16F877A
16 x 4 CLCD
Tactile Switch
Timer 2
Matrix Keypad
ISR
PIC16F877A
It is a PIC Microcontroller and normally used in the embedded projects.
Properties:
It consists of 40 pins.
It has the 5 ports-Port A -> 6 bits(TRISA)
Pins- Analog pins(Analog port)
Port B -> 8 bits(TRISB)
Pins- Digital pins
Port C -> 8 bits(TRISC)
It is used for serial communication(Digital port)
Port D -> 8 bits(TRISD)
Pins- Digital pins
Port E -> 3 bits(TRISE)
It will work by uploading hex file.
All the 5 ports are Bidirectional
Size of Microcontroller=Size of
Data Bus
Data Bus=8 bits
Instruction set architecture- RISC
BLOCK DIAGRAM
PERIPHERALS:
PICSIMLAB ARCHITECTURE
LED:
LED is an external device connected to microcontroller port.
In PIC16F877A contains 14 LED’s which is connect to the Port D and Port B
NIBBLES:
RD4-RD7 =Upper nibble = 0x4
RD4-RD7 =Lower nibble = 0x1
To read, R/W = 1
To write, R/W = 0 (or) grounded
Tactile Switch:
It is a switch whose operation is perceptible by touch.
Uses:
To select the mode of operation
To enter the temperature
To enter the time
It will produce a Bouncing Effect when a switch is pressed
Process-
An external or internal requests MPU to stop the processing
The MPU acknowledges the request
Attends to the request
Goes back to the processing
Sources of Interrupts:
External Interrupt- Caused by onboard
Internal interrupt- Caused inside the microcontroller
Classification of Interrupts:
Maskable Interrupts are further classified into External and Internal Interrupts.
TIMERS
QUANTUM:
Quantum is a measure of time which is responsible for tick.
Depending on the system clock settings.
Tick is based on Instruction Cycle (IC).
PRE SCALING
1:2 = Tick increment after 2 IC -> 400nsec
1:4 = Tick increment after 4 IC -> 800nsec
POST SCALING
1:2 = After 2 overflow go to ISR -> 102.4usec
1:4 = After 4 overflow go to ISR -> 204.8usec
MODES:
❑ Counter
❑ PWM or Pulse generator
❑ PW or PP Measurement
SIMULATION of THE PROJECT
THANK YOU………….!!!