Vous êtes sur la page 1sur 2

Name: MALUISA PENA Week 1 Homework ECET 330 1- What are the three main components of a CPU?

ALU (Arithmetic Logic Unit) Control and Decoding Unit Registers

2- What are the names of the three buses associated with microprocessors? Control bus Address bus Data bus

3- Why must the data bus be bidirectional? Because the same bus is used for data transmission from the microprocessor, the memory and the I/O devices and vice versa.

4- What is the function of the CPU? It has several functions: Fetch (Read one instruction from memory) Decode (Figure out what that instruction says) Execute (Perform the operation specified in the instruction) Go back to step 1 (Repeat the above steps)

5- What is a microprocessor? It is CPU design implemented on a single chip (IC)

6- Which part of the CPU sends timing and control signals to other units? The control unit sends timing and control signals to the other units.

7- What is the function of the PC register inside a CPU? It is a storage location inside the CPU. It holds the address instruction that the CPU should fetch.

8- The simple animation of lecure-1 has a machine code inside the memory to add two numbers and saves the result. Modify this machine code to add three numbers together and save the result. Assume these numbers are stored in locations 20, 21 and 22. Store the result in location 23. 10010100 00010101 00010110 10110111 11100000

9- Write the modified machine code you wrote for problem-8 in assembly language. LOD ADD ADD STR HLT TWENTY TWENTY_ONE TWENTY_TWO TWENTY_THREE ZERO

10- Can the control unit hardware of an Intel microprocessor decode the machine language for a HC12 microcontroller? NO

Vous aimerez peut-être aussi