Basics of Microcontrollers
Basics of Microcontrollers
What is a Microcontroller?
First, we will see the Rise of Microcontrollers, where you can find how the
development to the Microcontroller took place.
Rise of Microcontrollers
Microprocessors
Microcontrollers
Interrupt Mechanism
Most modern Microcontrollers might contain even more peripherals like SPI
(Serial Peripheral Interface), I2C (Inter Integrated Circuit), ADC (Analog to
Digital Converter), DAC (Digital to Analog Converter), CAN (Controlled Area
Network), USB (Universal Serial Bus), and many more.
The integration of features like ADC, DAC etc. on the same chip as the CPU
makes it more efficient and cheaper than to use a separate ADC Chip.
From the above image, you can understand that the three important (or
major) components of a Microcontroller are:
This doesn’t mean that other components are of less importance. But these
can be considered as supporting devices. We will now see each of the Basic
Components of a Microcontroller mentioned in the above structure.
CPU
Usually, Program Memory is a Read Only Memory or ROM and the Data
Memory is a Random Access Memory or RAM. Data Memory is sometimes
called as Read Write Memory (R/W M).
I/O Ports
The interface for the Microcontroller to the external world is provided by the
I/O Ports or Input/Output Ports. Inputs device like Switches, Keypads, etc.
provide information from the user to the CPU in the form of Binary Data.
The CPU, upon receiving the data from the input devices, executes
appropriate instructions and gives response through Output Devices like
LEDs, Displays, Printers, etc.
Bus
Timers/Counters
Serial Port
Interrupts
A very important feature of a Microcontroller is Interrupts and its Interrupt
Handling Mechanism. Interrupts can be external, internal, hardware related
or software related.
Advantages of Microcontrollers
Disadvantages of Microcontrollers
Applications of Microcontrollers
Function Generators