SlideShare a Scribd company logo
Introduction to Embedded System

 The embedded system is a combination of computer hardware,
         software additional electrical & mechanical parts

 A computer is used in such devices primarily as a means to
simplify
   the system design and to provide flexibility.

 Embedded systems employ the use of a RTOS (Real-Time
         Operating System).
Block Diagram of Embedded System

                         SOFTWARE




                     MEMORY




A/D           CPU             D/A   ACUTATORS



SENSOR   HUMAN INTERFERENCE
Microcontroller

• A smaller computer.
• On-chip RAM, ROM, I/O ports...
• Example:- Motorola’s 6811, Intel’s 8051 and PIC 16X




         CPU RAM ROM
                                       A single chip

         I/O Timer
         Port      Serial
                   COM
                   Port
The 8051 Microcontroller :
•   The 8051 is the first microcontroller of
    the MCS-51 family introduced by
    Intel Corporation at the end of the
    1970’s.

• The 8051 family characteristics:

    The 8051 family characteristics:
         4K Bytes ROM
         128 Bytes RAM
         Two timer/counters (16 bit)
         A serial port
         32 input/output port
         Interrupt controller
8051 Internal Architecture
IC 8051 Pin Description
                          Voltage Supply
                             (+5V)




 Ground
IC 8051 Pin Description

                          Port 0 from
                          Pin-39 to Pin-32

                           An 8-bit open drain
                           bidirectional port.
                          Used to address both
                          data and address
IC 8051 Pin Description

Port 1 from
Pin-1 to pin-8

8-bit bidirectional
I/O port with
internal pull-ups
IC 8051 Pin Description




                          Port 2 from
                          Pin-21 to pin-28

                          Used to access
                          address and I/O
IC 8051 Pin Description

P3.0 : RxD(serial input port)
P3.1 :TxD (serial output port)
P3.2 :INT0 (external interrupt 0)
P3.3 :INT1 (external interrupt 1)
P3.4 :T0 (timer 0 external input)
P3.5 :T1 (timer 1 external input)
P3.6 :WR (external data memory write strobe)
P3.7 :RD (external data memory read strobe)




Port 3 from
Pin-10 to Pin-17
IC 8051 Pin Description




                          External memory
reset
                               Add. Latch
                               enable



                          Program Store
                          Enable
crystal
IC 8051 Daily Applications




                           Digital clock
  Moving message display




   7 segment display       Traffic Light
Counter / Timers
Two 16-bit Counter/Timers: TIMER0, TIMER1
Up counters, can interrupt on overflow.

Counts:
- CPU cycles (crystal/12). “Timer”.
-External input (max. half CPU rate). “Counter”.
TMOD : Counter/Timer Mode Register
    Gate        C/T       M1         M0        Gate   C/T   M1        M0

           Timer 1                                          Timer 0

GATE : Permits INTx pin to enable/disable
counter.

- C/T : Set for counter operation, reset for
timer operation.

    TMX1      TMX1     TMX1       Description
    RST0       RST0    RST0     13 bit timer
    RST1       RST1    RST1     16 bit timer
    RST2       RST2    RST2     8 bit auto reload
    RST3       RST3    RST3     Split timer mode
Timer control (TCON)
       TF1                   TRI                    TF0                    TR0


TF : timer flag
TR : timer run

TF1 is SET if timer exceeds the maximum limit i.e. : FFFF H

TR starts and stops the timer

The following instruction indicates the condition for start n stop respectively

SET B TR0 : starts the timer
CLR B TR0 : stops the timer
IC 8051 Addressing Modes
   • Immediate addressing modes
           ADD A, #23h (Add immediate data to Acc)

   • Register addressing modes
           ADD A, R2 (Add register to Accumulator)

   • Direct addressing modes
           ADD A, 40h (Add data at location 40h to Accumulator)

   • Register Indirect addressing modes
           ADD A,@R2 (Add indirect RAM to Acc)
Interrupts in 8051

•   An interrupt is an external or internal event that interrupts the microcontroller to
    inform it that a device needs its service
•   The advantage of interrupts is that the microcontroller can serve many devices
    (not all at the same time)



         Program                                                Program
                                Interrupt service


                                                                                    time
Interrupts in 8051
Internal Interrupts
  EA          -        ET2         ES         ET1        EX1       ET0   EX0


 EX0       Enables or disables external interrupt
 ET0       Enables or disables timer 0 overflow interrupt
 EX1       Enables or disables external interrupt 1
 ET1       Enables or disables timer 1 overflow interrupt
 ES        Enables or disables the serial port interrupt
 ET2       Enables or disables timer 2 overflow or capture interrupt
 --        Not implemented, reserved for future use
 EA        Disables all interrupts


 External Interrupts

 P3.2      INT0 (external interrupt 0)
 P3.3      INT1 (external interrupt 1)
General Purpose
Microprocessor
 CPU for Computers
 No RAM, ROM, I/O on CPU chip itself
 Example--Intel’s x86: 8086,8088,80386,80486, Pentium

                         Data Bus           Many chips on mother board
            CPU

           General                                                  Serial
           Purpose        RAM       ROM       I/O       Timer       COM
             µP                               Port                   Port

                           Address Bus

                     General-Purpose Microprocessor System
The 8085 Microprocessor :
 The features of INTEL 8085 are :
 It is an 8 bit processor.
 It is a single chip N-MOS device with
  40 pins.
 It has multiplexed address and data
  bus.(AD0-AD7).
 It works on 5 Volt dc power supply.
 The maximum clock frequency is 3
  MHz while minimum frequency is
  500kHz.
 It provides 74 instructions with 5
  different addressing modes.
IC 8085 Pin Description
IC 8085 Pin Description
• AD0-AD7 Multiplexed Address and data lines.

