SlideShare a Scribd company logo
1 of 30
M I
CROCONTROLLERS
WHAT IS A MICROCONTROLLER?
,. A microcontroller is an integrated circuit (IC) that can be
programmed to perfo1
1n a set of functions to control a
collection of electronic devices.
,. A self-conta ined systen1 in which a processor, support,
memory, and input/output (1/0) are all contained in a single
package.
,.. Being program1
nable is what 1
nakes the n1icrocontroller
.
uruque.
MICROCONTROLLER PACKAGING
•
• Fro1
n left to right: PIC l 2F508, PIC 16F84A, PIC l6C72,
Motorola 68HC05BJ6, PIC 16F877, Motorola 68000
Types of Microcontrollers
Ml
croc on1roll1rt
Bits Memory/devices
4 8 16 32 Embedded External
lrlstrucllon se1 Memory 1rcl'lllecture
CISC RISC Princeton Harvard
F1mlty
8051 Motorola PIC Texas National ARM others
l
nlel Atmel oanas S
iemens
Ptul s
1 - ACCORDING TO BITS
4-BTTMICROCONTR OLLERS
·
:
· ALU perforn1s a1ith1netic and logical operations on a nibble
(4-bits) at an instruction .
·
:
· Internal bus width of 4-bit.
·
=
· S1nall size, 1ninimu1
n pin count and low cost controllers.
·
:
· Low power consun1ption and used for low end applications
like LED & LCD display drivers, portable battery chargers.
Jes: Renasa M3450 I
MEL.
256 and ATAM862 series from
8-BIT MICROCONTROLLER
·
:
· ALU performs arith1
netic and logical operations on a byte
(8-bits) at an instruction.
·
:
· Internal bus width of 8-bit.
·
:
· Examples: Intel 8051 family
fa1
uily.
and Motorola MC68HC11
16-BIT MICROCONTROLLER
·
:· ALU perfonn s arithrnetic and logical operations on a word
(16-bits) at an instruction.
·
:· internal bus width of 16-bit microcontroller is of 16-bit.
:
· Enhanced performance, computing capability and greater
precision as co1
npared to the 8-bit 1
nicrocontro llers.
·
:
· Examples: Intel 8096 falnily, Motorola MC68HC12 and
MC68332 farnilies.
32-BIT MICROCONTROLLER
·
:
· ALU perfonns arithn1etic and logical operations on a double
word (32-bits) at an instruction.
·
:
· Internal bus width of 32-bit.
·
:
· Much more enhanced performan ce, computing capability with
greater precision as compared to 16-bit microcontrollers.
·
:
· Examples: Intel 80960
Intel/Atmel 25 1family.
family, Motorola M683xx and
2 - ACCORDING TO MEMORY/DEVICES
EMBEDDED MICROCONTROLLERS
,. An embedded system has a 1
nicrocontroller unit that has all the
functiona l blocks (including progran1 as well as data n1e1nory)
available on a the same chip.
,. Exainple: 8051 having Prograin & Data Memory, 1
/0 Ports,
Serial Commu nication, Counters and Timers and Interrupt
Control logic on the chip.
EXTERNAL MEMORY MlCROCONTROLLERS
,,. An external systen1 has a microcontroller unit that does not
have all the functional blocks available on a chip.
,,. AU or part of the memory units are externally interfaced using
an interfacing circuit called the glue circuit.
,,. Exa1
nple: 8031 has no progra1
n memo1
y on the chip.
3 - ACCODING TO INSTRUCTION SET
CISC (COMPLEX INSTRUCTION SET COMPUTER)
ARCHITECTURE MICROCONTROLLERS
• Has an instruction set that supports many addressing modes for
the arithmetic and logical instructions, data transfer and
me1
nory accesses instructions.
• Many of the instJuctions are macro like.
• Allows the progra1nmer to use one instruction
many simpler instructions.
in place of
• Example: Intel 8096 fa1
nily.
RISC (REDUCED INSTRUCTION SET COMPUTER)
ARCHITECTURE MlCROCONTROLLERS
• Contains an instruction set that supports fewer addressing
modes for the arithmetic and logical instructions and for data
transfer instructions.
• Allows si1
nultaneous access of program and data.
• lnstruction pipelining increases execution speed
• Allow each instruction to operate on any register or use any
addressing 1node.
• Smaller chip and pin count.
• Very low power consumption.
4 - ACCORDING TO MEMORY ARCHITECTURE
The architectures of inicrocontrollers differ in the way data and
programs are stored and accessed.
1. VON-NEUMAN /PRINCETON ARCIDTECTURE
o Single data bus that is used to fetch both instructions and data.
o Program instructions
tnen1ory.
and data are stored in a common main
o Wben such a controller addresses 1
nain me1
nory, it first fetches
an instruction, and then it fetches the data to support the
instruction.
o Simplifies the 1
nicrocontroller
memory is accessed.
design because only one
o The weakness is that two separate fetches can slow up the
controller's operation.
o Example: Motorola 68HC1 I.
Program
ROM
InstructionDecode
•
.Data
•
Addr
• Memory
Interface
Unit
V
ariable
R
AM
Ctrl .
•
Processor
andBuilt-in
Registers
Stack
RA
M
2. HARV
ARD ARCHITECTURE
oSeparate data bus and an instruction bus.
o Execution occur in parallel.
oMuch faster execution than Von-Neuman architecture.
o Design complexity.
o Example: intel MCS-51 fa1
nily and PIC microcontroUers .
Control space
Data
Instruction
Decode
PC stack
Processor and
Register Interface
Data
Addr
Ctr1
Register
Space
Program
ROM
.Addr
Ctr1
GENERAL MTCROCONTROLLER ARCffiTECTUR E
EPR0'.1 Progron•
C:OUnle!r
Sl!lek
n t t a
ROM
• a,,,.-
ln stru<:tiooal
reg >lcr
O sclllaior
I
G<:n" " 'I
purpo
1'<1
>
, h l t t
Vatchdog
tlnlcr
lnstruct1on
decoder -
a a 1
A L U Purt c
Port A P
on B
r------------------------
I
I
I
ROM
. EEPROM
I
I
I
I
RAM
I AID
Converter
Serial
1
/0
I
CPU
Core
Parallel
1
/0
.
'
I
I
TImer I
I
I
I
PWM I
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
JI
Central Processing Unit (CPU)
The central processing unit processes the program. It executes the
instructions stored in the program 1
ne1nory pointed to by the
program counter in synchronization with the clock signal.
ALU
The arithn1etic/logic unit (ALU) performs 1
nath e1
natical and logical
operations on data.
Oscillator
A complex digital device that generates steady pulse rate required
for timing. All of the separate functions are controlled by one
central timing syste1n. The ti1
ning pulse provides the basis for
proper sequence of all the separate sections of the n1icrocontroller
hip.
Read Only Memory (ROM)
ROM holds the prograin instructions and the constant data.
Microcontrollers use one or n1ore of the following 1
ne1nory types
for this purpose:
• ROM (n1ask-programmed ROM),
• PROM (one-time programmable ROM, whjch is not field
progra1nn
1able),
• EPROM (field progra1nmable and usually UV erasable),
• EEPROM (field progra1
nmable, electrically erasable,
erasable) and flash (sin1ilar to EEPROM technology).
• Microcontrollers can have 4K, 8K and l6K, etc. of ROM
byte
Random Access Memory (RAM)
• is used to hold intennediate results and oth er temporary data
during the execution of the program. Typically, 1
nicrocontrollers
have a few hundreds of bytes of RAM.
Special-Function Registers
• control various functions of a microcontroller. These are divided
into two groups:
• Registers vi.red into the CPU
- Do not necessarily fonn part of addressable rnemory.
- Used to control progra1n flow and arith1netic functions.
- Exarnples, status register, progra1ncounter, stack
pointer, etc.
Registers
• Register is used
manipulated.
to hold the contents of data being
• Registers required by peripheral components
- The contents of these registers include set a timer or enable
serial con1munication.
-Exa1
1
1ples, a progratn counter, stack pointer, RAM address
register, program address register and PC i11cre1nenter.
Peripheral Components
• The analogue-to-digital converter - provides an interface
between the mjcrocontroller and the sensors that produce analogue
electrical equivalents
controlled.
of the actual physical parameters to be
• The digital-to-analogue converter - provides an interface
between the mjcrocontroller and the actuators
control function.
that provide the
• 1/0 ports - provide an interface between the nlicrocontroller and
the periphera l 1
/0 devices such as the keyboard, display, etc.
• Counters/timers - are used to keep time and/or nleasure the
ti1ne terval between events, count the number of events and
generate
- . . .r n r the serial potis.
Watchdog timer
A specialized program found as pait of the microcontroUer
designed to prevent the 1
n icrocontroller from halting or "locking
up" because of a user-written program since the instructions are
processed step-by-step.
Uses a routine that is based on tuning. If a program has not been
completed or repeated as a loop within a certain ainount of time,
the watchdog timer issues a reset command.
Asystem reset sets all the register values to zero.
The reset feah1re allows the controller to recover from the crash .
It releases the program and sets the controller to start over again.
Stack Pointer and Program Counter
• Stack pointer - keeps track of the last stack location used
while the processor is busy manipulating data values,
checking ports, or checking interrupts.
• Program counter - is used to hold the address of the
instruction to be executed next.
Buses
• Bus represents a physical connect ion used to carry a signal
from one point to another inside a microcontroller. The signal
carried by a bus may represen t address, data, control signa l,
or power.
MJCROCONTROLLER OPERATION
MODULE
• When a tnicrocontroller is mounted on a circuit board with
other compon ents function as a single unit, is referred as a
module or a microcontroller board.
• A n1icrocontroller n1odu le typica lly consists of microcontroller ,
a power source, an interface for connecting to a progra1
nrning
device, I/O ports, and additional 1
nen1ory.
• A power source - powers the microcontroller and any
accompanying components located on the printed circuit board.
• An interface - communicate with the controller.
• A set of input/output (l/O) ports - send and receive signa ls
from the devices the microcontroUer is designed to control.
• I/0 ports when progra tnlned as an output pin, each pin can
output digital signals. When programmed as an input pin, each
pin can receive digital signals.
• Digita l-to-analog and analog-to-digital converters change the
digital pulses into analog signals.

