Microprocessors pical microprocessor controlled devices: Camera, mobile phone, stereo, mp3 player, electronic toys igh-level microprocessor controlled automation: DHL and FedEx, Park and Shop, … What are the similarities ? Both types use computer control What is the difference? Real-time programmable
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Microprocessors
Typical microprocessor controlled devices:
Camera, mobile phone, stereo, mp3 player, electronic toys…
High-level microprocessor controlled automation:
DHL and FedEx, Park and Shop, …
What are the similarities ?Both types use computer control
What is the difference?Real-time programmable
Basic Architecture of a microprocessorA simplified computer
Address Bus (16 lines for 8-bit CPU)
Input/Output CPU Memory
Data bus (8 lines for 8-bit CPU)
Control Bus (10 lines)
CPU: Central Processing Unit
(i) Break [complex] task sequence of [very simple] sub-tasks
each sub-task: dedicated circuit inside the CPU
(ii) Perform each sub-task sequentially, in T units of time (or less)
until all sub-tasks have been done
Instruction Register
Work registers (including Accumulator)
Control Unit ALU
Program CounterStatus Register
Clock
Control Bus Data Bus
D7 - D0 A15 - A0
Address Bus
CPU structure
The Accumulator: main register of the ALU
Each ALU operation:operand (data value) accumulator operand memory
output accumulator.
The instruction register holds the binary code of the instruction that is being executed.
The program counter contains the address of the memory location from which the next instruction code will be taken.
Microprocessors: Control unit
The control unit controller-sequencer and
instruction decoder
Instruction Register
Work registers (including Accumulator)
Control Unit ALU
Program CounterStatus Register
Clock
Control Bus Data Bus
D7 - D0 A15 - A0
Address Bus
Microprocessor memory
Memory:
Microprocessor memory: on chip [WHY?]
Other memory terms:- ROM- PROM (programmable ROM):- EPROM (erasable PROM: erased/reprogrammed by UV-light)- RAM
A11
A12
A15A10-A0A10-A0
D7-D0
Address bus
Data bus
A15 - A0
C P U
D7 - D0
R/W
RAM2048 x 8
R/W
CS
ROM2048 x 8
CS2 - 4
decoder
G
CS2
CS3
CS4
CS1
D7-D0
Microprocessor: Input and Output
I/O chips are connect the microprocessor to a variety of devices.
EXAMPLES:memory disks, printers, data-links to other computers,instrumentation controlling equipment, etc.
Common of I/O chips:
Parallel Input/Output (PIO)
Serial I/O (UART, Universal Asynchronous Receiver/Transmitter)