WHAT ARE MICROCONTROLLERS ?
Amicro-controllerisafunctionalcomputersystem-on-a-
chip.Itcontainsaprocessorcore,memoryandprogrammableinput/output
peripherals.
Micro suggests that the device is small and controller tells you that the device
might be used to control objects, processes or events.
Another term to describe a microcontrolleris embedded controller because
the microcontrollerand its support circuits are often built into or embedded
inthedevicestheycontrol.
Microcontrollers
Microcontrollers are small computing systems on a single chip.
A microcontroller will also be referred to as an MCU.
Central Processing Unit (CPU)
Program memory
Random Access Memory (RAM)
EEPROM -Electrically Erasable Programmable Read Only
Memory
USARTs, Timer/Counters, ADC, DAC, I/O Ports, CANs, SPIs,
etc.
Examples : Motorola’s 6811,Intel’s 8051,Zilog’s Z8 and PIC 16X.
4
Serial
Port
CPURAM ROM
I/O
Port
Timer
A single chip
Components.
A Microcontroller has seven main components:
1-Central processing unit (CPU)
2-ROM
3-RAM
4-Input and Output
5-Timer
6-Interrupt circuitry
7-Buses
8-Oscillatory circuits
General-purpose microprocessor:
6
CPU for Computers
Commonly no RAM, ROM, I/O on CPU chip itself
CPU
General-
Purpose
Micro-
processor
RAM ROM
I/O
Port
Timer
Serial
COM
Port
Data Bus
Address Bus
Many chips on motherboard
Microprocessor vs Microcontroller
Microprocessor
CPU is stand-alone,
RAM,
ROM, I/O, timer are
separate
designer can decide on
the
amount of ROM, RAM
and
I/O ports.
Expansive
versatility
general-purpose
7
Microcontroller
•CPU, RAM, ROM, I/O
and
timer are all on a
single
chip
•fix amount of on-chip
ROM, RAM, I/O ports
•Highly bit addressable
•for applications in
which cost, power
and space are critical
•single-purpose
Microcontroller programming
Microcontroller
programming is
very much similar to
the programming
language ‘C’.
Microcontroller programming
Microcontroller
program
C
program
Advantages of Microcontroller
As the peripherals are integrated into a single chip, the overall
system cost is very less
The product is of small size compared to micro processor based
system
The system design now requires very little efforts
As the peripherals are integrated with a microprocessor the system is
more reliable
Though microcontroller may have on chip ROM,RAM and I/O ports,
addition ROM, RAM I/O ports may be interfaced externally if
required
On chip ROM provide a software security
Three criteria in Choosing a
Microcontroller
meeting the computing needs of the task efficiently
and cost effectively
speed, the amount of ROM and RAM, the number of I/O
ports and timers, size, packaging, power consumption
easy to upgrade
cost per unit
Noise of environment
availability of software development tools
assemblers, debuggers, C compilers, emulator, simulator,
technical support
wide availability and reliable sources of the
microcontrollers
Applications of microcontrollers
Cell phone
Pager
Watch
Calculator
video games
Alarm clock
Air conditioner
TV remote
Microwave oven
Washing machines
An electronic smart weight display system
Robotic system
An anti-lock braking system monitor
12
Popular Microcontrollers
8051 (Intel and others)
80386 EX (Intel)
PIC (Microchip)
68HC05 (Motorola)
Z8 (Zilog)