introduction to micro processor introduction to micro processor microprocessor instruction and...

11

Upload: blaise-wilson

Post on 14-Dec-2015

236 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction to Micro processor Introduction to Micro processor  Microprocessor instruction and opcodes Microprocessor instruction and opcodes  Mnemonics
Page 2: Introduction to Micro processor Introduction to Micro processor  Microprocessor instruction and opcodes Microprocessor instruction and opcodes  Mnemonics

Introduction to Micro processor Microprocessor instruction and opcodes Mnemonics

Page 3: Introduction to Micro processor Introduction to Micro processor  Microprocessor instruction and opcodes Microprocessor instruction and opcodes  Mnemonics

OBJECTIVES Understand what a microprocessor is, what it does, and

how it works. Understand the concepts of RAM and ROM computer

memory and how memory is accessed via the address and data buses.

Understand how parallel and serial data interfaces work. Perform relevant calculations pertaining to analog-to-

digital converters and digital-to-analog converters. Understand the principles of digital controller software. Recognize and describe the characteristics of the various

types of available digital controllers, that is, microcontrollers, single-board computers, programmable logic controllers, and personal computers.

Page 4: Introduction to Micro processor Introduction to Micro processor  Microprocessor instruction and opcodes Microprocessor instruction and opcodes  Mnemonics

Microprocessors ushered in a whole new era for control systems electronics.

Microprocessors require additional components to be useful – RAM, ROM, etc.

BACK

Page 5: Introduction to Micro processor Introduction to Micro processor  Microprocessor instruction and opcodes Microprocessor instruction and opcodes  Mnemonics

A computer is made up of four basic blocks:◦ Central Processing Unit (CPU)

Does the actual computing. Arithmetic Unit – performs math and

logic Control: Manages flow of data

◦ Memory – Data is contained in memory locations at specified addresses. RAM – volatile, read/write memory ROM – nonvolatile, read only EPROM/EEPROM/Flash – Erasable ROM

Page 6: Introduction to Micro processor Introduction to Micro processor  Microprocessor instruction and opcodes Microprocessor instruction and opcodes  Mnemonics

Input/Output ports: Used for connections to devices.

Busing:◦ Devices are multiplexed using 3 major buses:

Address Bus – To specify the device or memory location to communicate with.

Data Bus – To transfer data between the CPU and device.

Control Bus – Timing and event control, such as read and write operations.

Page 7: Introduction to Micro processor Introduction to Micro processor  Microprocessor instruction and opcodes Microprocessor instruction and opcodes  Mnemonics
Page 8: Introduction to Micro processor Introduction to Micro processor  Microprocessor instruction and opcodes Microprocessor instruction and opcodes  Mnemonics

Each processor has its own instruction set of commands to control its operation.◦ Move data◦ Perform math operations◦ Perform logical operations

Each instruction has a unique Op-code, a binary value associated to it.01001101 or 4Dh.

An Accumulator is staging area for data – data is moved into it, and operations are performed on that data.

BACK

Page 9: Introduction to Micro processor Introduction to Micro processor  Microprocessor instruction and opcodes Microprocessor instruction and opcodes  Mnemonics

Machine Code◦ The program the CPU follows represented in binary or hex.

Mnemonics ◦ Abbreviations representing an op-code. Programs written

in assembly language use mnemonics. Program counter

◦ Used to point to the memory address of the instruction to be performed.

Fetch-execute cycles◦ Performed to bring an instruction into memory and execute

it.

BACK

Page 10: Introduction to Micro processor Introduction to Micro processor  Microprocessor instruction and opcodes Microprocessor instruction and opcodes  Mnemonics
Page 11: Introduction to Micro processor Introduction to Micro processor  Microprocessor instruction and opcodes Microprocessor instruction and opcodes  Mnemonics