VTech Alphabert s Magic Readport User Manual Page 64

  • Download
  • Add to my manuals
  • Print
  • Page
    / 80
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 63
Lab Manual of Microcontroller & Interfacing Page 64
B. Consider that switch SW1 and SW2 shown in the circuit are two limit switches are
connected at external interrupt pins P3.2 and P3.3. Write a program so that when switch
SW1 is pressed, stepper motor rotates clockwise and when switch SW2 pressed, stepper
motor rotates anticlockwise.
(Hint: Use external interrupt vector location. Prepare clockwise routine and call it at
location 03h. Prepare anticlockwise routine and call it at vector location 13h. Enable
external interrupt bits in IE SFR)
Memory
Location
HEX
code
Label Opcode Operands Comments
Page view 63
1 2 ... 59 60 61 62 63 64 65 66 67 68 69 ... 79 80

Comments to this Manuals

No comments