• A8-A15   Tri-stated higher order address lines.

• ALE      Address latch enable is an output signal. It goes high when
                     operation is started by processor .

• S0,S1    These are the status signals used to indicate type of operation.
   _
• RD       Read is active low input signal used to read data from I/O
                    device or memory.
   _
• WR       Write is an active low output signal used write data on
                     memory or an I/O device.
.      .
                                                                                           p  ut                        pt 24H
IC 8085 Pin Description                                                                 ut h.                      rru 00
                                                                                    f o hig                    te
                                                                                                             in ress               P.
                                                                              u s o t is                 le d                   A
                                                                           at til i                  ab ad                   TR
                                                                        st                        k                                     TA
                                                                      e un                     as rom                     an
                                                                   th                                                  th           sI
                                                                                                                                       N
                                                               k AIT                      n t
                                                                                             m sf                    y             e
                                                           ec l W                     no star                    rit          r at
                                                        ch il                       ,
                                                                                  y n                        rio            ne
                                                     to w                      it                          p
                                                                                                                         ge
                                                  d µP                      or utio
                                                                          ri c                      lo
                                                                                                       w                                    is
                                               se w,                    p                                             µP                 8 5 ).
                                          l u lo                     st exe                     ve             ich                     80 =0
                                         a
                                      gn it is                gh and
                                                                    e                        ha               h                      r
                                    si If                    i                            d              r w l.                   he O/M
                               ut e.
                                                           h
                                                         d u rs                    s  an             fte gna                 h et ( I
                            tp vic                     e                        pt               l a si                     w de
                         ou de                       er occ                                                               e o
                     n
                                                   g
                                                ig rt                      rru                na ge
                                                                                           ig d                        at m
                   sa                         tr sta                     te                                           c
                                                                                                                   di ory
                  i                       e                           in               t s wle                  in
               Th                       dg , re                   le               u es o                     o em
                                      E
                                   n AP                    kab                eq ckn                    d rM
                                                                                                            t
                                a
                             is r TR                    as                 tr ta
                                                                          p p
                                                                                                       e
                                                                                                    us 1) o
                          It te                       m                                           l
      Y                         f                 re                 rru rru                   na /M=
   AD                                           a                 te                        ig
  E
                             A
                                            se                in inte                    r s (IO
                                          e               a                            o
•R                                     Th               is or                      in ode
             P                                      TR                           p
           A                   7  .5             IN                          ut O m
       • TR               6 .5,                                            p
                                                                        ut in I/
                      5.5,             TA
                                                                      o
                                                                   is ng
                                                                s
                   ST _             IN                      hi rki
                                                          T o
               •R               &
                                                               w
                           TR
                        IN
IC 8085 Pin Description
• HOLD & HLDA HOLD is an input signal .When µP receives HOLD signal
              it completes current machine cycle and stops executing
              next instruction. In response to HOLD µP generates HLDA
              that is HOLD Acknowledge signal.

• RESET IN       This is input signal. When RESET IN¯ is low µp restarts and
                 starts executing from location 0000H.

• SID            Serial input data is input pin used to accept serial 1 bit data

• VCC & VSS      Power supply VCC=+ -5Volt& VSS=-GND reference.

• X1 & X2        These are clock input signals and are connected to external LC
                          or RC circuit. These are divide by two so if 6 MHz is
connected to                        X1&X2, the operating frequency becomes 3
MHz
8085 Internal Architecture
Arithmetic and Logical Group
 Accumulator:
 It is 8 bit general purpose register.
 It is connected to ALU. So most of the operations are done in Acc.

 Temporary register:
 All the arithmetic and logical operations are done in the temporary register
 but user can’t access it.

 Flag:
 It is a group of 5 flip flops used to know status of various operations done.

 The Flag Register along with Accumulator is called PSW
 or Program Status Word.
Arithmetic and Logical Group
        Flag is given by :

S          Z            -             AC     -          P            -         CY



    S: Sign flag is set when result of an operation is negative.

    Z: Zero flag is set when result of an operation is 0.

    Ac: Auxiliary carry flag is set when there is a carry out of lower nibble or
        lower four bits of the operation.

    CY: Carry flag is set when there is carry generated by an operation.

    P: Parity flag is set when result contains even number of 1’s.
    Rest are don’t care flip flops.
Register Group

General purpose There are six general purpose registers in 8085 namely
                B,C,D,E,H,L These are used for various data manipulations.

Special purpose:      There are two special purpose registers in 8085:

SP : (Stack Pointer) This is a temporary storage memory 16 bit register. Since there
      are only 6 general purpose registers, there is a need to reuse them

PC : (Program Counter) It is 16 bit register used to point the location from which the
      next instruction is to be fetched.

Temporary registers (W,Z):
These are not available for user. These are loaded only when there is an operation
being performed.
IC 8085 Addressing modes
 • Immediate addressing:
              Immediate data is transferred to address or register.
              Example : MVI A,20H

 • Register addressing:
              Data is transferred from one register to other.
              Example : MOV A, C

 • Indirect addressing:
                Data is transferred from address pointed by the data in
     a register to other register or vice-versa.
                Example: MOV A, M

 • Implied addressing:
              These doesn’t require any operand. The data is specified
     in Opcode itself.
              Example: RAL: Rotate left with carry.
Interrupts in 8085

•   An interrupt is considered to be an emergency signal that may be serviced. The
    Microprocessor may respond to it as soon as possible.


Interrupts can also be classified into:
          • Maskable Interrupts (Can be delayed or Rejected)
          • Non-Maskable Interrupts (Can not be delayed or Rejected)

The 8085 has 5 interrupt inputs :


The INTR input INTR is mask-able using the EI/DI instruction pair.
RST 5.5, 6.5, 7.5 They are all mask-able.
TRAP              Is the only non-mask-able interrupt in the 8085
Interrupts in 8085
The 8085 recognizes 8 RESTART instructions: RST0 - RST7 . Each of these would send
   the execution to a predetermined hard-wired memory location:


                Restart Instruction        Equivalent to

                        RST0           CALL 0000H
                         RST1          CALL 0008H
                         RST2          CALL 0010H
                         RST3          CALL 0018H
                         RST4          CALL 0020H
                         RST5          CALL 0028H
                         RST6          CALL 0030H
                         RST7          CALL 0038H
Timing and State Diagram

•      The µP operates with reference to clock signal. The rise and fall of the pulse of the
       clock gives one clock cycle.
•      Each clock cycle is called a T state and a collection of several T states gives a
       machine cycle.
•      Important machine cycles are :

I.     Op-code fetch.
II.    Memory read.
III.   Memory write.
IV.    I/Op-read.
V.     I/O write.
Timing and State Diagram
Op-code fetch cycle :
Seven Segment Display
                        Seven segments are electronic
                        components that can be used to
                        displaying alphanumeric characters, 7
                        LED are used (as shown in figure) and is
                        designed from a dot-point with the size.




                          << pin configuration of seven segment
Seven Segment Display
7 pins of the microcontroller are used to shape the
character of your LED display




                                               Microcontroller




Port Relations Microcontroller with pin   >>
7 Segment
Seven Segment Display




ble 1. Configuring the Character 7 Segment Data
8051
 Microcontroller

Design Softwares
Software’s
            Used




 Keil      Top View    Express
µVision    Simulator    PCB
Keil µVision IDE
 The µVision IDE from Keil
  combines project management,
  make facilities, source code
  editing, program debugging, and
  complete simulation in one
  powerful environment. The
  µVision development platform is
  easy-to-use and helping you
  quickly create embedded
  programs that work. The µVision
  editor and debugger are
  integrated in a single application
  that provides a seamless
  embedded project development
  environment.
Top View Simulator
• Topview Simulator gives an
  excellent simulation environment
  for MCS 51 Microcontroller. 

   A beginner can learn about 8051
   based embedded solutions
   without any hardware. An
   experienced designer, you may
   find most of the required facilities
   built in the simulator that
   enabling  you to complete your
   next project without waiting for
   the target hardware. 
Top View Simulator


A Top View
Simulator
Program
Express PCB
Express PCB allows you to design
schematics and PCB's. It is ideal
for those that are looking to
design anywhere from a two to
four layer circuit board.
A drop and drag design allows
users to pick the components of
the circuit board and drop it
onto the circuit board in the
software program. The designer
can then place various pins in the
circuit board to show where
things need to be connected.
It also has the ability of the
program to show the designer
where there are flaws in their
design.
Express PCB

This way we can include resistors




                                    This way we can include different
                                    kind of IC’s
DC Motor interfacing with
    Microcontrollers
DC motors are always preferred over stepper motors.

There are many things which we can do with our DC motor when interfaced with
microcontroller.

For example:
• we can control the speed of motor,
• we can control the direction of rotation,
• we can also do encoding of the rotation made by DC motor i.e. keeping track of
  how many turns are made by our motors etc.

  Usually H-bridge is preffered way of interfacing a DC motor.
  L293D is most used H-Bridge driver IC.
Working of H-Bridge
The name "H-Bridge" is derived from the actual shape of the switching circuit which
control the motion of the motor. It is also known as "Full Bridge". Basically there are
four switching elements in the H-Bridge as shown
Working of H-Bridge

                         Truth Table
High Left   High Right     Low Left       Low Right     Description

                                                        Motor runs
   On          Off           Off             On
                                                        clockwise


                                                      Motor runs anti-
  Off          On            On              Off
                                                        clockwise


                                                       Motor stops or
   On          On            Off             Off
                                                        decelerates

                                                       Motor stops or
  Off          Off           On              On
                                                        decelerates

               Truth Table For H-Bridge
Stepper Motor
Of all motors, step motor is the easiest to control. It's
   handling simplicity is really hard to deny - all there
   is to do is to bring the sequence of rectangle
   impulses to one input of step controller and
   direction information to another input. Direction
   information is very simple and comes down to
   "left" for logical one on that pin and "right" for
   logical zero.
Motor control  is also very simple - every impulse
   makes the motor operating for one step and if
   there is no impulse the motor won't start. Pause
   between impulses can be shorter or longer and it
   defines revolution rate. This rate cannot be infinite
   because the motor won't be able to "catch up"
   with all the impulses (documentation on specific
   motor should contain such information)..
Interfacing of Stepper motor with 8051
Clock-wise Rotation of the Coils



                            Truth table


                        1         2       3   4
                        1         0       0   0
                        0         1       0   0
                        0         0       1   0
                        0         0       0   1
Akshat Rohatgi

More Related Content

What's hot

Embedded system
Embedded systemEmbedded system
Embedded system
Anmol Bagga
 
Unit 1 Introduction to Embedded computing and ARM processor
Unit 1 Introduction to Embedded computing and ARM processorUnit 1 Introduction to Embedded computing and ARM processor
Unit 1 Introduction to Embedded computing and ARM processor
Venkat Ramanan C
 
Embedded systems presentation
Embedded systems presentationEmbedded systems presentation
Embedded systems presentation
Surender Singh
 
Embedded system.ppt
Embedded system.pptEmbedded system.ppt
Embedded system.ppt
Radhika Puttewar
 
Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))
Ganesh Ram
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
Siva Kumar
 
