1 / 16

Microprocessor and Microcontroller Based Systems

بسم الله الرحمن الرحيم. The Islamic University of Gaza Faculty of Engineering Electrical Engineering Department. Microprocessor and Microcontroller Based Systems. EELE 4315 — Fall 2010. Instructor: Eng.Moayed N. EL Mobaied. Lecture 2.

vangie
Download Presentation

Microprocessor and Microcontroller Based Systems

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. بسم الله الرحمن الرحيم The Islamic University of Gaza Faculty of Engineering Electrical Engineering Department Microprocessor and Microcontroller Based Systems EELE 4315 — Fall 2010 Instructor: Eng.Moayed N. EL Mobaied Lecture 2

  2. Basic Computer Architecture • Every Computer system is designed around the same three basic circuits: • Central processing unit (CPU). • Memory: Data memory and Program Memory. • Input/output ports (I/O).

  3. Basic Computer Architecture • The various circuits inside a typical computer are connected to one another through three sets of electrically conductive paths called busses traced on a printed circuit board. • Data bus, which carries data to and from the CPU • Address bus, which carries addresses out from the CPU • Control bus, which carries coordinating signals among the various circuits.

  4. CPU • The CPU, or so called microprocessor, is the brain of a computer. • It performs all the arithmetic operations in the computer, • does all the logic, and directs all the input and output. • Major components of the CPU are: • Registers. • Control unit. • Arithmetic and logic unit (ALU). ALU : Computation or processing of data. • Control unit: • Movement of data and instructions into and out of • the CPU and controls the operation of the ALU.

  5. Memory • The memory is used to hold: • User data. • Programs. • It is composed of cells each of which contains a bit of information. • Bits are organization sets called memory locations or words, • each of which is assigned a unique sequentially numbered address.

  6. Memory A memory containing 2n words has n address lines. The size of word determines the size of the data bus of the memory. Therefore the size of the memory is determined by two parameters: the word width and the number of words.

  7. Memory Usually each memory location is eight-bits wide referred to as a byte. In theses respects one may imagine a memory as a building consisting of floors (bytes) each of which has eight rooms (bits). The 8086/8088 is a 16-bit processor, which means, among other things, that it is capable of processing memory 16 bits (or 2 bytes) at a time.

  8. Memory When a computer is designed to process 2 or more bytes as a unit, that unit of memory is Known as word.

  9. Execution Instruction in Computer A computer is a machine that can solve problems by carrying instructions given to it. A sequence of instructions describing how to perform a certain task is called a program. While programs are written in different computer languages, they should be converted to the machine language before being executed. The machine language is the computer primitive instructions consisting of zeros and ones.

  10. Execution Instruction in Computer CPU is prepared to read an instruction or a byte of data from memory. The address of that instruction or that byte of data on the address bus. Signals its intent to read by putting out an ''active" signal on the memory READ line in the control bus. Memory responds by putting the contents of the addressed byte onto the data bus, and the CPU reads the data bus.

  11. Execution Instruction in Computer When the CPU is prepared to write a byte of data to memory: Puts the address of the byte to be written on the address bus, Puts the contents of the byte on the data bus, Sends out a signal on the memory WRITE line of the control bus. Memory responds by recording the contents of the data bus at the memory location specified by the address bus.

  12. Execution Instruction in Computer In many cases, the CPU is faster than the memory; therefore a READY signal is used to stretch the memory cycle time. The CPU initiates a memory transaction, and then freezes until the READY indicates that it is safe to continue.

  13. Execution Instruction in Computer The instruction pointer Instruction Pointer register (IP) holds the address of the instruction to be executed. The basic instruction processing cycle begins with a memory fetch or read in which the instruction machine code is loaded in a special register of the CPU called instruction register (IR). The instruction decoder in the control unit generates the hardware signals that insure the execution of the instruction. For example, if the instruction is to decrement the accumulator register AX in the Intel family then it is expressed in assembly language as dec AX which has a machine language of 48h. The instruction decoder circuit generates a hardware signal that causes the accumulator register to decrement by one.

  14. Execution Instruction in Computer In summery, the IP points to the instruction to be executed. This instruction is fetched, and executed. Execution of some instructions may generate memory read or write cycles. After processing an instruction the instruction pointer is updated to point to the next instruction to be processed.

  15. Execution Instruction in Computer

  16. Input/Output • Computers use peripheral devices for two major purposes: • Communications with the outside world • Storage of information. • keyboards, video monitors, printers, modems, and disk drivers.

More Related