SlideShare una empresa de Scribd logo
1 de 42
DIFFERENCE BETWEEN MICROPROCESSOR ANDDIFFERENCE BETWEEN MICROPROCESSOR AND
MICROCONTROLLERMICROCONTROLLER
Microprocessor
1. Contains ALU, general purpose
registers, stack pointer,
program counter, clock timing
circuit, interrupt circuit.
2. Many instructions to move data
between memory and CPU.
3. It has one or two bit handling
instructions.
4. More access times for memory
and I/O devices .
5. Requires more hardware.
6. More flexible in design point of
view.
7. Single memory map for data
and code.
8. Less number of pins are
multifunctioned.
9. It concerned with rapid
movement of code & data from
external addresses to chip.
Microcontroller
Contains the circuitry of mp and
in addition built in ROM,
RAM, I/O devices, timers,
counters.
One or two instructions to move
data between memory and CPU.
Many bit handling instructions.
Less access times for built in
memory and I/O devices.
It requires less hardware.
Less flexible in design point of
view.
Separate memory map for data
and code.
More number of pins are
multifunctioned.
It concerned with rapid
movement of bits within the
chip.
ROMCPU
RA
M
I/O
port
Timer
Seria
l
COM
port
RO
M
RA
M
RO
M
I/O
port
CPU
Timer
Seria
l
COM
port
Data Bus
Address Bus
General purpose microprocessor system
Microcontroller
Microcontroller Survey
Microcontroller RAM ROM Counters I/O pins Other features
4-bit 256 4K 2 14 ADC, WDT
(M34501) (4-bit) (10 bit)
8-bit 128 4K 2 32 UART
(8051) bytes
16-bit 4K 8K 2 24 Counter array, ADC,
(68HC16Z3) bytes WDT
32-bit 32K 4 64 Color LCD Controller
bytes 3 UART,WDT,DMA,
PLL, Real time clock
Difference between RISC and CISC Processor
RISC CISC
1. Simple instructions taking one cycle Complex instructions taking multiple
cycles
2. Very few instructions refer memory Most instructions may refer memory
3. Instructions are executed by hardware Instructions are executed by
microprogram.
4. Few instructions Many instructions
5. Fixed format instructions Variable format instructions
6. Few addressing modes Many addressing modes
7. Multiple register set Single register set
8. Highly pipelined Not pipelined or less pipelined
9. Conditional jump can be based on Conditional jump is usually based on
a bit anywhere in memory. Status register bit.
TCY0 TCY1 TCY2 TCY3
Fetch1 Execute 1
Fetch2 Execute 2
Fetch3 Execute 3
Pipelining or parallelism
means fetching for next
instruction while executing
current instruction.
CPU
Memory
CP
U
Data Memory Program Memory
Von-Neumann or Princeton Harvard
Von-nuemann Architecture Harvard Architecture
1. Programs and data share the same Uses separate memory for programs and
memory space. Data.
2. Program and data fetches are done No need to have TDM for address and data
using TDM which affect performance. buses.
3. Code storage may not be optimal & Optimal code storage. Allows instn to be
requires multiple fetches to form prefetched & decoded while multiple data
instrn. being fetched & operated on.
Eg. Motorola 68HC11 mc PIC mc, MCS-51
8051 Architecture
Features:
1. Operating frequency is 12MHz
2. Separate 64K program and data memory
3. Multiply and divide instructions are available.
4. Boolean processor (operates on single bit)
5. 32 I/O lines can be used as four 8-bit ports (P0-P3) or 32 I/O
lines.
6. Two 16-bit Timers/Counters.
7. Serial interface : Full duplex serial data receiver/transmitter.
8. 4K bytes ROM
9. 128 bytes RAM
10.Two external interrupts through INTO and INT1 pins
Timer/Counter control logic
If you use a frequency source
as a crystal oscillator,
If you use a frequency source
as a TTL oscillator,
Oscillator
I/O PORTSI/O PORTS
Total 4 ports
1. Port 0 may serve as inputs, outputs, or as a low order
address and data bus for external memory.
2. Port 1 may be used as input/output port.
3. Port 2 may be used as input/output or high order
address byte.
4. Port 3 may be used as an input/output and for some
alternate function.
Each port consists of a latch, an output driver, and an
input buffer.
The bit latch is represented as a TypeD flipflop, which will clock in a value from
the internal bus in response to a “write to latch” signal, Q output of the flipflop is
placed on the internal bus in response to a “read latch” signal, level of the port
pin itself is placed on the internal bus in response to a “read pin” signal from the
CPU.
The output drivers of PortsO and2 are switchable to an internal ADDR and
ADDR/DATA bus by an internal CONTROL signal for use in external memory
access.
If P3 bit latch contains a 1, then the output level is controlled by the signal
“alternate output function". The actual P3.X pin level is always available to the
pin’s “alternate input function”.
To be used as an input, the port bit latch must contain a 1, which turns off the
output driver FET. Then, for Ports 1, 2, and 3, the pin is pulled high by the
internal pullup, but can be pulled low by an external source.
Because Ports 1, 2, and 3 have fixed internal pullups they are sometimes
called “qussi-bidirectional”ports as inputs they pull high and will source current
when externally pulled low. Port O, is “true” bidirectional, because when
configured as an input it floats.
To be used as an output, the port bit latch must contain a 0,which turns on the
output driver FET.
Port0
latch
Port1
latch
Port2
latch
Port3
latch
Port0 Port1 Port2 Port3
Interfacing external memories inInterfacing external memories in
8051Microcontroller8051Microcontroller
Accessing External Data Memory
8051-microcontroller
8051-microcontroller