More Related Content

Similar to microcontroller-presentation-1-638 (30 files merged).pptx

MergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptxMergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptxbhaveshagrawal35
 
Microcontroller overview 1
Microcontroller overview 1Microcontroller overview 1
Microcontroller overview 1Sally Salem
 
8051 microcontroller and embedded training (sahil gupta 9068557926)
8051 microcontroller and embedded training  (sahil gupta   9068557926)8051 microcontroller and embedded training  (sahil gupta   9068557926)
8051 microcontroller and embedded training (sahil gupta 9068557926)Sahil Gupta
 
20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notesRavali Sunki
 
introduction of microprocessor
introduction of microprocessorintroduction of microprocessor
introduction of microprocessorReetika Singh
 
8051 microcontroller Microcontroller _2024.pptx
8051 microcontroller Microcontroller _2024.pptx8051 microcontroller Microcontroller _2024.pptx
8051 microcontroller Microcontroller _2024.pptxrohithansaliya2
 
EE6602 Embedded System
EE6602 Embedded SystemEE6602 Embedded System
EE6602 Embedded Systemrmkceteee
 
Difference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and MicrocontrollersDifference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and Microcontrollerselprocus
 
Unit 2 - Microprocessor & Microcontroller.pptx
Unit 2 -  Microprocessor & Microcontroller.pptxUnit 2 -  Microprocessor & Microcontroller.pptx
Unit 2 - Microprocessor & Microcontroller.pptxCharunnath S V
 