Unit vi (2)
Unit vi (2)Unit vi (2)
Unit vi (2)
Siva Nageswararao
 
Introduction to AVR Microcontroller
Introduction to AVR Microcontroller Introduction to AVR Microcontroller
Introduction to AVR Microcontroller
Mahmoud Sadat
 
Introduction to Embedded Architecture
Introduction to Embedded Architecture Introduction to Embedded Architecture
Introduction to Embedded Architecture
amrutachintawar239
 
ARM Micro-controller
ARM Micro-controllerARM Micro-controller
ARM Micro-controller
Ravikumar Tiwari
 
Arduino vs Raspberry Pi
Arduino vs Raspberry PiArduino vs Raspberry Pi
Arduino vs Raspberry Pi
Jitendra Adhikari
 
Ardui no
Ardui no Ardui no
Ardui no
Amol Sakhalkar
 
Embedded system design process
Embedded system design processEmbedded system design process
Embedded system design process
RAMESHBABU311293
 
Embedded System Basics
Embedded System BasicsEmbedded System Basics
Embedded System Basics
Dr M Muruganandam Masilamani
 
Interfacing of io device to 8085
Interfacing of io device to 8085Interfacing of io device to 8085
Interfacing of io device to 8085
Nitin Ahire
 
Arm7 document
Arm7  documentArm7  document
Arm7 document
N Harisha
 
