A #microcontroller is an integrated circuit designed to control and govern a particular task or an operation in an embedded system. It is also known as the brain of the system as it gives instructions regarding what the system has to do. Microcontrollers are found in many electronic devices such as laptops, mobiles, robots, etc.
Essential components of a microcontroller
![components of a microcontroller](https://static.wixstatic.com/media/27eb8b_91e5de0bb0614edf94b0c36540d0e61e~mv2.png/v1/fill/w_693,h_442,al_c,q_85,enc_auto/27eb8b_91e5de0bb0614edf94b0c36540d0e61e~mv2.png)
a) CPU:
A central processing unit is a microprocessor that interprets and processes the data input and executes the instructions. It has two main components:
Arithmetic logic unit(ALU): It performs all the arithmetic and logic operations.
Control unit(CU): It handles instruction executions of the processor.
![central processing unit](https://static.wixstatic.com/media/27eb8b_443327cfecf64a77bd7f677dfdab07ec~mv2.png/v1/fill/w_632,h_332,al_c,q_85,enc_auto/27eb8b_443327cfecf64a77bd7f677dfdab07ec~mv2.png)
b) Random-access memory(RAM):
#RAM is a component used for storing the data temporarily and can be accessed easily by the microcontroller during program execution. Its content is always erased when the microcontroller is shut down.
![Random-access memory(RAM)](https://static.wixstatic.com/media/27eb8b_694d8f2e935849d4b48ce803a133cdd8~mv2.png/v1/fill/w_441,h_306,al_c,q_85,enc_auto/27eb8b_694d8f2e935849d4b48ce803a133cdd8~mv2.png)
C) Flash memory:
Flash memory is a component that stores the data for a longer period as compared to RAM and retains the data when the microcontroller is shut down. This is where the program uploaded from the computer is saved.
![Flash memory](https://static.wixstatic.com/media/27eb8b_dd0e47889dab474a835b24d9d199909c~mv2.png/v1/fill/w_588,h_452,al_c,q_85,enc_auto/27eb8b_dd0e47889dab474a835b24d9d199909c~mv2.png)
d) EEPROM:
#EEPROM is similar to that of flash memory. The only difference is that EEPROM devices can erase any byte of memory at any time whereas flash memory can only erase a particular block of the memory at a time.
![#EEPROM is similar to that of flash memory](https://static.wixstatic.com/media/27eb8b_acddaa9e65f54aa1a8e00c541129b101~mv2.png/v1/fill/w_472,h_415,al_c,q_85,enc_auto/27eb8b_acddaa9e65f54aa1a8e00c541129b101~mv2.png)
e) Serial bus interface:
It is a serial communication interface that sends data one bit at a time. It is used for connecting integrated circuits on printed circuit boards. In ICs serial bus interface is used for data transfer to reduce the number of pins and make them cost-effective.
![Serial bus interface](https://static.wixstatic.com/media/27eb8b_dfe31a2b638c4bf686343e6cadcef51a~mv2.png/v1/fill/w_712,h_431,al_c,q_85,enc_auto/27eb8b_dfe31a2b638c4bf686343e6cadcef51a~mv2.png)
f) Input-output ports:
I/O ports are used by the microcontrollers to connect to the physical world. Inputs receive data from the real world with the help of sensors. The data from the inputs are manipulated and processed by the CPU and the manipulated data is sent to the output ports. Output ports allow the microcontroller to control actuators like LEDs, motors, etc.
g) Clock generators:
It is an integral part of a microcontroller. It ensures the synchronous functioning of the microcontroller and other components.
![Clock generators](https://static.wixstatic.com/media/27eb8b_da104d8548104d32a634b05d9f45b4a8~mv2.png/v1/fill/w_441,h_356,al_c,q_85,enc_auto/27eb8b_da104d8548104d32a634b05d9f45b4a8~mv2.png)
Working of microcontrollers
A microcontroller is embedded inside a device to control a particular function. It does this by interpreting the data received from the sensors at the input port with the help of a central processor. The data that the microcontroller receives is stored in its data memory which is easily accessed by the central processor. The CPU manipulates the data and sends it to output ports. This manipulated data is used to control actuators like LED, motors, etc.
![Working of microcontrollers](https://static.wixstatic.com/media/27eb8b_61c0249924804ad8a8ee36bc359aba01~mv2.png/v1/fill/w_711,h_295,al_c,q_85,enc_auto/27eb8b_61c0249924804ad8a8ee36bc359aba01~mv2.png)
Types of microcontrollers
a) PIC microcontroller:
#PIC stands for peripheral interface controller. It is the smallest microcontroller in the world and is programmed for performing a large range of functions. It is faster than other microcontrollers. It was invented by microchip technology in 1989.
![PIC microcontroller](https://static.wixstatic.com/media/27eb8b_17b6bdaa104f4f3cb20bb3a97cb0322a~mv2.png/v1/fill/w_592,h_393,al_c,q_85,enc_auto/27eb8b_17b6bdaa104f4f3cb20bb3a97cb0322a~mv2.png)
b) ARM microcontroller:
#ARM stands for advanced RISC machine.It is one of the most extensively used processor cores in the world. The first ARM processor was developed in 1978 by Cambridge University, and the first ARM RISC processor was produced by the Acorn Group of Computers in 1985.
![ARM microcontroller](https://static.wixstatic.com/media/27eb8b_cb7cd22038bd4dd9aaaca097767ae09c~mv2.png/v1/fill/w_442,h_255,al_c,q_85,enc_auto/27eb8b_cb7cd22038bd4dd9aaaca097767ae09c~mv2.png)
c) 8051 microcontroller:
It was created by intel in 1981. It is an 8-bit microcontroller. It is built with 40 pins DIP (dual inline package), 4kb of ROM storage and 128 bytes of RAM storage, 2 16-bit timers. It consists of four parallel 8-bit ports, which are programmable as well as addressable as per the requirement.
![8051 microcontroller](https://static.wixstatic.com/media/27eb8b_9cd6cd84f578481ba20f26fadfe41b6e~mv2.png/v1/fill/w_608,h_408,al_c,q_85,enc_auto/27eb8b_9cd6cd84f578481ba20f26fadfe41b6e~mv2.png)
d) AVR microcontroller:
#AVR stands for Alf and Vegard's RISC processor. It was developed in 1996 by Atmel. It has several advantages over other types of microcontrollers.
![AVR microcontroller](https://static.wixstatic.com/media/27eb8b_161969a0854e4334a64cb6a8e0c1daef~mv2.png/v1/fill/w_513,h_297,al_c,q_85,enc_auto/27eb8b_161969a0854e4334a64cb6a8e0c1daef~mv2.png)
e) MSP microcontrollers:
#MSP stands for mixed-signal processors. They were developed by Texas instruments in 1992. They are 16-bit microcontrollers. They are used for low-cost and low-power applications.
![#MSP stands for mixed-signal processors](https://static.wixstatic.com/media/27eb8b_e1d5c31666fa426ba5c4701d8418e982~mv2.png/v1/fill/w_462,h_315,al_c,q_85,enc_auto/27eb8b_e1d5c31666fa426ba5c4701d8418e982~mv2.png)
Advantages of microcontrollers
They are Cost-effective.
They are easy to use.
They take less time to perform the operation.
They perform all the tasks effectively.
They are small in size and are flexible
Disadvantages of microcontrollers
They have complex structures.
The number of executions is limited.
Once programmed, they cannot be reprogrammed.
They cannot be interfaced with high-power devices directly.
See also:
Follow us -
Please do follow us i.e #learnelectronicsindia to get daily updates about new blogs, videos, courses, quizzes, and contests.
Author - Akshara Ganeshram
Portfolio link - www.learnelectronicsindia.com/team/akshara-ganeshram
Clear and concise. LearnElectronics India's expertise shines through.
Learn Electronics India deserves a round of applause for creating such a valuable resource. The article is well-structured and provides a clear understanding of various microcontroller types and their applications. Thank you for sharing this knowledge.