Overview of microcontroller and microprocessor
Overview of microcontroller and microprocessor Overview of microcontroller and microprocessor
Overview of microcontroller and microprocessor Mrunal Deshkar
 
Computer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationComputer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationAmrutaMehata
 
microcontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdfmicrocontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdf818Farida
 
20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notesManikanteswar Madala
 
Download
DownloadDownload
Downloadjaihooo
 
Ajal mod 1
Ajal mod 1Ajal mod 1
Ajal mod 1AJAL A J
 
EMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering studentsEMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering studentseceprinter6
 

Similar to microcontroller-presentation-1-638 (30 files merged).pptx (20)

MergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptxMergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptx
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Arjit intro
Arjit introArjit intro
Arjit intro
 
Microcontroller overview 1
Microcontroller overview 1Microcontroller overview 1
Microcontroller overview 1
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
8051 microcontroller and embedded training (sahil gupta 9068557926)
8051 microcontroller and embedded training  (sahil gupta   9068557926)8051 microcontroller and embedded training  (sahil gupta   9068557926)
8051 microcontroller and embedded training (sahil gupta 9068557926)
 
20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes
 
introduction of microprocessor
introduction of microprocessorintroduction of microprocessor
introduction of microprocessor
 
8051 microcontroller Microcontroller _2024.pptx
8051 microcontroller Microcontroller _2024.pptx8051 microcontroller Microcontroller _2024.pptx
8051 microcontroller Microcontroller _2024.pptx
 
