Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

11/11/2018

TIA-203
Mekatronika

Week 7:
Microcontroller

© 2018/2019
Fahmi Arif

1
11/11/2018

Microprocessor
• A single, very-large-scale-integration (VLSI) chip that contains
many digital circuits that perform arithmetic, logic,
communication, and control function.
• Also call CPU (Central Processing Unit) or MPU (Micro Processor
Unit)
• Consists of several components such as:
• registers – provides storage internal to the CPU
• arithmetic and logic unit (ALU) – perform data processing function
• control unit – control the operation of CPU
• internal CPU interconnection – provides communication among
ALU, registers and control unit

control the
The CPU operation of CPU

internal CPU
interconnection
– provides
communication
among ALU,
registers and
control unit

registers – provides arithmetic and logic unit


storage internal to the (ALU) – perform data
CPU processing function

2
11/11/2018

The CPU
• Processor (CPU): the active part of the computer that does
all the work (data manipulation and decision-making)
• Datapath: portion of the processor that contains hardware
necessary to perform operations required by the processor
(the brawn)
• Control: portion of the processor (also in hardware) that
tells the datapath what needs to be done (the brain)

The CPU
• The arithmetic logic unit (ALU) within the CPU executes
mathematical functions on data structured as binary words.
• A word is an ordered set of bits, usually 8, 16, 32, or 64 bits
long.
• The instruction decoder interprets instructions
fetched sequentially from memory by the control unit and
stored in the instruction register.
• Each instruction is a set of coded bits that commands the
ALU to perform bit manipulation, such as binary addition
and logic functions, on words stored in the CPU data
registers.
• The ALU results are also stored in data registers and then
transferred to memory by the control unit.

3
11/11/2018

Generic Steps of Datapath

1. Instruction 2. Decode/ 3. Execute 4. Memory 5. Register


Fetch Register Write
Read

Microcontroller
• Integrated Circuit containing specialized circuits and
functions that are applicable to mechatronic system design
• It contains a microprocessor (the CPU), memory, I/O
capabilities, and other on-chip resources.
• It is basically a microcomputer on a single IC

4
11/11/2018

Microcontroller

Example of Microcontroller
ARDUINO
1. USB connector
2. Power connector
3. Automatic power
switch
4. Digital pins
5. Analog pins
6. Power pins
7. Reset switch

5
11/11/2018

Mechatronic System Using


Arduino #1

Sistem Parkir Otomatis

Mechatronic System Using


Arduino #2

Sistem Pemantauan Temperatur

You might also like