USE OF MICROPROCESSORS FOR 
SEQUENCING
MICROPROCESSORS 
CONSTRUCTION 
• Power supply 
• Microprocessors 
• Memory 
• Input-output 
• Bus
PROGRAMMING THE 
MICROPROCESSOR 
• Low –level language programming 
(OR) 
• High –level language programming
Low –level language programming 
• Hexadecimal number system used for this. 
• Hexadecimal number is to a base of 16. 
• The digits from 1to9 and A,B,C,D,E,F. assembly 
language is a symbolic from of machine code. 
Machine code Assembly language Explanation 
3E LDA n Load accumulator A 
with data n 
18 JR, DIS Jump relative 
CD CALL nn Call subroutine at 
address nn
EXAMPLE
PROGRAMMING 
• STEP1 :Define the sequence of operation 
• Provide a signal of +5v from bit 1 of port A 
piston rod is out. 
• Piston rod is extended by reading the signal 
from the limit switch at bit 0 of port b. 
• Clear the signal from port a to de- energies 
the solenoid and retract the cylinder.
PROGRAMMING
PROGRAMMING 
• Step3 : write a assembly program 
Assembly language COMMENTS 
LDA, 0F Load accumulator with 0F 
LDA, FF Load accumulator A with CF 
OUT(80),A Provide a signal of +5v and energies 
the solenoid 
IN A (82) Part B is loaded into the accumulator 
A 
OUT(80),A Load port A with content of A this 
switches the solenoid off retracts the 
piston rod.
PROGRAMMING 
• STEP 4: Convert Into Machine Code 
Address of memory Machine Code Assembly Language 
3000 3E LDA, 0F 
3004 3E LDA, FF 
300A D3 OUT(80),A 
3010 DB IN A (82)
THANK YOU

Dfp2

  • 1.
    USE OF MICROPROCESSORSFOR SEQUENCING
  • 2.
    MICROPROCESSORS CONSTRUCTION •Power supply • Microprocessors • Memory • Input-output • Bus
  • 3.
    PROGRAMMING THE MICROPROCESSOR • Low –level language programming (OR) • High –level language programming
  • 4.
    Low –level languageprogramming • Hexadecimal number system used for this. • Hexadecimal number is to a base of 16. • The digits from 1to9 and A,B,C,D,E,F. assembly language is a symbolic from of machine code. Machine code Assembly language Explanation 3E LDA n Load accumulator A with data n 18 JR, DIS Jump relative CD CALL nn Call subroutine at address nn
  • 5.
  • 6.
    PROGRAMMING • STEP1:Define the sequence of operation • Provide a signal of +5v from bit 1 of port A piston rod is out. • Piston rod is extended by reading the signal from the limit switch at bit 0 of port b. • Clear the signal from port a to de- energies the solenoid and retract the cylinder.
  • 7.
  • 8.
    PROGRAMMING • Step3: write a assembly program Assembly language COMMENTS LDA, 0F Load accumulator with 0F LDA, FF Load accumulator A with CF OUT(80),A Provide a signal of +5v and energies the solenoid IN A (82) Part B is loaded into the accumulator A OUT(80),A Load port A with content of A this switches the solenoid off retracts the piston rod.
  • 9.
    PROGRAMMING • STEP4: Convert Into Machine Code Address of memory Machine Code Assembly Language 3000 3E LDA, 0F 3004 3E LDA, FF 300A D3 OUT(80),A 3010 DB IN A (82)
  • 10.