Microcontrollers: Architecture, Instruction Sets, and Interfacing
Microcontrollers, Microcomputers, and Microprocessors
Microcontroller: Processor, memory, and I/O ports integrated on a single chip.
Microcomputer: A small computer.
Microprocessor: Example: Intel x86.
Von Neumann Architecture
Components:
- Processor (Control Unit, ALU, Registers)
- Memory (RAM - Volatile, ROM - Non-Volatile)
- I/O
A single bus interconnects the processor, memory, and I/O.
RISC vs. CISC
| Feature | CISC | RISC |
|---|---|---|
| Instruction Set | Complex Instruction Set Computer | Reduced Instruction Set Computer |
| Instructions | Multi-cycle, complex instructions | Mostly single-cycle, reduced instructions |
| Instruction Types | Many, varying length | Few, fixed length |
| Complexity | Hardware | Software |
| Code Size | Small | Large |
| Examples | Intel (x86), Freescale 9S12 | MIPS, ARM, SPARC, PowerPC |
RAM vs. ROM vs. CPU Register
| Feature | RAM | ROM |
|---|---|---|
| Elaboration | Random |