Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Embedded Controller Hardware Design (Ken Arnold, 2001).pdf
Скачиваний:
150
Добавлен:
12.08.2013
Размер:
1.22 Mб
Скачать

2

 

CHAPTER TWO

23

Microcontroller Concepts

One way of looking at a computer system is to consider the successive “translations” that occur from the high level code (a programming language such as C++) to the electrical signals that “communicate” with the hardware. A computer system can be broken down into multiple levels or layers to show the translation of a specific instruction into a form that can be directly pro­ cessed by the computer hardware. Such hierarchical levels are discussed in detail in Structured Computer Organization by A.S. Tanenbaum. This hierarchy is shown in Figure 2-1

High Level

Sum := Sum + 1

 

Assembly

MOV BX,SUM

INC (BX)

Machine

1101010100001100 0010001101110101 1111100011001101

Register Transfer

Fetch Instruction, Increment PC, Load ALU with SUM ...

Gate

O

O

+

 

 

 

 

CK

 

Circuit

 

 

 

Figure 2-1: “Layers” of a computer system.

Language translators such as compilers and assemblers translate highlevel code into machine code that can be executed by the processor. The primary focus of this book will be from the assembly and machine language level downward.