本书是在消化和吸收国外优秀原版教材、参照国内优秀教材的基础上,结合作者多年的双语教学实践编写而成的双语教材。本书以培养学生应用能力和外语沟通能力为主线,在总结微机基本原理和技术特点的基础上,按照“原理与应用相结合、理论与实践相结合”的原则,通过应用实例分析,力争外语表达原滋原味,并达到知识体系清晰、结构层次合理、内容实用易懂。
全书共8章,主要阐述微型计算机工作原理、Intel系列8086/8088微处理器结构、指令系统、汇编语言程序设计、微型计算机存储器接口技术、输入输出和中断技术,以及微机技术在工程中的应用,包括常用可编程数字接口电路、模拟量的输入输出接口技术等。各章给出了学习导读、关键词、典型实践指导和典型设计开发案例,同时配备难点句子解释,提供了与教学内容紧密结合的思考题与习题等。
本书适合作为高等院校电子信息类(非计算机专业)或其他工科类专业学生相关课程的双语教材,尤其适合复合型应用人才的培养,也可作为相关技术人员或微机爱好者的参考书。
Chapter 1 MICROPROCESSOR-BASED SYSTEMS 1
OBJECTIVES 1
KEY TERMS 1
1.1 Introduction 3
1.2 History of Microcomputer 4
1.3 System of Microcomputer 7
1.4 Microprocessor Operation 11
1.5 Number System & Its Conversion 12
1.5.1 Number System 12
1.5.2 Number Conversion 15
1.5.3 Operation of Binary 19
1.6 Data Formats In Microcomputers 21
1.6.1 Integer Data 21
1.6.2 Floating-point Arithmetic 24
1.6.3 ASCII 25
1.6.4 BCD (Binary Coded Decimd) Code 26
SUMMARY 27
NOTE 28
STUDY QUESTIONS 29
Chapter 2 8086 MICROPROCESSOR ARCHITECTURE 31
OBJECTIVES 31
KEY TERMS 31
2.1 Introduction 33
2.2 Architecture of 8086 Microprocessor 33
2.3 8086 CPU Registers 37
2.3.1 Registers in EU 37
2.3.2 Registers in BIU 40
2.3.3 Flags Register 41
2.4 8086 Pins and Functions 44
2.4.1 8086 Pins 44
2.4.2 Pin Functions of 8086 CPU in Min-mode 47
2.5 8086 Memory Organization 53
2.5.1 Formation of Physical Address 53
2.5.2 Memory Segmentation 55
2.5.3 Hardware Organization of the Memory Address Space 57
2.5.4 Stack 60
2.6 8086 Memory and I/O Operation Cycles 64
2.6.1 Bus Cycle and Timing for 8086 Memory or I/O 64
2.6.2 8086 CPU Read/Write Bus Cycle in the Min-mode 64
SUMMARY 66
NOTE 67
STUDY QUESTIONS 68
Chapter 3 INSTRUCTION SYSTEM 70
OBJECTIVES 70
KEY TERMS 70
3.1 Addressing Modes 71
3.1.1 Register Addressing 72
3.1.2 Immediate Addressing 73
3.1.3 Memory Addressing 75
3.1.4 Other Addressing Modes 85
3.2 Instruction Form and Code 86
3.3 Instruction Set 92
3.3.1 Data Transfer Instruction 93
3.3.2 Arithmetical Operation Instructions 100
3.3.3 Logical Operations and Shift Instructions 104
3.3.4 String Instructions 109
3.3.5 Control Instructions 112
3.4 Trouble Shooting Techniques 117
SUMMARY 118
NOTE 118
STUDY QUESTIONS 119
Chapter 4 ASSEMBLY LANGUAGE AND PROGRAMMING 123
OBJECTIVES 123
KEY TERMS 123
4.1 Introduction 124
4.2 Assembly Language Format 125
4.3 Statement in Assembly Language 127
4.3.1 Instructions Format 127
4.3.2 Directives Format 130
4.4 Directive Statement 132
4.4.1 Symbolic Definition 132
4.4.2 Variable Definition 134
4.4.3 Segment-Control Directives 135
4.4.4 Modular Programming Directives 137
4.4.5 Directives for Memory Usage Control 139
4.4.6 The end-of-Program Directive 139
4.5 Other Data-Related Operators and Directives 140
4.5.1 Offset Operator 140
4.5.2 Ptr Operator 141
4.5.3 Type Operator 142
4.5.4 Length of Operator 142
4.5.5 Sizeof Operator 143
4.5.6 Label 143
4.6 Programming 144
4.6.1 Fundamental Programming Constructs 145
4.6.2 Assembler Usage 147
4.6.3 Debug Program 149
4.6.4 Interrupt Calls 150
4.6.5 DOS Function Calls 153
4.7 Samples and Examples of Programming 159
4.7.1 Computational Routines 159
4.7.2 Number Conversions 164
4.7.3 String Operations 167
4.7.4 Items Sorting 169
4.7.5 Using Macros 171
4.8 Trouble Shooting Techniques 173
SUMMARY 175
NOTE 176
STUDY QUESTIONS 176
Chapter 5 MEMORY AND MEMORY INTERFACE 178
OBJECTIVES 178
KEY TERMS 178
5.1 Introduction 179
5.2 Memory Review 180
5.2.1 Internal Memory Devices 180
5.2.2 External Memory Devices 182
5.2.3 Summary of ROM and RAM in Characteristics 185
5.3 Architecture of Semiconductor Memory 186
5.3.1 Architecture of Memory Cell 186
5.3.2 Architecture of RAM 189
5.3.3 Architecture of ROM 196
5.4 Memory Interface and Application 198
5.4.1 The Memory Selection 198
5.4.2 Memory Accessing 201
5.4.3 Memory Address Decoder 203
5.4.4 Comprehensive Applications of Memory 212
5.5 Cache Memory 218
SUMMARY 220
NOTE 221
STUDY QUESTIONS 222
Chapter 6 BASIC INPUT AND OUTPUT INTERFACE 225
OBJECTIVES 225
KEY TERMS 225
6.1 Introduction 226
6.2 Functions of I/O Interface 227
6.2.1 Necessity of I/O Interface 227
6.2.2 Functions of Interface Circuits 228
6.3 Basic I/O Interface Chips 228
6.3.1 Buffered Input Port 228
6.3.2 Latched Output Port 231
6.4 Basic I/O Port Operation 233
6.4.1 I/O Port Address Mode 233
6.4.2 Handshaking Synchronization of I/O Interface 236
6.4.3 Basic I/O Instructions 238
6.5 Data Transfer Formats Between CPU and Peripherals 239
6.5.1 Polling Routine Mode 240
6.5.2 Interrupt Mode 241
6.5.3 DMA Mode 242
6.6 Applications of Basic I/O Interface 244
6.6.1 The binary counter 244
6.6.2 Sine wave generator 245
6.6.3 Traffic Light-Port 4 247
6.6.4 Stepper Motor-Port 7 248
6.6.5 Robot-port 9 249
SUMMARY 251
NOTE 252
STUDY QUESTION 253
Chapter 7 THE PROGRAMMABLE INTERFACE AND APPLICATION 254
OBJECTIVES 254
KEY TERMS 254
7.1 The 8255 Parallel Data Transfer Interface 255
7.1.1 Interfacing the 8255 255
7.1.2 Programming the 8255 256
7.1.3 8255 Applications 259
7.2 The 8251 Serial Data Transfer Interface 262
7.2.1 Interfacing the 8251 263
7.2.2 Programming the 8251 264
7.2.3 8251 Applications 268
7.3 The 8259 Programmable Interrupt Controller 270
7.3.1 Hardware interrupts 270
7.3.2 The 8259 and its interfacing 272
7.3.3 Programming the 8259 274
7.4 The 8254 Programmable Interval Timer 280
7.4.1 Interfacing the 8254 281
7.4.2 Programming the 8254 282
SUMMARY 284
STUDY QUESTION 284
Chapter 8 PRACTICAL APPLICATIONS AND COMPREHENSIVE CASES 286
OBJECTIVES 286
KEY TERMS 286
8.1 Practice Application Description 287
8.2 Comprehensive Cases and Application Analysis 288
8.2.1 Thermal Resistance Measurement 288
8.2.2 Bridge Circuit for Dispacement Transducer 292
8.2.3 DC Motor Control 296
8.2.4 Stepper Motor Control 300
8.2.5 Electronic Clock 305
8.2.6 Simulation Control of Traffic Lights 314
8.2.7 Home Fan Controller Design 323
8.2.8 Electronic Password-lock Design 332
8.2.9 The Control System of Automobile Light 334
8.2.10 Music Player 341
SUMMARY 346