3. The Brains of the Operation: Microprocessor vs. Microcontroller
Now we get to the brain of the operation! While all embedded systems have a processor, the choice of which kind of brain to use is one of the most important decisions an engineer makes. The two main contenders are the powerful microprocessor and its nimble cousin, the microcontroller.
| Feature | Microprocessor (like in a PC) | Microcontroller (like in a washing machine) |
| Primary Job | Multitasking (can run many programs at once). | Single-task oriented (designed for one specific job). |
| Components | Requires external RAM, ROM, and I/O ports. | Has RAM, ROM, I/O ports, and timers integrated on a single chip. |
| System Size | Systems are larger and more complex. | Systems are compact and lightweight. |
| Cost | Generally more expensive. | Cheaper, making them ideal for dedicated tasks. |
| Power Usage | Consumes more power. | Designed for low power consumption. |
Even within these categories, processors can be designed according to different architectural philosophies.