---
title: "Selecting a processor or microcontroller"
subject: "Instrumentation II"
chapter: 1
key: "semester_5/instrumentation_ii:processor-selection"
source: https://www.bctengineer.com/q/semester_5/instrumentation_ii/processor-selection
site: BCT Engineering
---

# Selecting a processor or microcontroller

Instrumentation II · Chapter 1: Microprocessor Based Instrumentation System

- Asked in: 2071 Chaitra, 3 marks; 2068 Chaitra, 7 marks; 2076 Asoj, 3 marks; 2075 Asoj, 6 marks (asked 4 times)
- Video: [Microcontroller vs Microprocessor - Which is Best for Your Project?](https://www.youtube.com/watch?v=3gZayMLwGQ4) — Predictable Designs with John Teel
- Answer checked by Claude Sonnet 5.5 on 2026-10-14
- Page: https://www.bctengineer.com/q/semester_5/instrumentation_ii/processor-selection
- Whole chapter: https://www.bctengineer.com/md/semester_5/instrumentation_ii/chapter-1

## Question

How do you select a microprocessor or a microcontroller for your project? What factors (performance, peripherals, memory, tool support) should be considered?

## Short answer

Selection involves matching processor capabilities to application requirements for performance, peripherals, memory, cost, power, and tool support. For dedicated tasks, a microcontroller with on-chip ADC, timers, and UARTs (e.g. ATmega328) is cheaper; high-performance tasks may need a 32-bit microprocessor with external memory. Consider word length, clock speed, interrupt response, development tools, and team experience.

## Answer

A processor is selected by matching the needs of the application (speed, I/O, memory, cost, power) with what the device offers, then checking tool support and availability. First decide whether a general **microprocessor** (external memory and I/O, high performance, e.g. 8086, ARM Cortex-A) or a **microcontroller** (CPU, memory and peripherals on one chip, e.g. 8051, AVR, PIC, ARM Cortex-M) is suitable. For most dedicated instrumentation tasks a microcontroller is cheaper and smaller.

#### Factors to consider
1. **Performance:** word length (8, 16, 32 bit), clock speed, instructions per second, interrupt response time. The processor must finish sampling, calculation and control output within the sampling period.
2. **Peripherals:** on-chip ADC/DAC, timers/counters, PWM, UART/SPI/I2C, number of I/O pins, interrupt sources, watchdog. These reduce external chips.
3. **Memory:** size of program memory (Flash/ROM) and data memory (RAM/EEPROM), and the ability to address more memory if needed.
4. **Power and package:** supply voltage (3.3 V / 5 V), power consumption, sleep modes (battery systems), size, operating temperature range.
5. **Cost and availability:** unit price, second-source suppliers, long-term supply, local availability.
6. **Software and tool support:** assembler, C compiler, simulator, debugger/in-circuit emulator, programmer, libraries, RTOS support, documentation and community help.
7. **Upgrade path:** code compatibility with larger family members, so the design can grow.
8. **Reliability and existing experience:** the team's familiarity with the family reduces development time.

#### Example
A temperature controller needs one ADC channel, a timer, a UART and 12 I/O lines at 1 sample per second. An 8-bit microcontroller with on-chip 10-bit ADC (e.g. ATmega328) is enough. A vision-based inspection system needs a fast 32-bit processor with large external memory.

## Check yourself

The answer's key points as multiple-choice questions, with the correct option and why.

1. For a dedicated instrumentation task such as a temperature controller, which choice is usually preferred and why?
   A. A microcontroller, because CPU, memory and peripherals are on one chip, making it cheaper and smaller
   B. A microprocessor, because it has on-chip ADC and timers
   C. A microprocessor, because it is always cheaper
   D. A microcontroller, because it needs external memory and I/O chips
   Answer: A. Microcontrollers integrate CPU, memory and peripherals, so dedicated tasks are cheaper and smaller. (Key point: Microprocessor vs microcontroller)

2. What is the key performance requirement on the processor in a sampled instrumentation system?
   A. It must have the largest possible word length regardless of the task
   B. It must finish sampling, calculation and control output within the sampling period
   C. It must always run at the highest available clock frequency
   D. It must have at least 64 KB of RAM
   Answer: B. Speed is judged against the task: all processing must complete within one sampling period. (Key point: Performance factor)

3. Why are on-chip peripherals such as ADC, timers and UART considered when selecting a device?
   A. They increase the clock speed of the CPU
   B. They remove the need for any program memory
   C. They reduce the number of external chips needed
   D. They make the device pin-compatible with all families
   Answer: C. On-chip peripherals cut external components, lowering cost and board size. (Key point: Peripherals)

4. A temperature controller needs 1 ADC channel, a timer, a UART and 12 I/O lines at 1 sample per second. Which processor is suitable?
   A. A fast 32-bit processor with large external memory
   B. A 64-bit processor with external ADC
   C. No processor can meet the need
   D. An 8-bit microcontroller with on-chip 10-bit ADC such as ATmega328
   Answer: D. The requirements are modest, so an 8-bit microcontroller is enough; a fast 32-bit processor suits vision inspection. (Key point: Matching to the application)

## Related in Instrumentation II

- [Case study: workflow, factors, proposed design, benefits](https://www.bctengineer.com/question.md?key=semester_5%2Finstrumentation_ii%3Acs-2076chaitra) — Instrumentation II, chapter 10
- [Memory-mapped I/O design for 8085](https://www.bctengineer.com/question.md?key=semester_5%2Finstrumentation_ii%3Amemmapped-io-design-1000h) — Instrumentation II, chapter 2
- [I/O mapped vs memory mapped I/O](https://www.bctengineer.com/question.md?key=semester_5%2Finstrumentation_ii%3Aiomapped-vs-memmapped) — Instrumentation II, chapter 2
- [Full vs partial address decoding for memory](https://www.bctengineer.com/question.md?key=semester_5%2Finstrumentation_ii%3Afull-vs-partial-decoding) — Instrumentation II, chapter 2
- [Routing factors and avoiding crosstalk](https://www.bctengineer.com/question.md?key=semester_5%2Finstrumentation_ii%3Aroute-factors-crosstalk) — Instrumentation II, chapter 8
- [Factors in component placement](https://www.bctengineer.com/question.md?key=semester_5%2Finstrumentation_ii%3Acomponent-placement) — Instrumentation II, chapter 8, asked 2×

## Related in other subjects

- [Selecting a microcontroller for a project](https://www.bctengineer.com/question.md?key=semester_6%2Fembedded_system%3Amicrocontroller-selection) — Embedded System, chapter 9
- [Performance balance of processor and memory](https://www.bctengineer.com/question.md?key=semester_5%2Fcomputer_organization_and_architecture%3Aperf-balance) — Computer Organization and Architecture, chapter 1
- [Microprocessor vs microcontroller; 8051 addressing](https://www.bctengineer.com/question.md?key=semester_6%2Fembedded_system%3A8051-addressing-modes-micro-vs-processor) — Embedded System, chapter 9
- [Criteria for selecting a processor](https://www.bctengineer.com/question.md?key=semester_6%2Fembedded_system%3Aprocessor-selection-criteria) — Embedded System, chapter 2, asked 2×
