Top Banner
ELECTRICA L ENGINEERING Principles and Applications SECOND EDITION ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc. Chapter 8 Microcomputers Chapter 8 Microcomputers 1. Identify and describe the functional blocks of a microcomputer. 2. Select the type of memory needed for a given application.
25

Chapter 8 Microcomputers

Oct 05, 2021

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

Chapter 8 Microcomputers

1. Identify and describe the functional blocks of a microcomputer.

2. Select the type of memory needed for a given application.

Page 2: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

3. Understand how microcomputers or microcontrollers can be applied in your field of specialization.

4. Identify the internal registers and their functions for the 68HC11 microcomputer.

5. List some of the instructions and addressing modes of the 68HC11.

6. Write simple programs using the 68HC11 instruction set.

Page 3: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

An embedded computer is part of a product, such as an automobile, printer, or bread machine, that is not called a computer.

A microcomputer or microcontroller is a complete computer containing the CPU, memory, and I/O on a single silicon chip.

Page 4: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

Page 5: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

This computer, in which the instructions and data are stored in the same memory, has von Neumann architecture (also known as Princeton architecture).

Page 6: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

Page 7: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

Page 8: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

Page 9: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

MEMORY TYPES

(1)  Read-and-write memory (RAM)

(2) Read-only memory (ROM)

(3) Mass storage

Page 10: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

Selection of Memory

1. The trade-off between speed and cost

2. Whether the information is to be stored permanently or must be changed frequently

3. Whether data are to be accessed in random order or in sequence

Page 11: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

Page 12: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

Page 13: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

Page 14: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

Page 15: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

Stacks and the Stack Pointer Register

Stacks are last-in first-out memories. Information is added to (pushed onto) the top of the stack and eventually read out (pulled off) in the reverse order that it was written.

Page 16: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

Page 17: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

Page 18: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

Page 19: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

Page 20: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

ASSEMBLY-LANGUAGE PROGRAMMING

In general, Motorola assembly language statements take the form:

LABEL INSTRUCTION/DIRECTIVE OPERAND COMMENT

Directives are used to give commands to the assembler.

Page 21: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

Page 22: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

Page 23: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

Example 8.3 Machine Code for Example 8.2

Page 24: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers

Page 25: Chapter 8 Microcomputers

ELECTRICAL ENGINEERING Principles and Applications SECOND EDITION

ALLAN R. HAMBLEY ©2002 Prentice-Hall, Inc.

Chapter 8 Microcomputers