Professional Documents
Culture Documents
Microcontrollers
Principles and Applications
+5 V
2K × 8
P2 8 bit dip
switch
8
Reset switch
Microcontroller
100E AT89S52
+5 V
+5 V 2.2K
10 uF RST P1(0-6) 7 Segment
& common anode
P3(0-6) LEDs
7×2
10K
22 pF 8
ADC
P0 0804
X1
XTAL SC
X2 P1.7
RD
22 pF Vin+
P3.7
Op-Amp
27K
+5 V
+12 V
47K 220 V
10K
D1
100K
2.2K
LM
35
1K
Heater
Microcontrollers
Microcontrollers
Principles and Applications
AJIT PAL
Professor
Department of Computer Science and Engineering
Indian Institute of Technology Kharagpur
New Delhi-110001
2011
MICROCONTROLLERS: Principles and Applications
Ajit Pal
© 2011 by PHI Learning Private Limited, New 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-4392-4
The export rights of this book are vested solely with the publisher.
Published by Asoke K. Ghosh, PHI Learning Private Limited, M-97, Connaught Circus,
New Delhi-110001 and Printed by Raj Press, New Delhi-110012.
In the Loving Memory of
My Parents
Contents
Preface xv
Acknowledgements xvii
1. INTRODUCTION 1–17
Learning Objectives 1
1.1 Historical Background 2
1.2 Microprocessors versus Microcontrollers 5
1.3 Microcontroller Features 7
1.3.1 On-chip Oscillator 7
1.3.2 Large Number of Special-purpose Registers 7
1.3.3 Harvard Architecture 8
1.3.4 On-chip Program Memory 9
1.3.5 On-chip Data Memory 9
1.3.6 On-chip I/O Ports 9
1.3.7 Watchdog-Timer Reset 10
1.3.8 Powerful Interrupt Structure 11
1.3.9 Fast Context Switching 11
1.3.10 Built-in ADC 12
1.3.11 Built-in PWM 12
1.4 Educational Need 12
1.4.1 Hardware Design 13
1.4.2 Software Design 13
1.4.3 Hardware-Software Integration 14
1.5 Survey of Microcontrollers 14
1.6 Applications of Microcontrollers 16
Summary 16
Review Questions 17
Fill in the Blanks 17
Short Questions 17
vii
viii ● Contents
30%
OFF