Professional Documents
Culture Documents
Microcontrollers
Sunil Mathur
Jeebananda Panda
MICROPROCESSORS AND MICROCONTROLLERS
MICROPROCESSORS AND
MICROCONTROLLERS
SUNIL MATHUR
Associate Professor
Department of Electronics and Communication Engineering
Maharaja Agrasen Institute of Technology
Guru Gobind Singh Indraprastha University, Delhi
JEEBANANDA PANDA
Associate Professor
Department of Electronics and Communication Engineering
Delhi Technological University, Delhi
Delhi-110092
2016
MICROPROCESSORS AND MICROCONTROLLERS
Sunil Mathur and Jeebananda Panda
© 2016 by PHI Learning Private Limited, Delhi. All rights reserved. No part of this book may be
reproduced in any form, by mimeograph or any other means, without permission in writing from
the publisher.
ISBN-978-81-203-5231-5
The export rights of this book are vested solely with the publisher.
Published by Asoke K. Ghosh, PHI Learning Private Limited, Rimjhim House, 111, Patparganj
Industrial Estate, Delhi-110092 and Printed by Mohan Makhijani at Rekha Printers Private Limited,
New Delhi-110020.
To
Knowledge Seekers
Contents
Preface xxi
Acknowledgements xxiii
PART 1
1. Architecture and Organization of Microprocessor 8085 3
1.1 Introduction 3
1.2 Evolution of Microprocessor 3
1.3 Microcomputer System 6
1.3.1 Arithmetic and Logic Unit 7
1.3.2 Register Unit 7
1.3.3 Control Unit 7
1.3.4 Memory 7
1.3.4 System Bus 7
1.4 Microprocessor Operations 8
1.4.1 Microprocessor Initiated Operations 8
1.4.2 Internal Data Operations 9
1.4.3 Peripheral or Externally Initiated Operations 10
1.5 Functional Description of 8085 11
1.6 Internal Architecture of 8085 12
1.6.1 Register Unit 12
1.6.2 Control Unit 15
1.6.3 Arithmetic and Logical Unit 15
1.7 System Bus of 8085 17
1.8 Pin Description of 8085 18
1.8.1 Group 1: Power Supply and Frequency Signals 19
1.8.2 Group 2: A8–A15, Higher Order Address Bus (Output) 19
1.8.3 Group 3: AD0–AD7, Multiplexed Address/Data Bus 19
1.8.4 Group 4: Control and Status Signal 19
vii
viii Contents
PART 2
6. Introduction to 8086 177
6.1 Introduction 177
6.2 The 8086 Microprocessor 177
6.2.1 Bus Interface Unit (BIU) 179
6.2.2 Execution Unit 181
6.3 PIN Configuration of 8086 184
6.3.1 Pin Details of 8086—Common to Both Minimum and
Maximum Mode 185
6.3.2 Pin Details of 8086—(Minimum Mode) 186
6.3.3 Pin Details of 8086 S—(Maximum Mode) 187
6.4 Memory Organization of 8086 189
6.5 Microprocessor 8088 191
Exercises 193
PART 3
11. IO and Memory Interfacing 349
11.1 Introduction 349
11.2 IO Devices and Their Interfacing 349
11.3 Interfacing of IO Devices with Microprocessor 350
11.4 Interfacing of Input Device 351
11.5 Interfacing of Output Device 353
11.6 Basic Concepts in Memory Interfacing 360
11.6.1 Address Decoding 360
11.6.2 Address Decoding Techniques 362
11.7 Memory Organization of Microprocessor 8086 366
11.7.1 Interfacing of Memory with 8086 in Minimum Mode 367
11.7.2 Memory Interfacing with 8086 in Maximum-mode 368
11.8 Interfacing of ROM with 8086 371
Exercises 374
13. Programmable Interval Timer and Interfacing with 8085 and 8086 440
13.1 Introduction 440
13.2 Functional Block Diagram of 8253/54 440
13.3 PIN Configuration of 8253/54 442
13.3.1 Pin Description of 8253/54 442
13.4 Programming the 8253/54 444
13.4.1 Control Word Format 444
13.5 Write Operations 444
13.6 Read Operations 446
13.6.1 Simple Read/Write Operations for the Desired Counter
(Common for 8253 and 8254) 446
13.6.2 Counter Latch Command (Common for 8253 and 8254) 446
13.6.3 Read Back Command (only for 8254) 447
13.7 Modes of Operations 449
13.7.1 Mode 0: Interrupt on Terminal Count 449
13.7.2 Mode 1: Hardware Retriggerable One-Shot 451
13.7.3 Mode 2: Rate Generator 452
13.7.4 Mode 3: Square Wave Mode 452
13.7.5 Mode 4: Software Triggered Mode 453
xiv Contents
25%
OFF