Más contenido relacionado

La actualidad más candente

8051 microcontroller features
8051 microcontroller features8051 microcontroller features
8051 microcontroller features
Tech_MX
 
Study of 8051 microcontroller
Study of 8051 microcontrollerStudy of 8051 microcontroller
Study of 8051 microcontroller
918007165995
 
Atmel and pic microcontroller
Atmel and pic microcontrollerAtmel and pic microcontroller
Atmel and pic microcontroller
Tearsome Llantada
 

La actualidad más candente (19)

microcontroller-8051-ppt(1)
microcontroller-8051-ppt(1)microcontroller-8051-ppt(1)
microcontroller-8051-ppt(1)
 
MICROPROCESSOR & MICROCONTROLLER 8086,8051 Notes
MICROPROCESSOR & MICROCONTROLLER 8086,8051 NotesMICROPROCESSOR & MICROCONTROLLER 8086,8051 Notes
MICROPROCESSOR & MICROCONTROLLER 8086,8051 Notes
 
8051 microcontroller features
8051 microcontroller features8051 microcontroller features
8051 microcontroller features
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
8051 microcontroller lecture ppt by Tarun Khaneja ( 9034406598 )
8051 microcontroller lecture ppt by Tarun Khaneja ( 9034406598 )8051 microcontroller lecture ppt by Tarun Khaneja ( 9034406598 )
8051 microcontroller lecture ppt by Tarun Khaneja ( 9034406598 )
 
MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration
 
microprocessors
 microprocessors microprocessors
microprocessors
 
Embedded systems ppt i
Embedded systems ppt iEmbedded systems ppt i
Embedded systems ppt i
 
Applications of 8051 microcontrollers
Applications of 8051 microcontrollersApplications of 8051 microcontrollers
Applications of 8051 microcontrollers
 
Microcontroller 8096
Microcontroller 8096Microcontroller 8096
Microcontroller 8096
 
8051 microcontroller introduction
8051 microcontroller introduction8051 microcontroller introduction
8051 microcontroller introduction
 
Study of 8051 microcontroller
Study of 8051 microcontrollerStudy of 8051 microcontroller
Study of 8051 microcontroller
 
Atmel and pic microcontroller
Atmel and pic microcontrollerAtmel and pic microcontroller
Atmel and pic microcontroller
 
Ec6504 microprocessor and microcontroller
Ec6504 microprocessor and microcontrollerEc6504 microprocessor and microcontroller
Ec6504 microprocessor and microcontroller
 
itft-Microcontriller 8051
itft-Microcontriller 8051itft-Microcontriller 8051
itft-Microcontriller 8051
 
PIC 16F877A by PARTHIBAN. S.
PIC 16F877A   by PARTHIBAN. S.PIC 16F877A   by PARTHIBAN. S.
PIC 16F877A by PARTHIBAN. S.
 
Embedded System
Embedded SystemEmbedded System
Embedded System
 