Embedded system
Embedded systemEmbedded system
Embedded system
Vinod Srivastava
 
CASE STUDY OF DIGITAL CAMERA HARDWARE AND SOFT WARE ARCHITECTURECASE STUDY OF...
CASE STUDY OF DIGITAL CAMERAHARDWARE AND SOFT WAREARCHITECTURECASE STUDY OF...CASE STUDY OF DIGITAL CAMERAHARDWARE AND SOFT WAREARCHITECTURECASE STUDY OF...
CASE STUDY OF DIGITAL CAMERA HARDWARE AND SOFT WARE ARCHITECTURECASE STUDY OF...
JOLLUSUDARSHANREDDY
 
introduction to embedded system presentation
introduction to embedded system presentationintroduction to embedded system presentation
introduction to embedded system presentation
Amr Rashed
 
Lect 2 ARM processor architecture
Lect 2 ARM processor architectureLect 2 ARM processor architecture
Lect 2 ARM processor architecture
Dr.YNM
 

What's hot (20)

Embedded system
Embedded systemEmbedded system
Embedded system
 
Unit 1 Introduction to Embedded computing and ARM processor
Unit 1 Introduction to Embedded computing and ARM processorUnit 1 Introduction to Embedded computing and ARM processor
Unit 1 Introduction to Embedded computing and ARM processor
 
Embedded systems presentation
Embedded systems presentationEmbedded systems presentation
Embedded systems presentation
 
Embedded system.ppt
Embedded system.pptEmbedded system.ppt
Embedded system.ppt
 
Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
 
Unit vi (2)
Unit vi (2)Unit vi (2)
Unit vi (2)
 
Introduction to AVR Microcontroller
Introduction to AVR Microcontroller Introduction to AVR Microcontroller
Introduction to AVR Microcontroller
 
Introduction to Embedded Architecture
Introduction to Embedded Architecture Introduction to Embedded Architecture
Introduction to Embedded Architecture
 
ARM Micro-controller
ARM Micro-controllerARM Micro-controller
ARM Micro-controller
 
Arduino vs Raspberry Pi
Arduino vs Raspberry PiArduino vs Raspberry Pi
Arduino vs Raspberry Pi
 
Ardui no
Ardui no Ardui no
Ardui no
 
Embedded system design process
Embedded system design processEmbedded system design process
Embedded system design process
 
Embedded System Basics
Embedded System BasicsEmbedded System Basics
Embedded System Basics
 
Interfacing of io device to 8085
Interfacing of io device to 8085Interfacing of io device to 8085
Interfacing of io device to 8085
 
Arm7 document
Arm7  documentArm7  document
Arm7 document
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
CASE STUDY OF DIGITAL CAMERA HARDWARE AND SOFT WARE ARCHITECTURECASE STUDY OF...
CASE STUDY OF DIGITAL CAMERAHARDWARE AND SOFT WAREARCHITECTURECASE STUDY OF...CASE STUDY OF DIGITAL CAMERAHARDWARE AND SOFT WAREARCHITECTURECASE STUDY OF...
CASE STUDY OF DIGITAL CAMERA HARDWARE AND SOFT WARE ARCHITECTURECASE STUDY OF...
 
introduction to embedded system presentation
introduction to embedded system presentationintroduction to embedded system presentation
introduction to embedded system presentation
 
Lect 2 ARM processor architecture
Lect 2 ARM processor architectureLect 2 ARM processor architecture
Lect 2 ARM processor architecture
 

Viewers also liked

Presentation based on Transistors
Presentation based on TransistorsPresentation based on Transistors
Presentation based on Transistors
aksh07
 
Project loon by #Muralid25
Project loon by #Muralid25Project loon by #Muralid25
Project loon by #Muralid25
Muralidhar Thunuguntla
 
5 g
5 g5 g
5 g
aksh07
 
Edge
EdgeEdge
Microsoft HoloLens by #Muralid25
Microsoft HoloLens by #Muralid25Microsoft HoloLens by #Muralid25
Microsoft HoloLens by #Muralid25
Muralidhar Thunuguntla
 
Power Genertaion using Nanofiber
Power Genertaion using NanofiberPower Genertaion using Nanofiber
Power Genertaion using Nanofiber
aksh07
 
Biometric
Biometric Biometric
Biometric
Vinay Gupta
 
Sixth sense technology
Sixth sense technologySixth sense technology
Sixth sense technology
Vinay Gupta
 
Palm vein Technology
Palm vein TechnologyPalm vein Technology
Palm vein Technology
Harisankar U K
 
