What instructions to execute? (CISC v. RISC)
The instruction sets indicate what functions the microcontroller can execute.
CISC: complex instruction set design
-
Many instructions, more complex instructions
-
Many kinds of addressing modes
-
Fewer registers
-
Specialized commands for accessing ports, running peripherals, etc.
-
Different instructions can take different amounts of time
RISC: reduced instruction set design
-
Few instructions, throw out all but the simplest ones
-
Simple addressing modes: immediate, direct, indirect (get address from a register)
-
More registers
-
Few specialized commands (if any), usually means memory-mapped I/O
I/O calls are set up so it's like addressing data memory
-
All instructions take the same amount of time