Skip to main content

Difference Between Microcontroller and Microprocessor

Difference Between Microcontroller and Microprocessor 


Tabular explanation Microcontroller vs. Microprocessor 
 

Hello friends, in this post we will study the difference between microprocessors and microcontrollers.

The first difference between MC & MP is that MP contains its Arithmetic logic unit, control unit, Random access memory, Read-only memory, and input & output ports, they are all on different circuits, which means we have to whenever MP wants to have some access to its memory and input-output ports and the serial communication port, we have to use the interfacing because all these components are not present on the single chip.

 
In the case of MC, the memory, input & output ports, timers, counters, arithmetic, and logic unit, and control unit all are present on the single chip. There is no need for interfacing, all devices are embedded on the single-chip so they can communicate easily.

The second difference we have is, in MP memory and all other peripherals are outside that chip so it has many instructions required to move the data between memory and the central processing unit.

In the case of MC, we only need one or two instructions to required to move the data between memory and a central processing unit.

The third difference, In MP there are only one or two-bit handling instructions.

A microcontroller has many bit handling instructions, furthermore, MC has two types of addressing for the memory bit addressing also byte addressing.

The fourth difference in Access time for memory and input and output devices are more, whenever MP wants to communicate with the memory and I/O devices more time is taken in comparison to the microcontroller because in MC the memory and I/O devices are built-in.

The fifth difference, in MP we have separate memory units and peripherals so the applications which require the MP need more hardware, whereas in MC all the devices are present on the same chip so less hardware required, in result MP based applications need specialized Printed circuit board and size of PCB will also increase. In contrast,application running on MC does not need large size PCBs hence the reliability of hardware also increased.

The sixth difference, MP is more flexible, a single MP can be used for various applications.MC is less flexible from the designing point of view. We can not use a microcontroller for the different applications using the same hardware. in the case of MP, a single hardware board can perform many applications hence designing cost of MP-based systems is very high in comparison to MC-based systems which is manufactured for only one specific application.

The seventh difference, when we use MP and MC both uses data and program.

Data which is in the raw form and has no role to take any decision.
Programs that tell MC or MP to perform some task on Data to produce some output.

data and programs both stored in memory. In the case of MP, there is a single memory Map means addressing either Data or program MP use to store or read a single memory map. In contrast, MC uses two types of memory one for the data and one for program storage so we can separately point to program and data memory. There is different mapping of the addresses of memory for the data and program in MC.

The eighth difference, MP has less number of Pins that are multifunctional means MP does not allow several digital input signals or digital output signals on a single pin. While MC offers multiple digital outputs using a single pin by using the multiplexing method.  

The last point I want to share with you is about power consumption, MP consumes more power to run applications because more hardware requires while MC uses less power due to built-in hardware.

Friends, if you would like to learn more about microcontrollers check out :


Comments

Popular posts from this blog

How to use SPI Debugger

  SPI Debugger Hi Friends, in this post, we will discuss how to use SPI Debugger available in proteus for serial peripheral interface (SPI) which is a built-in feature of PIC microcontroller to communicate and data exchange between PIC and other devices. SPI Debugger Introduction to SPI Guys, SPI can be considered as a programmable shift  register, The SPI module is a synchronous serial I/O port that shifts a serial bit stream of variable length and data rate between the PIC and other peripheral devices. Here “synchronous” means that the data transmission is synchronized to a clock signal. To avoid further delay, let's see some important connections and different configurations to effectively use SPI Debugger. How to use SPI Debugger in MASTER & SLAVE configuration Select the virtual instrument and from the instrument, list selects "SPI Debugger". SPI Debugger Insert two SPI Debugger on the working area, select any one of them,

PIC18f4580 Timer0 calculation using miKroC , CSS and proteus

PIC18f4580 TIMER PROGRAMMING The PIC18f4580 has four timers. they're named as Timers zero, one, two, and three. they will be used either as timers to come up with a time delay or as counters to count events happening outside the microcontroller. First, we see however Timers zero is employed to come up with time delays. Every timer wants a clock pulse to tick. The clock supply will be internal or external. If we have a tendency to use the inner clock supply, then 1/ fourth of the frequency of the crystal oscillator on the OSC1 and OSC2 pins (Fosc/4) is fed into the timer. Therefore, it's used for time delay generation and for that reason is termed a timer. By selecting the external clock choice, we have a tendency to feed pulses through one among the PIC18's pins: this is often known as a counter. GIF  taken from  https://exploreembedded.com Basic registers of the timer Majority of t timers in 18F are 16 bits wide. Because the PIC 18 has an 8- bit ar

Frequency Counter using Interrupts PIC18f4580 Project

Frequency Counter  using PIC18f458 0 Proje ct This POST describes the construction of small frequency counter with a cheap PIC18f4580 microcontroller with 16 x 2 LCD.   Prerequisites: PIC18F4580 TIMER Programming. PIC18F4580 COUNTER Programming. PIC18F4580 Interfacing with 16x2 LCD. PIC18F4580 Interrupts Programming  ( we will cover in this POST) Concept: Frequency  is the number of occurrences of a repeating event per unit time. in our case we will measure a number of clocks generated by clock source per unit time. In this project, LCD is used to display the frequency and PIC timer 1 to measure the input signal and Timer0 to generate an indication that one second has gone. System software utilizes Timer-1 in the 16-bit counter mode to count the input signal and overflows of the counter are added to provide the aggregate count in multiples of 65536. Totaling the existing value of the counter at the conclusion provides the full count.