Programmable logic Controller
Programmable logic ControllerProgrammable logic Controller
Programmable logic Controller
aksh07
 
Design of Beam for Shear
Design of Beam for ShearDesign of Beam for Shear
Design of Beam for Shear
illpa
 
Geometric Modeling
Geometric Modeling Geometric Modeling
Geometric Modeling
illpa
 
plc introduction
plc introduction plc introduction
plc introduction
illpa
 
Parallel computing
Parallel computingParallel computing
Parallel computing
Vinay Gupta
 
Webinar on Insider's Insight into NFC
Webinar on Insider's Insight into NFCWebinar on Insider's Insight into NFC
Webinar on Insider's Insight into NFC
Endeavour Software Technologies
 
Near field communication
Near field communicationNear field communication
Near field communication
divyasolanki101
 
NFC Technology
NFC TechnologyNFC Technology
NFC Technology
Neha Singh
 
NEAR FIELD COMMUNICATION
NEAR FIELD COMMUNICATIONNEAR FIELD COMMUNICATION
NEAR FIELD COMMUNICATION
Harisankar U K
 
Google Glass
Google GlassGoogle Glass
Google Glass
Mehvish Mushtaq
 
NFC technical presentation
NFC technical presentationNFC technical presentation
NFC technical presentation
Akshat Rohatgi
 

Viewers also liked (20)

Presentation based on Transistors
Presentation based on TransistorsPresentation based on Transistors
Presentation based on Transistors
 
Project loon by #Muralid25
Project loon by #Muralid25Project loon by #Muralid25
Project loon by #Muralid25
 
5 g
5 g5 g
5 g
 
Edge
EdgeEdge
Edge
 
Microsoft HoloLens by #Muralid25
Microsoft HoloLens by #Muralid25Microsoft HoloLens by #Muralid25
Microsoft HoloLens by #Muralid25
 
Power Genertaion using Nanofiber
Power Genertaion using NanofiberPower Genertaion using Nanofiber
Power Genertaion using Nanofiber
 
Biometric
Biometric Biometric
Biometric
 
Sixth sense technology
Sixth sense technologySixth sense technology
Sixth sense technology
 
Palm vein Technology
Palm vein TechnologyPalm vein Technology
Palm vein Technology
 
Programmable logic Controller
Programmable logic ControllerProgrammable logic Controller
Programmable logic Controller
 
Design of Beam for Shear
Design of Beam for ShearDesign of Beam for Shear
Design of Beam for Shear
 
Geometric Modeling
Geometric Modeling Geometric Modeling
Geometric Modeling
 
plc introduction
plc introduction plc introduction
plc introduction
 
Parallel computing
Parallel computingParallel computing
Parallel computing
 
Webinar on Insider's Insight into NFC
Webinar on Insider's Insight into NFCWebinar on Insider's Insight into NFC
Webinar on Insider's Insight into NFC
 
Near field communication
Near field communicationNear field communication
Near field communication
 
NFC Technology
NFC TechnologyNFC Technology
NFC Technology
 
NEAR FIELD COMMUNICATION
NEAR FIELD COMMUNICATIONNEAR FIELD COMMUNICATION
NEAR FIELD COMMUNICATION
 
Google Glass
Google GlassGoogle Glass
Google Glass
 
NFC technical presentation
NFC technical presentationNFC technical presentation
NFC technical presentation
 

Similar to Embedded Systems

Live B tech Projects & Industrial Training @Technogroovy
Live B tech Projects & Industrial Training @Technogroovy Live B tech Projects & Industrial Training @Technogroovy
Live B tech Projects & Industrial Training @Technogroovy
Technogroovy India
 
8051
80518051
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontroller
Amandeep Alag
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
Rashmi
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
guest70d48b1
 
8051microcontroller
8051microcontroller 8051microcontroller
8051microcontroller
manish080
 
Presentation On: "Micro-controller 8051 & Embedded System"
Presentation On: "Micro-controller 8051 & Embedded System"Presentation On: "Micro-controller 8051 & Embedded System"
Presentation On: "Micro-controller 8051 & Embedded System"
surabhii007
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
Shivashankar Sawalgi
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
Moeez Shem
 
8051 microcontroller features
8051 microcontroller features8051 microcontroller features
8051 microcontroller features
Tech_MX
 
8051 microcontrollers ch3
8051 microcontrollers ch38051 microcontrollers ch3
8051 microcontrollers ch3
mariomarion102030
 
Microcontroller-8051.ppt
Microcontroller-8051.pptMicrocontroller-8051.ppt
Microcontroller-8051.ppt
KalaiSelvan911913
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
Sadiq Rahim
 
8051 architecture
8051 architecture8051 architecture
8051 architecture
sb108ec
 
Embedded System
Embedded SystemEmbedded System
Embedded System
Richa Arora
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller
Gaurav Verma
 
Microcontroller 8051 By Mitesh kumar
Microcontroller 8051 By Mitesh kumarMicrocontroller 8051 By Mitesh kumar
Microcontroller 8051 By Mitesh kumar
Mitesh Kumar
 
EMBEDDED SYSTEMS 2&3
EMBEDDED SYSTEMS 2&3EMBEDDED SYSTEMS 2&3
EMBEDDED SYSTEMS 2&3
PRADEEP
 
8051 full ppt
8051 full ppt8051 full ppt
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontroller
Amandeep Alag
 

Similar to Embedded Systems (20)

Live B tech Projects & Industrial Training @Technogroovy
Live B tech Projects & Industrial Training @Technogroovy Live B tech Projects & Industrial Training @Technogroovy
Live B tech Projects & Industrial Training @Technogroovy
 