EE6602 Embedded System
EE6602 Embedded SystemEE6602 Embedded System
EE6602 Embedded System
 
Difference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and MicrocontrollersDifference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and Microcontrollers
 
Unit 2 - Microprocessor & Microcontroller.pptx
Unit 2 -  Microprocessor & Microcontroller.pptxUnit 2 -  Microprocessor & Microcontroller.pptx
Unit 2 - Microprocessor & Microcontroller.pptx
 
Overview of microcontroller and microprocessor
Overview of microcontroller and microprocessor Overview of microcontroller and microprocessor
Overview of microcontroller and microprocessor
 
Computer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationComputer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organization
 
Mod3
Mod3Mod3
Mod3
 
microcontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdfmicrocontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdf
 
20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes
 
Download
DownloadDownload
Download
 
Ajal mod 1
Ajal mod 1Ajal mod 1
Ajal mod 1
 
EMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering studentsEMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering students
 

Recently uploaded

SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 

Recently uploaded (20)

SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 

microcontroller-presentation-1-638 (30 files merged).pptx

  • 2. WHAT IS A MICROCONTROLLER? ,. A microcontroller is an integrated circuit (IC) that can be programmed to perfo1 1n a set of functions to control a collection of electronic devices. ,. A self-conta ined systen1 in which a processor, support, memory, and input/output (1/0) are all contained in a single package. ,.. Being program1 nable is what 1 nakes the n1icrocontroller . uruque.
  • 3. MICROCONTROLLER PACKAGING • • Fro1 n left to right: PIC l 2F508, PIC 16F84A, PIC l6C72, Motorola 68HC05BJ6, PIC 16F877, Motorola 68000
  • 4. Types of Microcontrollers Ml croc on1roll1rt Bits Memory/devices 4 8 16 32 Embedded External lrlstrucllon se1 Memory 1rcl'lllecture CISC RISC Princeton Harvard F1mlty 8051 Motorola PIC Texas National ARM others l nlel Atmel oanas S iemens Ptul s
  • 5. 1 - ACCORDING TO BITS 4-BTTMICROCONTR OLLERS · : · ALU perforn1s a1ith1netic and logical operations on a nibble (4-bits) at an instruction . · : · Internal bus width of 4-bit. · = · S1nall size, 1ninimu1 n pin count and low cost controllers. · : · Low power consun1ption and used for low end applications like LED & LCD display drivers, portable battery chargers. Jes: Renasa M3450 I MEL. 256 and ATAM862 series from
  • 6. 8-BIT MICROCONTROLLER · : · ALU performs arith1 netic and logical operations on a byte (8-bits) at an instruction. · : · Internal bus width of 8-bit. · : · Examples: Intel 8051 family fa1 uily. and Motorola MC68HC11
  • 7. 16-BIT MICROCONTROLLER · :· ALU perfonn s arithrnetic and logical operations on a word (16-bits) at an instruction. · :· internal bus width of 16-bit microcontroller is of 16-bit. : · Enhanced performance, computing capability and greater precision as co1 npared to the 8-bit 1 nicrocontro llers. · : · Examples: Intel 8096 falnily, Motorola MC68HC12 and MC68332 farnilies.
  • 8. 32-BIT MICROCONTROLLER · : · ALU perfonns arithn1etic and logical operations on a double word (32-bits) at an instruction. · : · Internal bus width of 32-bit. · : · Much more enhanced performan ce, computing capability with greater precision as compared to 16-bit microcontrollers. · : · Examples: Intel 80960 Intel/Atmel 25 1family. family, Motorola M683xx and
  • 9. 2 - ACCORDING TO MEMORY/DEVICES EMBEDDED MICROCONTROLLERS ,. An embedded system has a 1 nicrocontroller unit that has all the functiona l blocks (including progran1 as well as data n1e1nory) available on a the same chip. ,. Exainple: 8051 having Prograin & Data Memory, 1 /0 Ports, Serial Commu nication, Counters and Timers and Interrupt Control logic on the chip.
  • 10.
  • 11. EXTERNAL MEMORY MlCROCONTROLLERS ,,. An external systen1 has a microcontroller unit that does not have all the functional blocks available on a chip. ,,. AU or part of the memory units are externally interfaced using an interfacing circuit called the glue circuit. ,,. Exa1 nple: 8031 has no progra1 n memo1 y on the chip.
  • 12.
  • 13. 3 - ACCODING TO INSTRUCTION SET CISC (COMPLEX INSTRUCTION SET COMPUTER) ARCHITECTURE MICROCONTROLLERS • Has an instruction set that supports many addressing modes for the arithmetic and logical instructions, data transfer and me1 nory accesses instructions. • Many of the instJuctions are macro like. • Allows the progra1nmer to use one instruction many simpler instructions. in place of • Example: Intel 8096 fa1 nily.
  • 14. RISC (REDUCED INSTRUCTION SET COMPUTER) ARCHITECTURE MlCROCONTROLLERS • Contains an instruction set that supports fewer addressing modes for the arithmetic and logical instructions and for data transfer instructions. • Allows si1 nultaneous access of program and data. • lnstruction pipelining increases execution speed • Allow each instruction to operate on any register or use any addressing 1node. • Smaller chip and pin count. • Very low power consumption.
  • 15. 4 - ACCORDING TO MEMORY ARCHITECTURE The architectures of inicrocontrollers differ in the way data and programs are stored and accessed. 1. VON-NEUMAN /PRINCETON ARCIDTECTURE o Single data bus that is used to fetch both instructions and data. o Program instructions tnen1ory. and data are stored in a common main o Wben such a controller addresses 1 nain me1 nory, it first fetches an instruction, and then it fetches the data to support the instruction.
  • 16. o Simplifies the 1 nicrocontroller memory is accessed. design because only one o The weakness is that two separate fetches can slow up the controller's operation. o Example: Motorola 68HC1 I.
  • 18. 2. HARV ARD ARCHITECTURE oSeparate data bus and an instruction bus. o Execution occur in parallel. oMuch faster execution than Von-Neuman architecture. o Design complexity. o Example: intel MCS-51 fa1 nily and PIC microcontroUers .
  • 19. Control space Data Instruction Decode PC stack Processor and Register Interface Data Addr Ctr1 Register Space Program ROM .Addr Ctr1
  • 20. GENERAL MTCROCONTROLLER ARCffiTECTUR E EPR0'.1 Progron• C:OUnle!r Sl!lek n t t a ROM • a,,,.- ln stru<:tiooal reg >lcr O sclllaior I G<:n" " 'I purpo 1'<1 > , h l t t Vatchdog tlnlcr lnstruct1on decoder - a a 1 A L U Purt c Port A P on B
  • 22. Central Processing Unit (CPU) The central processing unit processes the program. It executes the instructions stored in the program 1 ne1nory pointed to by the program counter in synchronization with the clock signal. ALU The arithn1etic/logic unit (ALU) performs 1 nath e1 natical and logical operations on data. Oscillator A complex digital device that generates steady pulse rate required for timing. All of the separate functions are controlled by one central timing syste1n. The ti1 ning pulse provides the basis for proper sequence of all the separate sections of the n1icrocontroller hip.
  • 23. Read Only Memory (ROM) ROM holds the prograin instructions and the constant data. Microcontrollers use one or n1ore of the following 1 ne1nory types for this purpose: • ROM (n1ask-programmed ROM), • PROM (one-time programmable ROM, whjch is not field progra1nn 1able), • EPROM (field progra1nmable and usually UV erasable), • EEPROM (field progra1 nmable, electrically erasable, erasable) and flash (sin1ilar to EEPROM technology). • Microcontrollers can have 4K, 8K and l6K, etc. of ROM byte
  • 24. Random Access Memory (RAM) • is used to hold intennediate results and oth er temporary data during the execution of the program. Typically, 1 nicrocontrollers have a few hundreds of bytes of RAM. Special-Function Registers • control various functions of a microcontroller. These are divided into two groups: • Registers vi.red into the CPU - Do not necessarily fonn part of addressable rnemory. - Used to control progra1n flow and arith1netic functions. - Exarnples, status register, progra1ncounter, stack pointer, etc.
  • 25. Registers • Register is used manipulated. to hold the contents of data being • Registers required by peripheral components - The contents of these registers include set a timer or enable serial con1munication. -Exa1 1 1ples, a progratn counter, stack pointer, RAM address register, program address register and PC i11cre1nenter.
  • 26. Peripheral Components • The analogue-to-digital converter - provides an interface between the mjcrocontroller and the sensors that produce analogue electrical equivalents controlled. of the actual physical parameters to be • The digital-to-analogue converter - provides an interface between the mjcrocontroller and the actuators control function. that provide the • 1/0 ports - provide an interface between the nlicrocontroller and the periphera l 1 /0 devices such as the keyboard, display, etc. • Counters/timers - are used to keep time and/or nleasure the ti1ne terval between events, count the number of events and generate - . . .r n r the serial potis.
  • 27. Watchdog timer A specialized program found as pait of the microcontroUer designed to prevent the 1 n icrocontroller from halting or "locking up" because of a user-written program since the instructions are processed step-by-step. Uses a routine that is based on tuning. If a program has not been completed or repeated as a loop within a certain ainount of time, the watchdog timer issues a reset command. Asystem reset sets all the register values to zero. The reset feah1re allows the controller to recover from the crash . It releases the program and sets the controller to start over again.
  • 28. Stack Pointer and Program Counter • Stack pointer - keeps track of the last stack location used while the processor is busy manipulating data values, checking ports, or checking interrupts. • Program counter - is used to hold the address of the instruction to be executed next. Buses • Bus represents a physical connect ion used to carry a signal from one point to another inside a microcontroller. The signal carried by a bus may represen t address, data, control signa l, or power.
  • 29. MJCROCONTROLLER OPERATION MODULE • When a tnicrocontroller is mounted on a circuit board with other compon ents function as a single unit, is referred as a module or a microcontroller board. • A n1icrocontroller n1odu le typica lly consists of microcontroller , a power source, an interface for connecting to a progra1 nrning device, I/O ports, and additional 1 nen1ory.
  • 30. • A power source - powers the microcontroller and any accompanying components located on the printed circuit board. • An interface - communicate with the controller. • A set of input/output (l/O) ports - send and receive signa ls from the devices the microcontroUer is designed to control. • I/0 ports when progra tnlned as an output pin, each pin can output digital signals. When programmed as an input pin, each pin can receive digital signals. • Digita l-to-analog and analog-to-digital converters change the digital pulses into analog signals.