All 3 questions UPSC has asked on microprocessors and digital computers in the Physics Optional (Paper II, Solid State Physics, Devices and Electronics) from 2006 to 2025, solved step by step – latest first.
Try them yourself first: the same questions, without solutions, are on our Solid State Physics, Devices and Electronics topic-wise PYQs page.
How we check these solutions
These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:
- ✓ Checked step by step for descriptive questions, every statement was checked against standard textbooks.
Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.
Jump to a question (year · question number):
(i) What is a microprocessor? Describe the internal functioning of a microprocessor with block diagrams. (ii) How do thermistors and solar cells differ in structure and operation?
Solution
(i) Microprocessor. A microprocessor is a single integrated circuit that contains the central processing unit of a computer – an arithmetic logic unit, a set of registers and a control unit. It is programmable: it fetches binary instructions from memory, decodes and executes them in sequence, under the control of a clock. With memory and input/output devices it forms a microcomputer.
Internal functioning.
- ALU: performs arithmetic (add, subtract, increment, compare) and logic (AND, OR, XOR, shift) operations on data from the accumulator and other registers, setting status flags (zero, sign, carry, parity).
- Registers: fast on-chip storage – accumulator, general-purpose registers, program counter (address of the next instruction), stack pointer, instruction register, flag register.
- Control unit: with the instruction decoder and timing circuits, it generates the signals that fetch each instruction, decode it and execute it (moving data on the internal bus, starting ALU operations, reading or writing memory and I/O).
- Buses: the address bus selects memory locations or I/O ports; the bidirectional data bus carries data and instructions; the control bus carries read/write, clock, interrupt and reset signals. The cycle fetch → decode → execute repeats for every instruction; interrupts let external devices request service.
(ii) Thermistors and solar cells compared.
| Thermistor | Solar cell | |
|---|---|---|
| Structure | A bead, disc or rod of a sintered semiconducting ceramic (Mn, Ni, Co, Cu oxides for NTC; doped BaTiO₃ for PTC) with two leads; no junction – a bulk resistor | A large-area p-n junction (thin n⁺ layer on a p-type Si wafer) with a front finger grid, antireflection coating and back contact |
| Operating principle | Resistance changes strongly with temperature: in an NTC thermistor the number of charge carriers rises exponentially with T, so | Photovoltaic effect: absorbed photons create electron–hole pairs that the junction field separates, producing a voltage and current |
| Energy | Passive: needs an external source; it converts nothing, it only changes resistance | Active: a generator converting light energy into electrical energy |
| Input → output | Temperature → resistance (or current/voltage in a circuit) | Light (irradiance) → emf ( V per Si cell) and current ( irradiance) |
| Characteristic | R against T (steep, falling for NTC) | I–V curve in the fourth quadrant, with , and maximum power point |
| Uses | Temperature sensing and control, compensation, inrush limiting | Power generation (solar panels, satellites, calculators), light measurement |
✓ Checked step by step We checked the description of the microprocessor and the comparison of the two devices step by step.
Describe the working of a microprocessor system in block diagram. How is its performance affected in a pipelined processor?
Solution
Microprocessor system.
A microprocessor (CPU on a chip) connected to memory and input/output devices through three buses forms a microcomputer.
- CPU: the ALU performs arithmetic and logic operations; registers (accumulator, general-purpose registers, program counter, stack pointer, flags) hold data and addresses temporarily; the control unit fetches instructions, decodes them and generates timing and control signals.
- Memory: ROM holds fixed programs (boot code); RAM holds programs and data being used.
- Input/output: keyboards, sensors (through ADCs), displays, printers, actuators (through DACs), communication ports, interfaced through I/O ports or peripheral chips.
- Buses: the address bus (unidirectional, from CPU) selects a memory location or I/O port; the data bus (bidirectional) carries data and instructions; the control bus carries signals such as RD, WR, IO/M, clock, interrupts and reset.
Working (instruction cycle). The program is stored in memory. Repeatedly:
- Fetch: the program counter places the address of the next instruction on the address bus; the control unit issues a read signal; the instruction (opcode) comes over the data bus into the instruction register; the PC is incremented.
- Decode: the instruction decoder interprets the opcode and the control unit sets up the required operation.
- Execute: the operation is carried out – data moved between registers, memory or I/O, an ALU operation performed, flags set, or a jump made by loading a new address into the PC. Each step takes one or more machine cycles of the system clock; interrupts allow external devices to obtain the processor’s attention.
Effect of pipelining. In a non-pipelined processor each instruction completes all its stages before the next begins. A pipelined processor divides instruction processing into stages (e.g. fetch, decode, operand fetch, execute, write-back), each handled by separate hardware, and overlaps them: while one instruction executes, the next is being decoded and a third fetched – like an assembly line.
- Throughput improves: ideally one instruction completes every clock cycle, so a k-stage pipeline gives a speed-up approaching k for long instruction streams (the time per individual instruction – latency – is not reduced, and may increase slightly because of pipeline registers).
- A higher clock rate is possible, since each stage does less work.
- Performance is reduced by hazards: data dependences (an instruction needing a result not yet produced), control hazards (branches, which may require the pipeline to be flushed), and structural conflicts (two stages needing the same resource). Remedies are forwarding/bypassing, stalls, branch prediction, and instruction reordering by the compiler. Modern processors use deep and superscalar (several parallel) pipelines.
✓ Checked step by step We checked the description of the microprocessor system and of pipelining step by step.
What is a microprocessor? Explain the internal architecture of an 8085 μP.
Solution
Microprocessor. A programmable, clock-driven, register-based integrated circuit that contains the arithmetic logic unit, registers and control circuitry of a computer’s central processing unit on a single chip. It fetches binary instructions from memory, decodes and executes them, and communicates with memory and I/O devices through buses.
Architecture of the Intel 8085 (8-bit processor, 40-pin, single +5 V supply, 3–6 MHz clock).
- ALU section:
- Accumulator (A, 8-bit): holds one operand and the result of most arithmetic/logic operations.
- Temporary register: holds the second operand, not accessible to the programmer.
- ALU: performs 8-bit addition, subtraction, increment/decrement, AND, OR, XOR, complement, rotate, compare.
- Flag register: five flip-flops set by results – Sign (S), Zero (Z), Auxiliary carry (AC), Parity (P), Carry (CY) – used for conditional jumps.
- Register array:
- Six general-purpose 8-bit registers B, C, D, E, H, L, usable as pairs BC, DE, HL (16-bit), HL often as a memory pointer.
- Stack pointer (SP, 16-bit): addresses the top of the stack in RAM.
- Program counter (PC, 16-bit): holds the address of the next instruction.
- Temporary registers W, Z; increment/decrement address latch.
- Instruction register and decoder: the fetched opcode is placed in the instruction register and decoded to establish the sequence of operations.
- Timing and control unit: generates the timing and control signals from the clock – ALE (address latch enable), RD, WR, IO/M̄, S₀, S₁, READY, HOLD/HLDA, RESET IN/OUT, CLK OUT.
- Interrupt control: five hardware interrupts – TRAP (non-maskable, highest priority), RST 7.5, RST 6.5, RST 5.5 (maskable, vectored) and INTR (general) – with INTA acknowledge.
- Serial I/O control: SID (serial input data) and SOD (serial output data) lines, used with the RIM and SIM instructions.
- Buses: a 16-bit address bus addressing 64 KB of memory – the high-order byte on A15–A8, and the low-order byte multiplexed with the 8-bit data bus on AD7–AD0. ALE goes high in the first clock state to latch the low address byte externally (e.g. in a 74LS373), after which AD7–AD0 carry data. The internal 8-bit data bus connects all the blocks.
The 8085 has 74 instruction types (246 opcodes), grouped as data transfer, arithmetic, logical, branch and machine-control instructions.
✓ Checked step by step We checked the description of the 8085 blocks against the Intel data sheet.
More on Solid State Physics, Devices and Electronics
- All Physics PYQ solutions, topic by topic
- Solid State Physics, Devices and Electronics topic-wise PYQs (questions only, for practice)
- Physics PYQ analysis: which units carry the marks year by year
- Year-wise question papers
- Physics booklist
Questions: UPSC Civil Services (Main) Examination, Physics Paper II, 2006–2025. Solutions: Optional Province. Found an error? Tell us.
