Microprocessor Vs. Microcontroller

in #electronics7 years ago

The Comparison of Microprocessor and a Microcontroller
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

An example of a Microprocessor
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

Three Basic Activities of an MPU

  1. Performs mathematical and other sophisticated functions and operations
  2. Moves data from one memory location to another
  3. 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.

  1. Arithmetic Logic Unit (ALU)
  2. Control Unit (CU)
  3. Register (Temporary Storage)

Now let's examine these three elements:

  1. 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.
  2. 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
  3. 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
Register type
Function
Data Register
used to store numbers
Address Register
holds memory addresses
General Purpose Register (GPR)
stores both data and addresses
Floating Point Register (FPR)
stores floating point numbers
Constant Register
holds read-only values
Vector Register
holds data for processing done by Single Instruction, Multiple Data instructions
Special Purpose Register (SPR)
stores program state usually includes counter/instruction pointer, stack pointer and status register/status word

Peripheral Devices

  1. 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)
Memory
Function
Read-Only Memory (ROM)
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
Random Access Memory (RAM)
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
  1. 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
System Bus Group
Function
Control 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
Data Bus
a bi-directional bus used to transmit data bi-directionally between MPU and other peripheral devices
Address Bus
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

An example of a Microcontroller
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

Comparison between Microprocessor and Microcontroller

A. Comparison According to Building Feature

2132231231.PNG

B. Comparison According to Characteristics

Microprocessor
Microcontroller
Specific InterfacesGeneral Purpose
needs external memory and busesstand-alone computer
High Performance (+2 GHz)Less Performance(<80 MHz)
Will be expensive since some other peripheral components are needed for it to functionCheaper
Low Power OutputHigh Strength I/O drives

Your Electronic aspirant,
IVAN

IVANCUYAG-1.png

Sort:  

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

Coin Marketplace

STEEM 0.26
TRX 0.25
JST 0.039
BTC 94802.39
ETH 3313.10
USDT 1.00
SBD 3.32