Microprocessor Vs. Microcontroller
![](https://steemitimages.com/640x0/https://i.ytimg.com/vi/_GtLK3KyoJk/maxresdefault.jpg)
Image Source
Introduction
Many years passed by and we can now clearly see and notice the drastic and immense improvement of the world in terms of technology. The world quotes the term "High-tech" which literally emphasizes that we commend to its development. We just know that as technology continues and continue to improve, little by little our gadgets are getting smaller and smaller to the extent that it can now be so easy for us to carry those- or in other words portable. It's clear and evident to our naked eyes and can even be tangible to our very own hands. In electronics, these devices which are lightweight and can be carried somewhere with ease are referred to as "Portable Electronic Devices (PED)". Behind every PED's system are embedded an electronic devices and circuitry which is responsible for the execution of instructions we want our gadgets to function for and these devices are called Microprocessor and/or Microcontroller. I use the conjunctions and/or to emphasize that not all PED has both, some may have the two but in most cases, just a microprocessor.
This blog offers you an insight about the distinction of a microprocessor and a microcontroller. Everything that will be detailed later in this blog is just my personal understanding about how these two devices function since these topics are also covered in my Electronics subject as an Electronics Engineering student and I am basing the below details on my notes of this subject about this topic. I hope you guys have a well time reading this blog.
Microprocessor
![](https://steemitimages.com/640x0/https://www.efxkits.co.uk/wp-content/uploads/2017/05/What-is-a-Microprocessor.jpg)
Image Source
A microprocessor (often abbreviated as µP or MPU) is a simple computer (computer- meaning an electronic device which stores and processes data; not a computer hardware or a desktop) contained more or less in one integrated circuit (IC). It integrates a number of useful functions into a single IC package. These devices require other peripheral components such as a memory unit so as to function.
Microprocessor Block Diagram
![12.PNG](https://steemitimages.com/640x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1518772611/uvrnpislfraletjzcnrj.png)
Three Basic Activities of an MPU
- Performs mathematical and other sophisticated functions and operations
- Moves data from one memory location to another
- Makes decision and jump to a new set of instructions based on the decision
Three Basic Units/Elements of an MPU
Those three basic activities are happening inside an MPU, it also has an associated elements tasked to perform each basic activity and even more.
- Arithmetic Logic Unit (ALU)
- Control Unit (CU)
- Register (Temporary Storage)
Now let's examine these three elements:
- Arithmetic Logic Unit (ALU)
- as the name implies, this unit performs all numerical computations/operations such as addition, subtraction, multiplication and division and so on and logical evaluations/operations such as AND, OR, NOT, NOR, XOR, XNOR and so on for the processor
- this is one of the basic units of a microprocessor, without this processing of data is impossible.
- Control Unit
- this unit is responsible for the decoding and the monitoring of the execution of instructions
- this also directs the sequence of operation for the processing of data
- Registers
- acts primarily as a temporary storage of data during the execution/runtime of the program
- Different types of registers are shown in the table below
Peripheral Devices
- Memory
- used to store the information (data & instructions) as in the binary form
- this unit consist of a microprocessor computer system consist of two types of memories:
a. Read-Only Memory (ROM)
b. Random Access Memory (RAM)
used to store items that computer needs to execute when it is first turned on ; Non-volatile memory; program stored in this memory can only be read | |
also called as the main memory because it is the primary memory that the CPU uses when processing information; known as read/write memory; volatile memory |
- System Bus/ Bus
- physical link between various computer components
- this unit is basically classified into three groups:
a. Control Bus
b. Data Bus
c. Address Bus
a bi-directional bus which is used to transfer the control signals (read, write, interrupt) and timing signals (clock pulses) between MPU and other peripheral components | |
a bi-directional bus used to transmit data bi-directionally between MPU and other peripheral devices | |
a unidirectional bus used to send the address of a peripheral from an MPU to the peripheral device |
MPU Advantage and Disadvantage
Advantage
- high speed
- high accuracy and reliabilty
- ease of data movement between memory locations
- used to perform multitask operations
- only requires limited current and low voltages
Disadvantage
- Highly sensitive to thermal and electric variations
- Do not have internal memory, Input/Output ports
- No timers which interrupts inside the MPU
- Can make a system expensive
- Needs proper interfacing components for functioning
Microcontroller
![](https://steemitimages.com/640x0/https://cf1.s3.souqcdn.com/item/2013/10/11/61/86/78/0/item_XL_6186780_3246529.jpg)
Image Source
A microcontroller (often abbreviated as µC or MCU). It is a true computer on a single chip. this device is a microprocessor with peripherals in one electronic component. It is designed specifically for use in embedded systems that typically include an integrated CPU, memory (a small amount of RAM, ROM, or both), and other peripherals on the same chip.
Microcontroller Block Diagram
![111.PNG](https://steemitimages.com/640x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1518776755/u9j1x4m7th0xm1ilha8m.png)
Comparison between Microprocessor and Microcontroller
A. Comparison According to Building Feature
![2132231231.PNG](https://steemitimages.com/640x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1518779799/wk9zvqg5j9pa2c966bbm.png)
B. Comparison According to Characteristics
Specific Interfaces | General Purpose |
needs external memory and buses | stand-alone computer |
High Performance (+2 GHz) | Less Performance(<80 MHz) |
Will be expensive since some other peripheral components are needed for it to function | Cheaper |
Low Power Output | High Strength I/O drives |
Your Electronic aspirant,
IVAN
Why are you comparing two completely different things?
MCUs and CPUs are not comparable, even they seem similar.
MCUs are created to control devices on lowest possible level (like hardware support for USB, I2C, SPI), maybe with some basic DSP stuff (like digital signal filtering). Their strong point is not calculating, except if a MCU has instructions for more complex arithmetic.
CPUs hovewer are created to compute stuff. All kinds of stuff. To control devices CPU has to its disposal external I/O controllers which are held chipset.
CPU cannot do anything by itself, you need crapload of other chips in order to do something.
MCU on the other side is autonomic, for instance if we take AVR microcontroller like in Arduino, to make it work we need one resitor on RESET pin, two caps on VCC and GND and if you want to program the MCU - a hardware programmer.
Yes you are right but I believe he compared this two very distinct things in order to clarify things especially for the people who have little knowledge about electronics. Not all people have the same capabilities and understanding of the things that surround them. Let's say for example, if I am not an Electronics Engineering student, I would be confused which is which. When I am not yet studying Electronics, for me, they all look the same. I appreciate your comment though :) thanks.
Thank you for anwser.
For me this comparison is non-sense, for example MPU is an memory protection unit which guards data RAM, preventing any incorrect access to it. I think that this is a typo as he is describing CPU not just an MPU.
Hi @jarric. Good day sir! The blog just refer to the comparison between microprocessor and a microcontroller. I am discussing MPU AND MCU not MCU and CPU. The spelling though is not the same. Well thanks for noticing this blog. :) Have a good day!
I am trying to point out that you do not abbreviate a microprocessor as MPU but as CPU. MPU is solely reserved for Memory Protection Unit and it might confuse some people.
Source: https://en.wikipedia.org/wiki/Microprocessor, http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0337e/BIHJJABA.html
Now I get you. That's what I just learned from my teacher though! anyway, thanks for commenting
I'm sorry. I didn't make it clear enough.
Now, I know,, thanks for sharing ma friend