Chapter 2 Introduction To Microprocessor
Chapter 2 Introduction To Microprocessor
INTRODUCTION TO MICROPROCESSOR
Registers section:
These internal registers serve as temporary data storage, before, in progress and after the process done by ALU. Data transfer within these registers is much faster as compared to the memory. This section contains various registers (inside the MPU), each of which performs a special function. These registers are: general purpose registers array, accumulator, instruction register, program counter, and flag register.
Devices that are readily connected to the computer will be reset to a standby mode. System programs from permanent storage will be transferred to the RAM.
System program will display instructions to guide the user to proceed accordingly
START
1)
Microprocessor fetch instruction representing the signal carried by the address bus.
Execute Instruction
2)
No
Is it a HALT instruction?
Yes STOP
Example
a.) Add two data which are stored in memory at address 0001 and 0002. b.) Store the result in the memory at address 0003. Show the above process in terms of fetch and execute cycles.
solution
Within the fetch cycle, there are two operations or sub-cycles, i.e. Read and write. READ CYCLE CPU sends a signal via control bus. If the bus is busy, CPU is put on Wait state. If the bus is free, CPU will place instruction address on the address bus. This address will be decoded or translated by the circuitry in the memory or I/O interface. Finally the data at that specific address is obtained, and is placed on the data bus.
READ CYCLE
Data at location 05H is placed onto the data bus and read by microprocessor
Data to CPU 00011000
00000101
00011000
RD WR
WRITE CYCLE
Write cycle enables CPU sends data to the memory or I/O devices. CPU will send a signal (request to write) to the control bus. If the data bus is free, the data is placed on the data bus, whereas the location address will be placed on the address bus. CPU will then send the data to the destination with respect to the address.
WRITE CYCLE
8 bits
select
00100000
RD WR
INTEL 4004,4 Bit,2000 Transistor, 108 KHZ 8008, 8bit 8080, 8 bit 8085, 8 bit 8086, 16 bit, 29000 trqansistor, 2 MHz 8088, 8 bit tetapi strktur dalaman sama dengan 8086 80286, 32 bit, 275 000 transistor, 16-20 MHz
MOTOROLA
68020, bas data dan alamat 32 bit 80386, 32 bit, 1.2 juta transistor, 25-66 MHZ 80486, 32 bit, 1.2 juta transistor, 25-66 MHz Pentium, 4 bit, 3.1 juta transistor, 60-166 MHZ 68060, 16 bit Pentium Overdrive & Pentium Pro150, 166, 180 dan 200 MHz Pentium II, 300 MHz, 7.5 juta transistor Intel Celeron Pentium III pada 800Eb Mhz, 866 Mhz, 933 Mhz, 1B Ghz dan 1.13 Ghz 68040
2000
The working element of a microprocessor is the internal registers, where raw data and addresses to be stored, moved around and transferred to be processed in the ALU. The MC68000 is an internal 32-bit processor, meaning that each register has 32 bits and the processor can perform arithmetic and logic operations on 32-bit operands.
DATA REGISTER
8 data registers namely D0 D7 Used to hold data temporarily for the use in processing. Each registers can be accessed for byte operands (0-7), word operands (0-15 bits) or long-word operands (0-31 bits). Function:
Used to store information within the 68k microprocessor itself.
ADDRESS REGISTER
A0 - A7 Address register are not provided for storage of data for processing. Instead, they are meant to store address information Although every registers contain 32 bits, only the lower 24 bits are used to access memory. Therefore, the address range is 224 (16M) byte. Function:
Used to store the location where data can be founded outside the processor. Ex: external memory chip. A7 usually is used to execute subroutine.
Function:
Hold the memory address of the next instruction to be executed.
Mc68000 features
32 bit data and address registers 16 bit data bus 24 bit address bus 14 addressing modes Memory-mapped input-output Program counter 56 instructions 5 main data types
Clock speeds : 4 MHz to 12.5 MHz 7 interrupt levels synchronous and asynchronous data transfer
What are the two major microprocessor manufacturers? How many data registers are in the MC68000? How many address registers are in the MC68000? What is the size of data registers in MC68000? What is the total number of data bus lines in MC68000? What is the total number of address bus lines in MC68000?
TUTORIAL