Microcontrollers_Test_Detailed_Answers
Microcontrollers_Test_Detailed_Answers
A microprocessor and a microcontroller both serve as processing units, but they differ in architecture
and application.
1. **Microprocessor:**
- It is the CPU of a computer system and requires external components like RAM, ROM, and I/O
devices.
2. **Microcontroller:**
- It is a compact integrated circuit that includes a CPU, RAM, ROM, timers, and I/O ports within a
single chip.
- Designed for embedded applications like home automation, robotics, and medical devices.
- **32 I/O Pins:** Divided into four 8-bit ports (P0, P1, P2, P3).
- **Characteristics:**
- **Examples:**
- Includes registers like ACC, B, PSW, and DPTR for control operations.
Q2 (b): 8051 Microcontroller Port Pin Functions
- **Port 3 (P3):** Has special functions like RXD (serial input) and TXD (serial output).
1. **Bit Direct Addressing:** Directly accesses bit-addressable memory (Ex: SETB P1.0).
Examples:
Examples: