SlideShare a Scribd company logo
1 of 14
Download to read offline
Pari vallal Kannan
Center for Integrated Circuits and Systems
University of Texas at Dallas
8051 - Interfacing
EE4380 Fall 02
Class 5
10-Sep-02 2
8051 Interfacing
l 8051 Pinout
l Functions of the 8051 pins
l Power-On Reset
l Clock
l Address and data Bus
l External Vs On-chip code memory
l 8051 Interfacing basics
l Address Map and Address Generation
10-Sep-02 3
8051 Pinout
l Power - Vcc, Vss
l Reset - RST
l Crystal - XTAL[1,2]
l External device interfacing
– EA, ALE, PSEN, WR, RD
l I/O Port
– P0[7;0], P1[7:0], P2[7:0], P3
l P3 is shared with control lines
– Serial I/O RxD, TxD,
– external interrupts INT0,
INT1
– Counter control T0, T1
l P0 and P2 are multiplexed
with Address and Data bus
10-Sep-02 4
8051 Clock
l 8051 has an on-chip
oscillator
l It needs an external
crystal
l Standard connection as
shown
l Crystal decides the
operating frequency of
the 8051
XTAL2
XTAL1
GND
30pF
30pF
11.059MHz
10-Sep-02 5
8051 Reset
l RESET is an active High
input
l When RESET is set to High,
8051 goes back to the power-
on state
l Power-On Reset
– Push PB and active High on
RST
– Release PB, Capacitor
discharges and RST goes
low
l RST must stay high for a min
of 2 machine cycles
RST
10uF
8.2K
GND
PB
Vcc
10-Sep-02 6
8051 – Address Bus Demuxing
l ALE – Address Latch
Enable
l 8051 drives it high when
address is available on
AD[7,0]
l ALE is used as the
“Enable” signal for an
external latch (74LS573
or 373)
l P0 and P2 unavailable
8051/
8031 ALE
AD0-7
A8-15
74LS573
D0
D7
A0
A7
A8
A15
10-Sep-02 7
8051 External Code mem Access
l 8051 devices can have either on-chip or external code
ROM
l Special pin EA decides which is used and PSEN is
used to enable it.
l EA is an active low input to 8051
– EA connected to GND (Low) means 8051 uses external
memory for code
– EA connected to Vcc (High) means 8051 uses on-chip ROM
for code memory
l PSEN – Program Store Enable, active low
– Connect this to the OE (output enable) of external ROM device
10-Sep-02 8
Microprocessor Interfacing - Basics
l Any CPU (8051) has
– Address bus A[15:0]
– Data bus D[7:0]
– Control lines : PSEN, RD, WR
l A Single Processor uP based system has one
CPU and many devices interfaced to it
l Only one Address bus and one data bus in a
Single Processor system
– ABUS and DBUS are common for all interfaced
devices and the CPU
10-Sep-02 9
Microprocessor Interfacing (contd.)
l All Microprocessor compatible devices have
enable lines (CE - Chip Enable or CS - Chip
Select)
– A function of the address bus f(A[15:0]) is
connected to the CE of every device interfaced
– This function is unique for every interfaced device
l The CPU accesses each interfaced device by
way of this unique function
– This function is commonly referred to as the
address of the device
10-Sep-02 10
Microprocessor Interfacing (contd.)
l Interfaced devices either READ or WRITE or
do BOTH on the DBUS.
– Only one device has “exclusive access”
– Achieved by using Tri-State buses
l Devices that WRITE to DBUS have CE and
RD/OE only
– Read Cycle: Assert CE and then assert RD/OE
l Devices that READ and WRITE to DBUS have
CE, RD/OE and WR
– Write Cycle: Assert CE and then assert WR
10-Sep-02 11
8051 Ext. Code Mem Read Cycle
10-Sep-02 12
8051 – Address Generation
l Address Generator is a
piece of hardware that
produces unique
addresses to each
interfaced device
l Example
– F1 = A15 . A14
– F2 = A15 . A14’
– F3 = A15’. A14’
8051
A[15:0]
Addr. Gen
Device 1
Device 2
Device 3
CE
CE
CE
f1
f2
f3
D[7:0]
D[7:0]
D[7:0]
D[7:0]
A[15:0]
A[15:0]
A[15:0]
10-Sep-02 13
8051- Address Map
l Address Map
– List of addresses of all
interfaced devices
– List of sizes of each
interfaced device
l Example
– 4K of Code Rom at 0x0000
– 4K of Code RAM at 0x4000
– 32K of Data RAM at 0x0000
– 16 bytes of Data RAM (LCD)
at 0x 8000
– 2bytes of Data RAM (7 seg
LEDs) at 0xF000
Code Memory Data Memory
0x0000
0x4000
0x1000
0x5000
RAM1 32K
0x0000
0x8000
0xF000
LCD 8b
LEd 2b
Code RAM 4K
Code ROM1 4K
10-Sep-02 14
Thanks
l Next Class
– How to design the address generator ?
– Interface external memory – Data, Code,
data+Code
– Interface external non-memory devices – ADC,
LCD
– Timing considerations for interfacing

More Related Content

What's hot

Ppt on interfacing led and 7 segment with 8951
Ppt on interfacing led and 7 segment with 8951 Ppt on interfacing led and 7 segment with 8951
Ppt on interfacing led and 7 segment with 8951 pooja jaiswal
 
Basics of peripheral devices and Working
Basics of peripheral devices and WorkingBasics of peripheral devices and Working
Basics of peripheral devices and WorkingDr.YNM
 
8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or Memory8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or MemorySaumay Paul
 
8085 microprocessor Architecture and Pin description
8085 microprocessor Architecture and Pin description 8085 microprocessor Architecture and Pin description
8085 microprocessor Architecture and Pin description Vijay Kumar
 
An application of 8085 register interfacing with LED
An application  of 8085 register interfacing with LEDAn application  of 8085 register interfacing with LED
An application of 8085 register interfacing with LEDTaha Malampatti
 
Embedded systems and its ports
Embedded systems and its portsEmbedded systems and its ports
Embedded systems and its portsnitin kumar
 
Bus Structure, Memory and I/O Interfacing
Bus Structure, Memory and I/O InterfacingBus Structure, Memory and I/O Interfacing
Bus Structure, Memory and I/O InterfacingHetauda City College
 
Microprocessor 8085 Chapter 4
Microprocessor 8085 Chapter 4Microprocessor 8085 Chapter 4
Microprocessor 8085 Chapter 4Rishikesh Bhavsar
 
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSORTRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSORSubash Sambath Kumar
 
Detailed Explanation of Pin Description of 8085 microprocessor
Detailed Explanation of Pin Description of  8085 microprocessorDetailed Explanation of Pin Description of  8085 microprocessor
Detailed Explanation of Pin Description of 8085 microprocessorRamesh Dabhole
 
I/o and memory interfacing
I/o and memory interfacingI/o and memory interfacing
I/o and memory interfacingRuchi Srivastava
 
An application of 8085 register interfacing with LCD
An application  of 8085 register interfacing with LCDAn application  of 8085 register interfacing with LCD
An application of 8085 register interfacing with LCDTaha Malampatti
 
Microcontrollers 80 Marks Sample Question Paper
Microcontrollers   80 Marks Sample Question PaperMicrocontrollers   80 Marks Sample Question Paper
Microcontrollers 80 Marks Sample Question Paperprathik
 
Pin configuration of 8085
Pin configuration of 8085Pin configuration of 8085
Pin configuration of 808582338476
 
PIN Specification of 8086 Microprocessor
PIN Specification of 8086 MicroprocessorPIN Specification of 8086 Microprocessor
PIN Specification of 8086 MicroprocessorNikhil Kumar
 
8085 ppi 8255 and 8155
8085 ppi 8255 and 81558085 ppi 8255 and 8155
8085 ppi 8255 and 8155Nitin Ahire
 
8051 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay Kumar8051 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay KumarVijay Kumar
 

What's hot (20)

Ppt on interfacing led and 7 segment with 8951
Ppt on interfacing led and 7 segment with 8951 Ppt on interfacing led and 7 segment with 8951
Ppt on interfacing led and 7 segment with 8951
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
 
Basics of peripheral devices and Working
Basics of peripheral devices and WorkingBasics of peripheral devices and Working
Basics of peripheral devices and Working
 
8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or Memory8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or Memory
 
8085 microprocessor Architecture and Pin description
8085 microprocessor Architecture and Pin description 8085 microprocessor Architecture and Pin description
8085 microprocessor Architecture and Pin description
 
An application of 8085 register interfacing with LED
An application  of 8085 register interfacing with LEDAn application  of 8085 register interfacing with LED
An application of 8085 register interfacing with LED
 
Embedded systems and its ports
Embedded systems and its portsEmbedded systems and its ports
Embedded systems and its ports
 
Bus Structure, Memory and I/O Interfacing
Bus Structure, Memory and I/O InterfacingBus Structure, Memory and I/O Interfacing
Bus Structure, Memory and I/O Interfacing
 
Microprocessor 8085 Chapter 4
Microprocessor 8085 Chapter 4Microprocessor 8085 Chapter 4
Microprocessor 8085 Chapter 4
 
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSORTRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
 
microprocessor 8085
microprocessor 8085microprocessor 8085
microprocessor 8085
 
Detailed Explanation of Pin Description of 8085 microprocessor
Detailed Explanation of Pin Description of  8085 microprocessorDetailed Explanation of Pin Description of  8085 microprocessor
Detailed Explanation of Pin Description of 8085 microprocessor
 
I/o and memory interfacing
I/o and memory interfacingI/o and memory interfacing
I/o and memory interfacing
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
An application of 8085 register interfacing with LCD
An application  of 8085 register interfacing with LCDAn application  of 8085 register interfacing with LCD
An application of 8085 register interfacing with LCD
 
Microcontrollers 80 Marks Sample Question Paper
Microcontrollers   80 Marks Sample Question PaperMicrocontrollers   80 Marks Sample Question Paper
Microcontrollers 80 Marks Sample Question Paper
 
Pin configuration of 8085
Pin configuration of 8085Pin configuration of 8085
Pin configuration of 8085
 
PIN Specification of 8086 Microprocessor
PIN Specification of 8086 MicroprocessorPIN Specification of 8086 Microprocessor
PIN Specification of 8086 Microprocessor
 
8085 ppi 8255 and 8155
8085 ppi 8255 and 81558085 ppi 8255 and 8155
8085 ppi 8255 and 8155
 
8051 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay Kumar8051 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay Kumar
 

Viewers also liked (20)

Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 MicrocontrollerInterfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
 
8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller Notes
 
Microcontroller
MicrocontrollerMicrocontroller
Microcontroller
 
Dc motor interfacing with 8051 microcontroller
Dc motor interfacing with 8051 microcontrollerDc motor interfacing with 8051 microcontroller
Dc motor interfacing with 8051 microcontroller
 
8051 interfacing and applications (1991) ww
8051 interfacing and applications (1991) ww8051 interfacing and applications (1991) ww
8051 interfacing and applications (1991) ww
 
Class6
Class6Class6
Class6
 
Class9
Class9Class9
Class9
 
Class4
Class4Class4
Class4
 
Class10
Class10Class10
Class10
 
Class2
Class2Class2
Class2
 
Delay
DelayDelay
Delay
 
The 8255 PPI
The 8255 PPIThe 8255 PPI
The 8255 PPI
 
Sensors And Fuel Delivery
Sensors And Fuel DeliverySensors And Fuel Delivery
Sensors And Fuel Delivery
 
Interfacing 8051 with Real World
Interfacing 8051 with Real WorldInterfacing 8051 with Real World
Interfacing 8051 with Real World
 
Micro c lab5(stepper-motor)
Micro c lab5(stepper-motor)Micro c lab5(stepper-motor)
Micro c lab5(stepper-motor)
 
8255 PPI
8255 PPI8255 PPI
8255 PPI
 
adc dac converter
adc dac converteradc dac converter
adc dac converter
 
Class8
Class8Class8
Class8
 
Adc dac converter
Adc dac converterAdc dac converter
Adc dac converter
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontroller
 

Similar to Class5

28. 8251 programmable communication interface
28. 8251 programmable communication interface28. 8251 programmable communication interface
28. 8251 programmable communication interfacesandip das
 
Manual HUB SERIAL EQUINOX
Manual HUB SERIAL EQUINOXManual HUB SERIAL EQUINOX
Manual HUB SERIAL EQUINOXPablo Vera
 
8051 microcontroller training (2) (sahil gupta 9068557926)
8051 microcontroller training  (2) (sahil gupta   9068557926)8051 microcontroller training  (2) (sahil gupta   9068557926)
8051 microcontroller training (2) (sahil gupta 9068557926)Sahil Gupta
 
Presentation On: "Micro-controller 8051 & Embedded System"
Presentation On: "Micro-controller 8051 & Embedded System"Presentation On: "Micro-controller 8051 & Embedded System"
Presentation On: "Micro-controller 8051 & Embedded System"surabhii007
 
8051 microcontroller training (sahil gupta 9068557926)
8051 microcontroller training  (sahil gupta   9068557926)8051 microcontroller training  (sahil gupta   9068557926)
8051 microcontroller training (sahil gupta 9068557926)Sahil Gupta
 
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerAmandeep Alag
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller nitugatkal
 
Microcontroller (8051) by K. Vijay Kumar
Microcontroller (8051) by K. Vijay KumarMicrocontroller (8051) by K. Vijay Kumar
Microcontroller (8051) by K. Vijay KumarVijay Kumar
 
8251A INTEL Universal Synchronous Asynchronous Receiver Transmitter..pptx
8251A INTEL Universal Synchronous Asynchronous Receiver Transmitter..pptx8251A INTEL Universal Synchronous Asynchronous Receiver Transmitter..pptx
8251A INTEL Universal Synchronous Asynchronous Receiver Transmitter..pptxAyushChoudhary215905
 
Study of Data sheet of 56824 DSP processors
Study of Data sheet of 56824 DSP processorsStudy of Data sheet of 56824 DSP processors
Study of Data sheet of 56824 DSP processorsEr. Ashish Pandey
 
Microprocessors 8085 pin diagram
Microprocessors 8085 pin diagramMicroprocessors 8085 pin diagram
Microprocessors 8085 pin diagramVARUN BABUNELSON
 
Microcontroller 8051 training
Microcontroller 8051 trainingMicrocontroller 8051 training
Microcontroller 8051 trainingPradip Bhandari
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051Sadiq Rahim
 
Live B tech Projects & Industrial Training @Technogroovy
Live B tech Projects & Industrial Training @Technogroovy Live B tech Projects & Industrial Training @Technogroovy
Live B tech Projects & Industrial Training @Technogroovy Technogroovy India
 

Similar to Class5 (20)

28. 8251 programmable communication interface
28. 8251 programmable communication interface28. 8251 programmable communication interface
28. 8251 programmable communication interface
 
Manual HUB SERIAL EQUINOX
Manual HUB SERIAL EQUINOXManual HUB SERIAL EQUINOX
Manual HUB SERIAL EQUINOX
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
8051
80518051
8051
 
8051 microcontroller training (2) (sahil gupta 9068557926)
8051 microcontroller training  (2) (sahil gupta   9068557926)8051 microcontroller training  (2) (sahil gupta   9068557926)
8051 microcontroller training (2) (sahil gupta 9068557926)
 
Presentation On: "Micro-controller 8051 & Embedded System"
Presentation On: "Micro-controller 8051 & Embedded System"Presentation On: "Micro-controller 8051 & Embedded System"
Presentation On: "Micro-controller 8051 & Embedded System"
 
8051 microcontroller training (sahil gupta 9068557926)
8051 microcontroller training  (sahil gupta   9068557926)8051 microcontroller training  (sahil gupta   9068557926)
8051 microcontroller training (sahil gupta 9068557926)
 
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontroller
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller
 
Microcontroller (8051) by K. Vijay Kumar
Microcontroller (8051) by K. Vijay KumarMicrocontroller (8051) by K. Vijay Kumar
Microcontroller (8051) by K. Vijay Kumar
 
8251A INTEL Universal Synchronous Asynchronous Receiver Transmitter..pptx
8251A INTEL Universal Synchronous Asynchronous Receiver Transmitter..pptx8251A INTEL Universal Synchronous Asynchronous Receiver Transmitter..pptx
8251A INTEL Universal Synchronous Asynchronous Receiver Transmitter..pptx
 
Study of Data sheet of 56824 DSP processors
Study of Data sheet of 56824 DSP processorsStudy of Data sheet of 56824 DSP processors
Study of Data sheet of 56824 DSP processors
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
Microprocessors 8085 pin diagram
Microprocessors 8085 pin diagramMicroprocessors 8085 pin diagram
Microprocessors 8085 pin diagram
 
Microcontroller 8051 training
Microcontroller 8051 trainingMicrocontroller 8051 training
Microcontroller 8051 training
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
Hardware View of Intel 8051
Hardware View of Intel 8051Hardware View of Intel 8051
Hardware View of Intel 8051
 
Live B tech Projects & Industrial Training @Technogroovy
Live B tech Projects & Industrial Training @Technogroovy Live B tech Projects & Industrial Training @Technogroovy
Live B tech Projects & Industrial Training @Technogroovy
 
Badal sharma
Badal sharmaBadal sharma
Badal sharma
 
Class7
Class7Class7
Class7
 

Recently uploaded

GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
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
 
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
 
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
 
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
 
(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
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
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
 
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
 
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
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 

Recently uploaded (20)

GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
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
 
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...
 
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
 
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...
 
(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...
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
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
 
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
 
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
 
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
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 

Class5

  • 1. Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas 8051 - Interfacing EE4380 Fall 02 Class 5
  • 2. 10-Sep-02 2 8051 Interfacing l 8051 Pinout l Functions of the 8051 pins l Power-On Reset l Clock l Address and data Bus l External Vs On-chip code memory l 8051 Interfacing basics l Address Map and Address Generation
  • 3. 10-Sep-02 3 8051 Pinout l Power - Vcc, Vss l Reset - RST l Crystal - XTAL[1,2] l External device interfacing – EA, ALE, PSEN, WR, RD l I/O Port – P0[7;0], P1[7:0], P2[7:0], P3 l P3 is shared with control lines – Serial I/O RxD, TxD, – external interrupts INT0, INT1 – Counter control T0, T1 l P0 and P2 are multiplexed with Address and Data bus
  • 4. 10-Sep-02 4 8051 Clock l 8051 has an on-chip oscillator l It needs an external crystal l Standard connection as shown l Crystal decides the operating frequency of the 8051 XTAL2 XTAL1 GND 30pF 30pF 11.059MHz
  • 5. 10-Sep-02 5 8051 Reset l RESET is an active High input l When RESET is set to High, 8051 goes back to the power- on state l Power-On Reset – Push PB and active High on RST – Release PB, Capacitor discharges and RST goes low l RST must stay high for a min of 2 machine cycles RST 10uF 8.2K GND PB Vcc
  • 6. 10-Sep-02 6 8051 – Address Bus Demuxing l ALE – Address Latch Enable l 8051 drives it high when address is available on AD[7,0] l ALE is used as the “Enable” signal for an external latch (74LS573 or 373) l P0 and P2 unavailable 8051/ 8031 ALE AD0-7 A8-15 74LS573 D0 D7 A0 A7 A8 A15
  • 7. 10-Sep-02 7 8051 External Code mem Access l 8051 devices can have either on-chip or external code ROM l Special pin EA decides which is used and PSEN is used to enable it. l EA is an active low input to 8051 – EA connected to GND (Low) means 8051 uses external memory for code – EA connected to Vcc (High) means 8051 uses on-chip ROM for code memory l PSEN – Program Store Enable, active low – Connect this to the OE (output enable) of external ROM device
  • 8. 10-Sep-02 8 Microprocessor Interfacing - Basics l Any CPU (8051) has – Address bus A[15:0] – Data bus D[7:0] – Control lines : PSEN, RD, WR l A Single Processor uP based system has one CPU and many devices interfaced to it l Only one Address bus and one data bus in a Single Processor system – ABUS and DBUS are common for all interfaced devices and the CPU
  • 9. 10-Sep-02 9 Microprocessor Interfacing (contd.) l All Microprocessor compatible devices have enable lines (CE - Chip Enable or CS - Chip Select) – A function of the address bus f(A[15:0]) is connected to the CE of every device interfaced – This function is unique for every interfaced device l The CPU accesses each interfaced device by way of this unique function – This function is commonly referred to as the address of the device
  • 10. 10-Sep-02 10 Microprocessor Interfacing (contd.) l Interfaced devices either READ or WRITE or do BOTH on the DBUS. – Only one device has “exclusive access” – Achieved by using Tri-State buses l Devices that WRITE to DBUS have CE and RD/OE only – Read Cycle: Assert CE and then assert RD/OE l Devices that READ and WRITE to DBUS have CE, RD/OE and WR – Write Cycle: Assert CE and then assert WR
  • 11. 10-Sep-02 11 8051 Ext. Code Mem Read Cycle
  • 12. 10-Sep-02 12 8051 – Address Generation l Address Generator is a piece of hardware that produces unique addresses to each interfaced device l Example – F1 = A15 . A14 – F2 = A15 . A14’ – F3 = A15’. A14’ 8051 A[15:0] Addr. Gen Device 1 Device 2 Device 3 CE CE CE f1 f2 f3 D[7:0] D[7:0] D[7:0] D[7:0] A[15:0] A[15:0] A[15:0]
  • 13. 10-Sep-02 13 8051- Address Map l Address Map – List of addresses of all interfaced devices – List of sizes of each interfaced device l Example – 4K of Code Rom at 0x0000 – 4K of Code RAM at 0x4000 – 32K of Data RAM at 0x0000 – 16 bytes of Data RAM (LCD) at 0x 8000 – 2bytes of Data RAM (7 seg LEDs) at 0xF000 Code Memory Data Memory 0x0000 0x4000 0x1000 0x5000 RAM1 32K 0x0000 0x8000 0xF000 LCD 8b LEd 2b Code RAM 4K Code ROM1 4K
  • 14. 10-Sep-02 14 Thanks l Next Class – How to design the address generator ? – Interface external memory – Data, Code, data+Code – Interface external non-memory devices – ADC, LCD – Timing considerations for interfacing