8051
80518051
8051
 
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontroller
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
8051microcontroller
8051microcontroller 8051microcontroller
8051microcontroller
 
Presentation On: "Micro-controller 8051 & Embedded System"
Presentation On: "Micro-controller 8051 & Embedded System"Presentation On: "Micro-controller 8051 & Embedded System"
Presentation On: "Micro-controller 8051 & Embedded System"
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
8051 microcontroller features
8051 microcontroller features8051 microcontroller features
8051 microcontroller features
 
8051 microcontrollers ch3
8051 microcontrollers ch38051 microcontrollers ch3
8051 microcontrollers ch3
 
Microcontroller-8051.ppt
Microcontroller-8051.pptMicrocontroller-8051.ppt
Microcontroller-8051.ppt
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
8051 architecture
8051 architecture8051 architecture
8051 architecture
 
Embedded System
Embedded SystemEmbedded System
Embedded System
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller
 
Microcontroller 8051 By Mitesh kumar
Microcontroller 8051 By Mitesh kumarMicrocontroller 8051 By Mitesh kumar
Microcontroller 8051 By Mitesh kumar
 
EMBEDDED SYSTEMS 2&3
EMBEDDED SYSTEMS 2&3EMBEDDED SYSTEMS 2&3
EMBEDDED SYSTEMS 2&3
 
8051 full ppt
8051 full ppt8051 full ppt
8051 full ppt
 
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontroller
 

Recently uploaded

Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
c5vrf27qcz
 
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
DanBrown980551
 
QA or the Highway - Component Testing: Bridging the gap between frontend appl...
QA or the Highway - Component Testing: Bridging the gap between frontend appl...QA or the Highway - Component Testing: Bridging the gap between frontend appl...
QA or the Highway - Component Testing: Bridging the gap between frontend appl...
zjhamm304
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
"Scaling RAG Applications to serve millions of users",  Kevin Goedecke"Scaling RAG Applications to serve millions of users",  Kevin Goedecke
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
Fwdays
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
Javier Junquera
 
Christine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptxChristine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptx
christinelarrosa
 
ScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking ReplicationScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking Replication
ScyllaDB
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
Jason Yip
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
Antonios Katsarakis
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
Edge AI and Vision Alliance
 
From Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMsFrom Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMs
Sease
 
Mutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented ChatbotsMutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented Chatbots
Pablo Gómez Abajo
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
DianaGray10
 
Session 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdfSession 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdf
UiPathCommunity
 
Essentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation ParametersEssentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation Parameters
Safe Software
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
AstuteBusiness
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving
 

Recently uploaded (20)

Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
 
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
 
QA or the Highway - Component Testing: Bridging the gap between frontend appl...
QA or the Highway - Component Testing: Bridging the gap between frontend appl...QA or the Highway - Component Testing: Bridging the gap between frontend appl...
QA or the Highway - Component Testing: Bridging the gap between frontend appl...
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
"Scaling RAG Applications to serve millions of users",  Kevin Goedecke"Scaling RAG Applications to serve millions of users",  Kevin Goedecke
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
 
Christine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptxChristine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptx
 
ScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking ReplicationScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking Replication
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
 
From Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMsFrom Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMs
 
Mutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented ChatbotsMutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented Chatbots
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
 
Session 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdfSession 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdf
 
Essentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation ParametersEssentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation Parameters
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024
 