Motorola 68hc11
Motorola 68hc11Motorola 68hc11
Motorola 68hc11
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 

Similar a 8051-microcontroller

AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
Vivek Venugopal
 
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
eceprinter6
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
snehapvs
 

Similar a 8051-microcontroller (20)

AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
 
Pic full note
Pic full notePic full note
Pic full note
 
assignment 1-MC.pdf
assignment 1-MC.pdfassignment 1-MC.pdf
assignment 1-MC.pdf
 
89s52 2
89s52 289s52 2
89s52 2
 
unit-2.pptx
unit-2.pptxunit-2.pptx
unit-2.pptx
 
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 MicrocontrollersSYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
 
Pc based wire less data aquisition system using rf(1)
Pc based wire less data aquisition system using rf(1)Pc based wire less data aquisition system using rf(1)
Pc based wire less data aquisition system using rf(1)
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
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
 
embedded system and microcontroller
 embedded system and microcontroller embedded system and microcontroller
embedded system and microcontroller
 
Gesture based vehicle movements control and alerting system docu
Gesture based vehicle movements control and alerting system docuGesture based vehicle movements control and alerting system docu
Gesture based vehicle movements control and alerting system docu
 
Important questions
Important questionsImportant questions
Important questions
 
AT89C51 Data sheets
AT89C51 Data sheetsAT89C51 Data sheets
AT89C51 Data sheets
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 
Bca examination 2015 csa
Bca examination 2015 csaBca examination 2015 csa
Bca examination 2015 csa
 
microcontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdfmicrocontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdf
 
LECT 2.pptx
LECT 2.pptxLECT 2.pptx
LECT 2.pptx
 
Embeded system
Embeded systemEmbeded system
Embeded system
 

Más de jhcid (20)

wireless-communication-architecture
 wireless-communication-architecture wireless-communication-architecture
wireless-communication-architecture
 
a-presentation-on-wireless-communication
 a-presentation-on-wireless-communication a-presentation-on-wireless-communication
a-presentation-on-wireless-communication
 
sonar
sonarsonar
sonar
 
satellite-communications
 satellite-communications satellite-communications
satellite-communications
 
ppt-on-satellite
ppt-on-satelliteppt-on-satellite
ppt-on-satellite
 
satellite-communications
satellite-communicationssatellite-communications
satellite-communications
 
satellite-communication
 satellite-communication satellite-communication
satellite-communication
 
satellite-communication-ppt
satellite-communication-pptsatellite-communication-ppt
satellite-communication-ppt
 
radar
 radar radar
radar
 
radar
 radar radar
radar
 
radar-principles
radar-principlesradar-principles
radar-principles
 
radar
radarradar
radar
 
cellular-communication
cellular-communicationcellular-communication
cellular-communication
 
cellular communication
cellular communicationcellular communication
cellular communication
 
-introduction-to-cellular-mobile-communications
-introduction-to-cellular-mobile-communications-introduction-to-cellular-mobile-communications
-introduction-to-cellular-mobile-communications
 
cellular-communications
 cellular-communications cellular-communications
cellular-communications
 
arduino-1
 arduino-1 arduino-1
arduino-1
 
arduino
 arduino arduino
arduino
 
arduino
arduinoarduino
arduino
 
arduino-ppt
 arduino-ppt arduino-ppt
arduino-ppt
 

Último

scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
HenryBriggs2
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 

Último (20)

Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Rums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdfRums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdf
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 

