Skip to Main Content
8051 Microcontroller (Internals, Instructions, Programming and Interfacing)
book

8051 Microcontroller (Internals, Instructions, Programming and Interfacing)

by Subrata Ghosal
May 2024
Intermediate to advanced content levelIntermediate to advanced
503 pages
17h 2m
English
Pearson India
Content preview from 8051 Microcontroller (Internals, Instructions, Programming and Interfacing)
309
Problem
Develop the hardware interface and then develop a subroutine to rotate the interfaced stepper motor as per
the content of bit 0 of bit-addressable area of internal RAM of 8051. If the bit is set, then the motor should
rotate clockwise, and if the bit is cleared then the motor should rotate anticlockwise.
Solution
Fig. 22.10 shows the necessary hardware for interfacing the stepper motor with 8051, using transistors, controlled by
P1.0 through P1.3. We assume that the interfacing is such, so that the sequence presented in Table 22.1 is applicable.
e following routine is an infi nite loop and continuously checks the bit of address 00H ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

8051 Microcontroller, Internals, Instructions, Programming and Interfacing, 2nd Edition

8051 Microcontroller, Internals, Instructions, Programming and Interfacing, 2nd Edition

Subrata Ghoshal

Publisher Resources

ISBN: 9781282655034Publisher Website