Embedded Systems

  • 1.
  • 2. Introduction to Embedded System  The embedded system is a combination of computer hardware, software additional electrical & mechanical parts  A computer is used in such devices primarily as a means to simplify the system design and to provide flexibility.  Embedded systems employ the use of a RTOS (Real-Time Operating System).
  • 3. Block Diagram of Embedded System SOFTWARE MEMORY A/D CPU D/A ACUTATORS SENSOR HUMAN INTERFERENCE
  • 4. Microcontroller • A smaller computer. • On-chip RAM, ROM, I/O ports... • Example:- Motorola’s 6811, Intel’s 8051 and PIC 16X CPU RAM ROM A single chip I/O Timer Port Serial COM Port
  • 5.
  • 6. The 8051 Microcontroller : • The 8051 is the first microcontroller of the MCS-51 family introduced by Intel Corporation at the end of the 1970’s. • The 8051 family characteristics: The 8051 family characteristics:  4K Bytes ROM  128 Bytes RAM  Two timer/counters (16 bit)  A serial port  32 input/output port  Interrupt controller
  • 8. IC 8051 Pin Description Voltage Supply (+5V) Ground
  • 9. IC 8051 Pin Description Port 0 from Pin-39 to Pin-32 An 8-bit open drain bidirectional port. Used to address both data and address
  • 10. IC 8051 Pin Description Port 1 from Pin-1 to pin-8 8-bit bidirectional I/O port with internal pull-ups
  • 11. IC 8051 Pin Description Port 2 from Pin-21 to pin-28 Used to access address and I/O
  • 12. IC 8051 Pin Description P3.0 : RxD(serial input port) P3.1 :TxD (serial output port) P3.2 :INT0 (external interrupt 0) P3.3 :INT1 (external interrupt 1) P3.4 :T0 (timer 0 external input) P3.5 :T1 (timer 1 external input) P3.6 :WR (external data memory write strobe) P3.7 :RD (external data memory read strobe) Port 3 from Pin-10 to Pin-17
  • 13. IC 8051 Pin Description External memory reset Add. Latch enable Program Store Enable crystal
  • 14. IC 8051 Daily Applications Digital clock Moving message display 7 segment display Traffic Light
  • 15. Counter / Timers Two 16-bit Counter/Timers: TIMER0, TIMER1 Up counters, can interrupt on overflow. Counts: - CPU cycles (crystal/12). “Timer”. -External input (max. half CPU rate). “Counter”.
  • 16. TMOD : Counter/Timer Mode Register Gate C/T M1 M0 Gate C/T M1 M0 Timer 1 Timer 0 GATE : Permits INTx pin to enable/disable counter. - C/T : Set for counter operation, reset for timer operation. TMX1 TMX1 TMX1 Description RST0 RST0 RST0 13 bit timer RST1 RST1 RST1 16 bit timer RST2 RST2 RST2 8 bit auto reload RST3 RST3 RST3 Split timer mode
  • 17. Timer control (TCON) TF1 TRI TF0 TR0 TF : timer flag TR : timer run TF1 is SET if timer exceeds the maximum limit i.e. : FFFF H TR starts and stops the timer The following instruction indicates the condition for start n stop respectively SET B TR0 : starts the timer CLR B TR0 : stops the timer
  • 18. IC 8051 Addressing Modes • Immediate addressing modes ADD A, #23h (Add immediate data to Acc) • Register addressing modes ADD A, R2 (Add register to Accumulator) • Direct addressing modes ADD A, 40h (Add data at location 40h to Accumulator) • Register Indirect addressing modes ADD A,@R2 (Add indirect RAM to Acc)
  • 19. Interrupts in 8051 • An interrupt is an external or internal event that interrupts the microcontroller to inform it that a device needs its service • The advantage of interrupts is that the microcontroller can serve many devices (not all at the same time) Program Program Interrupt service time
  • 20. Interrupts in 8051 Internal Interrupts EA - ET2 ES ET1 EX1 ET0 EX0 EX0 Enables or disables external interrupt ET0 Enables or disables timer 0 overflow interrupt EX1 Enables or disables external interrupt 1 ET1 Enables or disables timer 1 overflow interrupt ES Enables or disables the serial port interrupt ET2 Enables or disables timer 2 overflow or capture interrupt -- Not implemented, reserved for future use EA Disables all interrupts External Interrupts P3.2 INT0 (external interrupt 0) P3.3 INT1 (external interrupt 1)
  • 21. General Purpose Microprocessor  CPU for Computers  No RAM, ROM, I/O on CPU chip itself  Example--Intel’s x86: 8086,8088,80386,80486, Pentium Data Bus Many chips on mother board CPU General Serial Purpose RAM ROM I/O Timer COM µP Port Port Address Bus General-Purpose Microprocessor System
  • 22.
  • 23. The 8085 Microprocessor :  The features of INTEL 8085 are :  It is an 8 bit processor.  It is a single chip N-MOS device with 40 pins.  It has multiplexed address and data bus.(AD0-AD7).  It works on 5 Volt dc power supply.  The maximum clock frequency is 3 MHz while minimum frequency is 500kHz.  It provides 74 instructions with 5 different addressing modes.
  • 24. IC 8085 Pin Description
  • 25. IC 8085 Pin Description • AD0-AD7 Multiplexed Address and data lines. • A8-A15 Tri-stated higher order address lines. • ALE Address latch enable is an output signal. It goes high when operation is started by processor . • S0,S1 These are the status signals used to indicate type of operation. _ • RD Read is active low input signal used to read data from I/O device or memory. _ • WR Write is an active low output signal used write data on memory or an I/O device.
  • 26. . . p ut pt 24H IC 8085 Pin Description ut h. rru 00 f o hig te in ress P. u s o t is le d A at til i ab ad TR st k TA e un as rom an th th sI N k AIT n t m sf y e ec l W no star rit r at ch il , y n rio ne to w it p ge d µP or utio ri c lo w is se w, p µP 8 5 ). l u lo st exe ve ich 80 =0 a gn it is gh and e ha h r si If i d r w l. he O/M ut e. h d u rs s an fte gna h et ( I tp vic e pt l a si w de ou de er occ e o n g ig rt rru na ge ig d at m sa tr sta te c di ory i e in t s wle in Th dg , re le u es o o em E n AP kab eq ckn d rM t a is r TR as tr ta p p e us 1) o It te m l Y f re rru rru na /M= AD a te ig E A se in inte r s (IO e a o •R Th is or in ode P TR p A 7 .5 IN ut O m • TR 6 .5, p ut in I/ 5.5, TA o is ng s ST _ IN hi rki T o •R & w TR IN
  • 27. IC 8085 Pin Description • HOLD & HLDA HOLD is an input signal .When µP receives HOLD signal it completes current machine cycle and stops executing next instruction. In response to HOLD µP generates HLDA that is HOLD Acknowledge signal. • RESET IN This is input signal. When RESET IN¯ is low µp restarts and starts executing from location 0000H. • SID Serial input data is input pin used to accept serial 1 bit data • VCC & VSS Power supply VCC=+ -5Volt& VSS=-GND reference. • X1 & X2 These are clock input signals and are connected to external LC or RC circuit. These are divide by two so if 6 MHz is connected to X1&X2, the operating frequency becomes 3 MHz
  • 29. Arithmetic and Logical Group Accumulator: It is 8 bit general purpose register. It is connected to ALU. So most of the operations are done in Acc. Temporary register: All the arithmetic and logical operations are done in the temporary register but user can’t access it. Flag: It is a group of 5 flip flops used to know status of various operations done. The Flag Register along with Accumulator is called PSW or Program Status Word.
  • 30. Arithmetic and Logical Group Flag is given by : S Z - AC - P - CY S: Sign flag is set when result of an operation is negative. Z: Zero flag is set when result of an operation is 0. Ac: Auxiliary carry flag is set when there is a carry out of lower nibble or lower four bits of the operation. CY: Carry flag is set when there is carry generated by an operation. P: Parity flag is set when result contains even number of 1’s. Rest are don’t care flip flops.
  • 31. Register Group General purpose There are six general purpose registers in 8085 namely B,C,D,E,H,L These are used for various data manipulations. Special purpose: There are two special purpose registers in 8085: SP : (Stack Pointer) This is a temporary storage memory 16 bit register. Since there are only 6 general purpose registers, there is a need to reuse them PC : (Program Counter) It is 16 bit register used to point the location from which the next instruction is to be fetched. Temporary registers (W,Z): These are not available for user. These are loaded only when there is an operation being performed.
  • 32. IC 8085 Addressing modes • Immediate addressing: Immediate data is transferred to address or register. Example : MVI A,20H • Register addressing: Data is transferred from one register to other. Example : MOV A, C • Indirect addressing: Data is transferred from address pointed by the data in a register to other register or vice-versa. Example: MOV A, M • Implied addressing: These doesn’t require any operand. The data is specified in Opcode itself. Example: RAL: Rotate left with carry.
  • 33. Interrupts in 8085 • An interrupt is considered to be an emergency signal that may be serviced. The Microprocessor may respond to it as soon as possible. Interrupts can also be classified into: • Maskable Interrupts (Can be delayed or Rejected) • Non-Maskable Interrupts (Can not be delayed or Rejected) The 8085 has 5 interrupt inputs : The INTR input INTR is mask-able using the EI/DI instruction pair. RST 5.5, 6.5, 7.5 They are all mask-able. TRAP Is the only non-mask-able interrupt in the 8085
  • 34. Interrupts in 8085 The 8085 recognizes 8 RESTART instructions: RST0 - RST7 . Each of these would send the execution to a predetermined hard-wired memory location: Restart Instruction Equivalent to RST0 CALL 0000H RST1 CALL 0008H RST2 CALL 0010H RST3 CALL 0018H RST4 CALL 0020H RST5 CALL 0028H RST6 CALL 0030H RST7 CALL 0038H
  • 35. Timing and State Diagram • The µP operates with reference to clock signal. The rise and fall of the pulse of the clock gives one clock cycle. • Each clock cycle is called a T state and a collection of several T states gives a machine cycle. • Important machine cycles are : I. Op-code fetch. II. Memory read. III. Memory write. IV. I/Op-read. V. I/O write.
  • 36. Timing and State Diagram Op-code fetch cycle :
  • 37. Seven Segment Display Seven segments are electronic components that can be used to displaying alphanumeric characters, 7 LED are used (as shown in figure) and is designed from a dot-point with the size. << pin configuration of seven segment
  • 38. Seven Segment Display 7 pins of the microcontroller are used to shape the character of your LED display Microcontroller Port Relations Microcontroller with pin >> 7 Segment
  • 39. Seven Segment Display ble 1. Configuring the Character 7 Segment Data
  • 41. Software’s Used Keil Top View Express µVision Simulator PCB
  • 42. Keil µVision IDE  The µVision IDE from Keil combines project management, make facilities, source code editing, program debugging, and complete simulation in one powerful environment. The µVision development platform is easy-to-use and helping you quickly create embedded programs that work. The µVision editor and debugger are integrated in a single application that provides a seamless embedded project development environment.
  • 43.
  • 44. Top View Simulator • Topview Simulator gives an excellent simulation environment for MCS 51 Microcontroller.  A beginner can learn about 8051 based embedded solutions without any hardware. An experienced designer, you may find most of the required facilities built in the simulator that enabling  you to complete your next project without waiting for the target hardware. 
  • 45. Top View Simulator A Top View Simulator Program
  • 46. Express PCB Express PCB allows you to design schematics and PCB's. It is ideal for those that are looking to design anywhere from a two to four layer circuit board. A drop and drag design allows users to pick the components of the circuit board and drop it onto the circuit board in the software program. The designer can then place various pins in the circuit board to show where things need to be connected. It also has the ability of the program to show the designer where there are flaws in their design.
  • 47. Express PCB This way we can include resistors This way we can include different kind of IC’s
  • 48. DC Motor interfacing with Microcontrollers DC motors are always preferred over stepper motors. There are many things which we can do with our DC motor when interfaced with microcontroller. For example: • we can control the speed of motor, • we can control the direction of rotation, • we can also do encoding of the rotation made by DC motor i.e. keeping track of how many turns are made by our motors etc. Usually H-bridge is preffered way of interfacing a DC motor. L293D is most used H-Bridge driver IC.
  • 49. Working of H-Bridge The name "H-Bridge" is derived from the actual shape of the switching circuit which control the motion of the motor. It is also known as "Full Bridge". Basically there are four switching elements in the H-Bridge as shown
  • 50. Working of H-Bridge Truth Table High Left High Right Low Left Low Right Description Motor runs On Off Off On clockwise Motor runs anti- Off On On Off clockwise Motor stops or On On Off Off decelerates Motor stops or Off Off On On decelerates Truth Table For H-Bridge
  • 51. Stepper Motor Of all motors, step motor is the easiest to control. It's handling simplicity is really hard to deny - all there is to do is to bring the sequence of rectangle impulses to one input of step controller and direction information to another input. Direction information is very simple and comes down to "left" for logical one on that pin and "right" for logical zero. Motor control  is also very simple - every impulse makes the motor operating for one step and if there is no impulse the motor won't start. Pause between impulses can be shorter or longer and it defines revolution rate. This rate cannot be infinite because the motor won't be able to "catch up" with all the impulses (documentation on specific motor should contain such information)..
  • 52. Interfacing of Stepper motor with 8051
  • 53. Clock-wise Rotation of the Coils Truth table 1 2 3 4 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1

Editor's Notes

  1. Intel ’ s x86: 8086,8088,80386,80486, Pentium Motorola ’ s 680x0: 68000, 68010, 68020,68030,6040