08.01.2013 Views

Introduction to Microcontrollers

Introduction to Microcontrollers

Introduction to Microcontrollers

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 2<br />

Microcontroller Components<br />

2.1 Processor Core<br />

The processor core (CPU) is the main part of any microcontroller. It is often taken from an existing<br />

processor, e.g. the MC68306 microcontroller from Mo<strong>to</strong>rola contains a 68000 CPU. You should already<br />

be familiar with the material in this section from other courses, so we will briefly repeat the<br />

most important things but will not go in<strong>to</strong> details. An informative book about computer architecture<br />

is [HP90] or one of its successors.<br />

2.1.1 Architecture<br />

<strong>to</strong>/from<br />

Program<br />

Memory<br />

<strong>to</strong>/from<br />

Data<br />

Memory<br />

CPU<br />

dst<br />

PC<br />

Instruction Register<br />

Control<br />

Unit<br />

R0 src2<br />

R1<br />

R2<br />

R3<br />

Register<br />

File<br />

SP<br />

src1<br />

OP<br />

Status(CC) Reg<br />

Z N O C<br />

Flags<br />

ALU<br />

Result<br />

Figure 2.1: Basic CPU architecture.<br />

Data path<br />

A basic CPU architecture is depicted in Figure 2.1. It consists of the data path, which executes<br />

instructions, and of the control unit, which basically tells the data path what <strong>to</strong> do.<br />

11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!