Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
TEXTBOOK_Applied_Math_-_Russian.doc
Скачиваний:
0
Добавлен:
16.02.2020
Размер:
2.31 Mб
Скачать

Structure and functions of a microcomputer

Basic Units

Figure 1 shows the structure of a simple microprocessor-based microcomputer. The microprocessor consists of three basic units, which perform the following functions: synchronization of processing events and instruction decoding (control unit); temporary storage of addresses and data (registers); arithmetic, logic and shift operations (arithmetic unit).

Program instructions and data are held in memory (RAM, ROM, PROM, EPROM, etc.) until fetched by the control unit signals. Communication to the outside world to various types of peripherals is via one or more input/output ports.

The processing events, controlled by the control unit, are triggered by a quartz crystal clock, which generates pulses at regular intervals depending on its frequency. For example, a clock with a frequency of 1 MHz (Megahertz) has a period of 1ms (microsecond). The clock logic (for driving the clock) may be on the microprocessor chip itself or external to it.

The units are linked by electrical lines, which carry electrical pulses representing memory and input/output port addresses (address bus) and data (data bus). A typical 8-bit microprocessor has a 16-line address bus for carrying 2-byte address, and an 8-bit data bus for carrying 1-byte data words. Synchronization signals for controlling the processing events are carried by control lines (control bus). The registers, arithmetic and logic unit circuits and memory devices are isolated from the buses by three-state buffers (not shown). Timing and control circuitry is used to ensure that only the device that is transmitting or receiving data is connected to the appropriate bus at any given time.

Microcomputing devices require a small power supply, typically 5v or three levels (+5v, +12v, -5v), depending on the particular devices being used.

At the beginning of a program run, the program counter is set to the address of the first instruction to be executed, subsequently it will be set to the next instruction to be executed.

Control ALU Registers

unit

timing/

control/

decoding

circuits

adder/

comparator

circuits

accumulators

Index registers

stack pointer

program counter

status flags

Microprocessor

address bus

RAM

ROM

input/

output

parts

data bus

control bus

Figure 1. Structure of a simple microcomputer.

Status flags are single-bit registers, which are set or reset automatically according to the results of arithmetic operations; they can be tested by program instructions. Typical status flags are N, Z and V, which record respectively whether the result of an arithmetic operation was negative, zero or was too large to be stored correctly (overflowed). Another flag commonly used is the carry flag (C), which records whether a carry occurred on the left of an addition or subtraction. In each case, the status flag is set to 1 if the specified condition has occurred; otherwise it is set to 0.

Accumulators are registers, which are used to store data that has been fetched from memory. Program instructions are available, which operate on data held in accumulator. One or more accumulators are available depending on the particular microprocessor being used.

Index registers are used to hold values, which can be used to modify actual memory addresses to produce effective addresses. In this way, the results of previous processing in the program run can be used to alter the sequence in which instructions are obeyed.

Part of the RAM memory of typical microprocessor-based microcomputers is reserved for stack operations. The stack is used, by means of program instructions, to store data temporarily for subsequent retrieval. The data is pushed on to the stack on byte at a time. On retrieval, the topmost byte is pulled off first, that is, the stack operates in LIFO mode (Last-In, First-Out).

Chip or bit slice-based microcomputers function in a similar way to microprocessor-based microcomputers. The essential difference is that the computer units may be made up from a number of different chips. For example, the functions of the microprocessor chip can be implemented on several chips slices to overcome the limitation of a particular microprocessor and give improved performance. This philosophy can be extended to the other computer units.

TASKS

1. Give equivalents of the following words and transcribe them

  1. synchronization (n.)

  2. programmable (adj.)

  3. access (n.)

  4. erasable (adj.)

  5. various (adj.)

  6. peripheral (n.)

  7. trigger (v.)

  8. quartz (adj.)

  9. frequency (n.)

  10. megahertz (n.)

  11. isolate (v.)

  12. buffer (n.)

  13. transmit (v.)

  14. appropriate (adj.) (v.)

  15. execute (v.)

  16. subsequent (adj.)

  17. subsequently (adv.)

  18. reset (v.)

  19. record (v.) (n.)

  20. occur (v.)

  21. accumulator (n.)

  22. available (adj.)

  23. value (n.)

  24. alter (v.)

  25. sequence (n.)

  26. retrieval (n.)

  27. push on (v.)

  28. pull off (v.)

  29. implement (v.)

  30. extend (v.)

2. Give equivalents of the following word combinations

  1. synchronization of processing events

  2. instruction decoding

  3. control unit

  4. temporary storage

  5. arithmetic operations

  6. logic operations

  7. shift operations

  8. arithmetic unit

  9. program instructions

  10. RAM (Random Access Memory)

  11. ROM (Read-Only Memory)

  12. PROM (Programmable Read-Only Memory)

  13. EPROM (Erasable Programmable Read-Only Memory)

  14. input/output ports

  15. quartz crystal clock

  16. clock logic

  17. microprocessor chip

  18. address bus

  19. data bus

  20. control bus

  21. three-state buffer

  22. power supply

  23. program counter

  24. status flag

  25. single-bit registers

  26. carry flag

  27. index register

  28. actual memory addresses

  29. effective addresses

  30. stack operations

  31. LIFO mode (Last-In, First-Out)

  32. chip or bit slice-based microcomputers

3. Under the letter c give definitions based on the text.

1) A control unit a) refers to those parts of the computer that dictate the functions

to be performed by all other parts.

b) is a device for causing the machine to perform the desired

operations in the correct order.

c)

2) An arithmetic unit a) is that part of the computer which can carry out

arithmetic operations.

b) is a device for performing calculations.

c)

4. Complete the definitions

  1. Registers (memory cells) are groups of memory elements used for _____ .

  2. Input/output ports are devices used for________ .

  3. A quartz crystal clock is a device used to trigger_____ .

  4. A clock logic is a device which _______ .

  5. An address bus represents _________ .

  6. A data bus represents _________ .

  7. A control bus refers to __________ which synchronize _________ .

  8. Three-state buffers are devices used to isolate ___________ .

  9. Timing and control circuits are used to ensure ____________ .

10. Status flags are ___________ .

11. A carry flag records ______ .

12. Accumulators are registers used ________ .

13. Index registers are registers for holding ___________ .

14. A stack is a device used ________ .

5. Read and translate the text.

TEXT 2

STRUCTURE AND FUNCTIONS OF A MICROCOMPUTER

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]