Microcontrollers

What is a Microcontroller?

A microcontroller is a single-chip computer, that is, the entire computer system lies within the confines of the integrated circuit (IC) chip. The microcontroller on the encapsulated sliver of silicon has features similar to those of a standard personal computer. Basically, the microcontroller is capable of storing and running a program. The microcontroller contains a central processing unit (CPU), random-access memory (RAM), read-only memory (ROM), input/output (I/O), serial and parallel ports, timers and may also contain other built-in peripherals like analog-to-digital (A/D) and digital-to-analog (D/A) converters.

Figure 1.0 Microcontroller configuration

A microprocessor differs from a microcontroller in several ways. The main distinction is that a microprocessor requires a number of other components for its operation, such as program memory and data memory, input/output devices, and an externa clock circuit whereas a microcontroller has all the required chips incorporated inside its single chip.

Microcontrollers were usually programmed using the assembly language of the target device. While the assembly language is fast, it has a number of disadvantages: An assembly language consists of mnemonics which makes learning and maintaining a program written using the assembly language challenging. Additionally, microcontrollers manufactured by different firms have different assembly languages, so the user must learn a new language with every new microcontroller. Nonetheless, microcontrollers can also be programmed using a high-level language like C, BASIC, Java, Python, etc. High-level languages are much easier to learn than assembly languages. They also facilitate the development of large and complex programs.

Principally, a microcomputer executes a user program which is loaded in its program memory. Under the control of this program, data is received from external devices (inputs), manipulated and then sent to external devices (outputs). For instance, in a microcontroller-based oven temperature control system the microcontroller reads the temperature using a temperature sensor and then operates a heater or a fan to keep the temperature at the required level.

Microcontrollers are used in most smart devices in consumer electronics. For example, microcontroller systems are widely used in many household items such as microwave ovens, hi-fi equipment, TV remote control, refrigerators, etc.

Related Resource: Beginning C for Microcontrollers: Making Electronics Dance with Software 

John Mulindi

John Mulindi has a background in a technical field and he writes on topics ranging from automation, computer systems, embedded systems, mechatronics to measurement and control.

View Comments

Recent Posts

Rigid-Flex PCBs: Enhancing Durability and Flexibility in Electronic Devices

The world of electronics is constantly evolving, allowing designers and manufacturers to push the boundaries…

3 months ago

Key Features of PIC16X84 Family of Microcontrollers

PIC microcontrollers are fabricated by Microchip Technology. PIC16C84 and PIC16F84 are the two microcontrollers in…

10 months ago

ADD Instruction in Intel 8051 (MCS-51) Microcontroller

The ADD instruction tells the microcontroller’s CPU to add the source byte to register A…

10 months ago

Main Features of Intel 8086 Microprocessor

8-bit microprocessors are limited in their speed (the number of instructions that can be executed…

10 months ago

Basic Features of 68HC11 Family of Microcontrollers

The 68HC11 (also abbreviated as 6811 or HC11) is an 8-bit microcontroller that was introduced…

10 months ago

Process Synchronization using Semaphores

Mutual exclusion typically imposes some conditions on access to a given resource by two or…

11 months ago