8051-microcontroller

  • 1. DIFFERENCE BETWEEN MICROPROCESSOR ANDDIFFERENCE BETWEEN MICROPROCESSOR AND MICROCONTROLLERMICROCONTROLLER Microprocessor 1. Contains ALU, general purpose registers, stack pointer, program counter, clock timing circuit, interrupt circuit. 2. Many instructions to move data between memory and CPU. 3. It has one or two bit handling instructions. 4. More access times for memory and I/O devices . 5. Requires more hardware. 6. More flexible in design point of view. 7. Single memory map for data and code. 8. Less number of pins are multifunctioned. 9. It concerned with rapid movement of code & data from external addresses to chip. Microcontroller Contains the circuitry of mp and in addition built in ROM, RAM, I/O devices, timers, counters. One or two instructions to move data between memory and CPU. Many bit handling instructions. Less access times for built in memory and I/O devices. It requires less hardware. Less flexible in design point of view. Separate memory map for data and code. More number of pins are multifunctioned. It concerned with rapid movement of bits within the chip.
  • 3. Microcontroller Survey Microcontroller RAM ROM Counters I/O pins Other features 4-bit 256 4K 2 14 ADC, WDT (M34501) (4-bit) (10 bit) 8-bit 128 4K 2 32 UART (8051) bytes 16-bit 4K 8K 2 24 Counter array, ADC, (68HC16Z3) bytes WDT 32-bit 32K 4 64 Color LCD Controller bytes 3 UART,WDT,DMA, PLL, Real time clock
  • 4. Difference between RISC and CISC Processor RISC CISC 1. Simple instructions taking one cycle Complex instructions taking multiple cycles 2. Very few instructions refer memory Most instructions may refer memory 3. Instructions are executed by hardware Instructions are executed by microprogram. 4. Few instructions Many instructions 5. Fixed format instructions Variable format instructions 6. Few addressing modes Many addressing modes 7. Multiple register set Single register set 8. Highly pipelined Not pipelined or less pipelined 9. Conditional jump can be based on Conditional jump is usually based on a bit anywhere in memory. Status register bit.
  • 5. TCY0 TCY1 TCY2 TCY3 Fetch1 Execute 1 Fetch2 Execute 2 Fetch3 Execute 3 Pipelining or parallelism means fetching for next instruction while executing current instruction. CPU Memory CP U Data Memory Program Memory Von-Neumann or Princeton Harvard
  • 6.
  • 7. Von-nuemann Architecture Harvard Architecture 1. Programs and data share the same Uses separate memory for programs and memory space. Data. 2. Program and data fetches are done No need to have TDM for address and data using TDM which affect performance. buses. 3. Code storage may not be optimal & Optimal code storage. Allows instn to be requires multiple fetches to form prefetched & decoded while multiple data instrn. being fetched & operated on. Eg. Motorola 68HC11 mc PIC mc, MCS-51
  • 8. 8051 Architecture Features: 1. Operating frequency is 12MHz 2. Separate 64K program and data memory 3. Multiply and divide instructions are available. 4. Boolean processor (operates on single bit) 5. 32 I/O lines can be used as four 8-bit ports (P0-P3) or 32 I/O lines. 6. Two 16-bit Timers/Counters. 7. Serial interface : Full duplex serial data receiver/transmitter. 8. 4K bytes ROM 9. 128 bytes RAM 10.Two external interrupts through INTO and INT1 pins
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30. If you use a frequency source as a crystal oscillator, If you use a frequency source as a TTL oscillator, Oscillator
  • 31. I/O PORTSI/O PORTS Total 4 ports 1. Port 0 may serve as inputs, outputs, or as a low order address and data bus for external memory. 2. Port 1 may be used as input/output port. 3. Port 2 may be used as input/output or high order address byte. 4. Port 3 may be used as an input/output and for some alternate function. Each port consists of a latch, an output driver, and an input buffer.
  • 32. The bit latch is represented as a TypeD flipflop, which will clock in a value from the internal bus in response to a “write to latch” signal, Q output of the flipflop is placed on the internal bus in response to a “read latch” signal, level of the port pin itself is placed on the internal bus in response to a “read pin” signal from the CPU. The output drivers of PortsO and2 are switchable to an internal ADDR and ADDR/DATA bus by an internal CONTROL signal for use in external memory access. If P3 bit latch contains a 1, then the output level is controlled by the signal “alternate output function". The actual P3.X pin level is always available to the pin’s “alternate input function”. To be used as an input, the port bit latch must contain a 1, which turns off the output driver FET. Then, for Ports 1, 2, and 3, the pin is pulled high by the internal pullup, but can be pulled low by an external source. Because Ports 1, 2, and 3 have fixed internal pullups they are sometimes called “qussi-bidirectional”ports as inputs they pull high and will source current when externally pulled low. Port O, is “true” bidirectional, because when configured as an input it floats. To be used as an output, the port bit latch must contain a 0,which turns on the output driver FET.
  • 33.
  • 35.
  • 36.
  • 37.
  • 38. Interfacing external memories inInterfacing external memories in 8051Microcontroller8051Microcontroller
  • 39.