Microcontrollers Minimum Computational System: Competence 1
Microcontrollers Minimum Computational System: Competence 1
Microcontrollers Minimum Computational System: Competence 1
MICROCONTROLLERS
MINIMUM COMPUTATIONAL SYSTEM
WHAT IS A DIGITAL COMPUTER?
The digital computer is a combination of digital circuits and devices which
execute a sequence of operations programmed without human intervention.
TASKS OF A DIGITAL COMPUTER
Acquire information
Data processing
Provide information
WHAT IS A PROGRAM?
A program is a step-by-step set of instructions.
MAIN COMPONENTS OF A COMPUTER
BASIC ELEMENTS OF A COMPUTER
Central processing unit (CPU)
Arithmetic logic unit (ALU)
Control unit
Memories/storage
Program
Data
Input/output port
ARITHMETIC LOGIC UNIT (ALU)
An ALU contains the logic to perform arithmetic and logic operations, ergo it
is a combinational logic circuit.
Operands
Operation
Result
ARITHMETIC LOGIC UNIT (ALU)
AND
OR
Logic
NOT
Operation XOR
Addition
Arithmetic
Subtraction
ARITHMETIC LOGIC UNIT (ALU)
The ALU usually generates flags to indicate some characteristics of the result
got from an operation.
MEMORIES
Memory is the portion of a computer or other system that stores binary
data.
Permanent data (programs).
Temporal data (results, inputs).
MEMORIES
Each storage element in a memory can retain either a 0 or a 1 and is called
cell. Memories are made up of arrays of cells.
MEMORIES
Memories store data in units that have from 1 to 8 bits as a rule.
MEMORIES
The location of a unit of data in a memory array is called its address.
MEMORIES
The location of a unit of data in a memory array is called its address.
MEMORIES
CAPACITY
The capacity of a memory is the total number of data units that can be
stored.
MEMORIES
BASIC OPERATIONS
Addressing is the process of accessing a specified location in memory.
Write: puts data into a specific address.
Read: copies data out of a specified address.
MEMORIES
WRITE OPERATION
MEMORIES
READ OPERATION
MEMORIES
CLASSIFICATION
Random
RAM Access
Memory
Types
ROM Read-only
Memory
MEMORIES
RANDOM ACCESS MEMORY (RAM)
A RAM is a read/write memory in which data can be written into or read
from any selected address in any sequence.
Used for short-term data storage, it losses the information when it is
turned off.
MEMORIES
READ-ONLY MEMORY (ROM)
A ROM contains permanently or semi-permanently stored data, which can
be read from the memory but either cannot be changed at all or cannot be
changed without specialized equipment.
Nonvolatile memory.
MEMORIES
RANDOM ACCESS MEMORY (RAM)
Add info.
Used for short-term data storage, it losses the information when it is
turned off.
RANDOM ACCESS MEMORY
FAMILY
Static RAM
Latch
(SRAM)
Dynamic RAM
RAM Capacitor
(DRAM)
ROM
Decoder
MEMORY EXPANSION
WORD CAPACITY
Using 64k1 byte RAMs, expand the system to build a 256k1 byte.
What is the word capacity of the expansion?
SYSTEM BUS
Computers must be able to:
Specify where to acquire and return information: address bus.
Transfer information from its source to its destination: data bus.
Coordinate the movement of data: control bus.
SYSTEM BUS
SHARED SIGNAL LINES
When the outputs of two or more devices connect to the same signal line,
exists the potential for bus contention*.
* Bus contention:
Occurs when device outputs
attempt to drive a signal line
to different voltage levels.
SYSTEM BUS
TRI-STATE OUTPUT
The tri-state output, also known as three-state or 3-state, adds a third output
state, called high-impedance or high-Z state, to the usual logic low and high
states.
COMPUTATIONAL ARCHITECTURES
Every computational unit must have memory space to store a program (code)
and data. The CPU uses the buses to access the code and data memory
spaces.
Von-Neumann (Princeton University).
Harvard (Harvard University).
COMPUTATIONAL ARCHITECTURES
VON-NEUMANN ARCHITECTURE
The computer uses the same bus for accessing both the code and data.
Slow down the processing speed of the CPU.
Reduced wire traces and number I/O for the computer.
COMPUTATIONAL ARCHITECTURES
VON-NEUMANN ARCHITECTURE
COMPUTATIONAL ARCHITECTURES
HARVARD ARCHITECTURE
In this architecture the buses for accessing the code and data are separated.
Faster processing speed of the CPU.
Large number of wire traces and I/O for the computer.
COMPUTATIONAL ARCHITECTURES
HARVARD ARCHITECTURE
MICROPROCESSOR
A microprocessor is a single IC that consists of several units, each designed
for a specific job. The specific units, design and organization, are called the
architecture (instruction set and process of execution).
Forms the CPU of a computer.
MICROPROCESSOR
MICROPROCESSOR
MICROCONTROLLER
A microcontroller (C or MCU) is a special type of microprocessor that
combines a microprocessor core, memory, and common peripherals in a
single package.
Applications called embedded systems.
MICROCONTROLLER