- 2064 Poush (old course)
Microprocessor vs microcontroller; 8051 addressing
Differentiate Microprocessor and Microcontroller highlighting its uses. Also explain the Addressing Modes of 8051 microcontroller.
Microprocessor versus microcontroller
| Point | Microprocessor | Microcontroller |
|---|---|---|
| Chip contains | CPU only | CPU, RAM, ROM, I/O ports, timers, serial port |
| External chips | Needed for memory and I/O | Few or none |
| Size, cost, power | Larger, costlier, higher power | Smaller, cheaper, low power |
| Instructions | Rich, for data processing | Bit-oriented, for control |
| Speed | High (GHz) | Low (MHz) |
| Uses | PCs, laptops, servers, workstations | Embedded: washing machine, remote control, ATM, car ECU, toys |
| Examples | 8085, 8086, Core i7 | 8051, AVR, PIC, ARM Cortex-M |
Addressing modes of the 8051
The addressing mode specifies where an instruction finds its operand.
| Mode | Operand is | Example | Meaning |
|---|---|---|---|
| Immediate | a constant in the instruction, marked with # | MOV A,#25H | A = 25H |
| Register | in R0-R7 of the active bank (or A, B) | MOV A,R3 | A = R3 |
| Direct | at an 8-bit internal RAM or SFR address | MOV A,30H | A = RAM[30H] |
| Register indirect | at the RAM address held in R0 or R1 | MOV A,@R0 | A = RAM[R0] |
| Indexed | in code memory at base + offset | MOVC A,@A+DPTR | A = ROM[DPTR + A] |
- Immediate: the data is in the instruction:
MOV R2,#10,MOV DPTR,#4000H. - Register: the operand is in a register:
ADD A,R5. Short and fast. - Direct: the instruction holds the 8-bit address:
MOV 40H,#5,MOV A,P1. It is the only way to access SFRs. - Register indirect: R0 or R1 is a pointer:
MOV A,@R1; withINC R1it scans an array. External RAM:MOVX A,@DPTR. - Indexed: for look-up tables in ROM:
MOVC A,@A+DPTR,MOVC A,@A+PC,JMP @A+DPTR. - Bit addressing: single bits are accessed with
SETB P1.0,CLR C,JB P2.1,LABEL.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Microcontroller vs microprocessor; 8051 features · Embedded System, chapter 9 · asked 2×
- Addressing modes of 8051 · Embedded System, chapter 9 · asked 4×
- Microprocessor vs microcontroller · Microprocessor, chapter 1
- Instruction and data format, addressing modes · Microprocessor, chapter 2 · asked 2×
- Addressing modes of 8086 · Microprocessor, chapter 3 · asked 2×
- Features and addressing modes of 8085 · Microprocessor, chapter 2