Professional Documents
Culture Documents
01 MicroControllers
01 MicroControllers
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
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
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