SlideShare a Scribd company logo
4
Most read
5
Most read
8
Most read
AN APPLICATION OF 8085
REGISTER INTERFACING
WITH LED
Presented By:-
Taha Malampattiwala 140050107052
CSE 1 [Batch 4]
BASIC I/O CONCEPTS
• Peripherals such as LEDs and keypads are essential components of
microcontroller-based systems
• Input devices
• Provide digital information to an MPU
• Examples: switch, keyboard, scanner, and digital camera
• Output devices
• Receive digital information from an MPU
• Examples: LED, seven-segment display, LCD, and printer
• Devices are interfaced to an MPU using I/O ports
I/O INTERFACING
INTERFACING AND ADDRESSING
• I/O ports
• Buffers and latches on the MCU chip
• Assigned binary addresses by decoding the address bus
• Generally bidirectional
• Internal data direction registers
• To read binary data from an input peripheral
• MPU places the address of an input port on the address bus
• Enables the input port by asserting the RD signal
• Reads data using the data bus
• To write binary data to an output peripheral
• MPU places the address of an output port on the address bus
• Places data on data bus
• Asserts the WR signal to enable the output port
INTERFACING OUTPUT PERIPHERALS
• Commonly used output peripherals in embedded systems
• LEDs
• Seven-Segment Displays
• LCDs
• Two ways of connecting LEDs to I/O ports
• Common Cathode
• LED cathodes are grounded
• Logic 1 from the I/O port turns on the LEDs
• Current is supplied by the I/O port called current sourcing
• Common Anode
• LED anodes are connected to the power supply
• Logic 0 from the I/O port turns on the LEDs
• Current is received by the chip called current sinking
An application  of 8085 register interfacing with LED
SEVEN-SEGMENT DISPLAY
• Seven-segment Displays
• Used to display BCD digits
• 0 thru 9
• A group of 7 LEDs physically mounted in the shape of the number
eight
• Plus a decimal point
• Each LED is called a segment
• ‘a’ through ‘g’
• Two types
• Common anode
• Common cathode
SEVEN-SEGMENT DISPLAY
• Common Anode
• All anodes are connected together to a power supply
• Cathodes are connected to data lines
• Logic 0 turns on a segment
• Example: To display the digit 1
• All segments except b and c should be off
• 11111001 = F9H
9 330_09
Common Anode
SEVEN-SEGMENT DISPLAY
• Common Cathode
• All cathodes are connected together to ground
• Anodes are connected to data lines
• Logic 1 turns on a segment
• Example: To display digit 1
• All segments except b and c should be off
• 00000110 = 06H
330_09
INTERFACE AN 8-DIGIT 7 SEGMENT LED DISPLAY TO THE 8085
MICROPROCESSOR SYSTEM AND WRITE AN 8085 ASSEMBLY
LANGUAGE ROUTINE TO DISPLAY MESSAGE ON THE DISPLAY.
1. MVI A, 80H : Load control word in AL
2. OUT CR : Load control word in CR
3. MVI B, 08H : load count
4. MVI C, 7FH : load select pattern
5. LXI H, 6000B : starting address of message
6. DISP 1: MOV A, C : select digit
7. OUT PB
8. MOV A, M : get data
9. OUT PA : display data
10. CALL DELAY : wait for some time
11. DISP 1: MOV A, C
12. RRC
13. MOV C, A : adjust selection pattern
14. INX H
15. DCR B : Decrement count
16. JNZ DISP 1 : repeat 8 times
17. RET
18. Delay: LXI D, Count : Delay Subroutine
19. Back: DCX D
20. MOV A, D
21. ORA E
22. JNZ Back
23. RET
An application  of 8085 register interfacing with LED

More Related Content

PPT
Architecture of 8086 Microprocessor
PPTX
Introduction to embedded systems
PDF
Von Neumann Architecture
PPTX
Pin diagram 8085
PDF
Serial Communication Interfaces
PPTX
Assembly 8086
PPTX
Operand and Opcode | Computer Science
PPTX
Direct memory access (dma)
Architecture of 8086 Microprocessor
Introduction to embedded systems
Von Neumann Architecture
Pin diagram 8085
Serial Communication Interfaces
Assembly 8086
Operand and Opcode | Computer Science
Direct memory access (dma)

What's hot (20)

PPTX
Code Conversion in 8085 Microprocessor
PPTX
Registers
PDF
Registers and counters
PPTX
DIGITAL SIGNAL PROCESSING
PPT
Addressing modes of 8051
PPT
Introduction to Interrupts of 8085 microprocessor
PPTX
Intel 8051 Programming in C
PPTX
Types of Sampling in Analog Communication
PDF
3 jump, loop and call instructions
PPTX
Architecture of 8051
PDF
Minimum and Maximum Modes of microprocessor 8086
PPT
8051 instruction set
PPTX
Demultiplexer
PPT
Bus interconnection
PPTX
Chapter 1 microprocessor introduction
PPTX
Addressing modes 8085
PPTX
Assembly Language
PPTX
Instruction set of 8086
PPTX
Direct access memory
PPT
Counters
Code Conversion in 8085 Microprocessor
Registers
Registers and counters
DIGITAL SIGNAL PROCESSING
Addressing modes of 8051
Introduction to Interrupts of 8085 microprocessor
Intel 8051 Programming in C
Types of Sampling in Analog Communication
3 jump, loop and call instructions
Architecture of 8051
Minimum and Maximum Modes of microprocessor 8086
8051 instruction set
Demultiplexer
Bus interconnection
Chapter 1 microprocessor introduction
Addressing modes 8085
Assembly Language
Instruction set of 8086
Direct access memory
Counters
Ad

Viewers also liked (20)

PPTX
An application of 8085 register interfacing with LCD
PPTX
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
PPTX
Analog to Digital Converters
PPTX
Interfacing technique with 8085- ADC[0808]
PPTX
Applications of microprocessor
PPTX
PART -1 TRAFFIC LIGHT CONTROL USING 8085
PPTX
Microprocessor in washing machine
PPT
Interfacing of io device to 8085
PPTX
Automatic temperature control using 8085 microprocessor
PPT
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
PPTX
microprocessor 8085
PDF
Microprocessor Instructions
PPT
Microprocessor based system design
PPTX
Number Guessing Game - A 8085 Project
PPTX
8251 USART
PDF
8085 lab
PPT
Interfacing adc
PPSX
8085 Interfacing with I/O Devices or Memory
PPT
Instruction set of 8085
An application of 8085 register interfacing with LCD
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
Analog to Digital Converters
Interfacing technique with 8085- ADC[0808]
Applications of microprocessor
PART -1 TRAFFIC LIGHT CONTROL USING 8085
Microprocessor in washing machine
Interfacing of io device to 8085
Automatic temperature control using 8085 microprocessor
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
microprocessor 8085
Microprocessor Instructions
Microprocessor based system design
Number Guessing Game - A 8085 Project
8251 USART
8085 lab
Interfacing adc
8085 Interfacing with I/O Devices or Memory
Instruction set of 8085
Ad

Similar to An application of 8085 register interfacing with LED (20)

PDF
Applications of Microcontroller 8051
PPT
Microprocessor design and Lecture Three.ppt
PPT
8051 microcontroller training (sahil gupta 9068557926)
PPTX
Introduction to embedded system & density based traffic light system
PDF
Embedded C Programming Module 7 Presentation
PPTX
dokumen.tips_ppt-on-interfacing-led-and-7-segment-with-8951 (1).pptx
PPTX
Ppt on interfacing led and 7 segment with 8951
PPTX
Ppt on interfacing led and 7 segmentwith 8951
PPTX
Switches and LEDs interface to the 8051 microcontroller
DOC
Microcontroller Based Embedded Systems Classroom Training
PDF
Seven segment interfacing with 8051.pdf
PDF
IRJET - Interfacing Multi-Digit 7-Segment with 8051 Microcontroller
PPTX
Badal sharma
PPTX
7 segment led interfacing with 8051
PDF
PPTX
8085 microprocessor(1)
PPT
8051 microcontroller training (2) (sahil gupta 9068557926)
PPT
jbptunikompp-gdl-syahrul-23476-14-14-inter-y.ppt
PPTX
embedded system
PPTX
2. 8085-Microprocessor.pptx
Applications of Microcontroller 8051
Microprocessor design and Lecture Three.ppt
8051 microcontroller training (sahil gupta 9068557926)
Introduction to embedded system & density based traffic light system
Embedded C Programming Module 7 Presentation
dokumen.tips_ppt-on-interfacing-led-and-7-segment-with-8951 (1).pptx
Ppt on interfacing led and 7 segment with 8951
Ppt on interfacing led and 7 segmentwith 8951
Switches and LEDs interface to the 8051 microcontroller
Microcontroller Based Embedded Systems Classroom Training
Seven segment interfacing with 8051.pdf
IRJET - Interfacing Multi-Digit 7-Segment with 8051 Microcontroller
Badal sharma
7 segment led interfacing with 8051
8085 microprocessor(1)
8051 microcontroller training (2) (sahil gupta 9068557926)
jbptunikompp-gdl-syahrul-23476-14-14-inter-y.ppt
embedded system
2. 8085-Microprocessor.pptx

More from Taha Malampatti (16)

PPTX
Lex & yacc
PPTX
Cultural heritage tourism
PPTX
Request dispacther interface ppt
PPTX
Introduction to Android ppt
PPT
Intodcution to Html
PPTX
Introduction to php
PPTX
Database Connectivity in PHP
PPTX
Cox and Kings Pvt Industrial Training
PPT
Steganography ppt
PPT
Java Virtual Machine
PPTX
The sunsparc architecture
PDF
Orthogonal Projection
PPTX
Apple inc
PPT
Blood donation
PPTX
Compressors and its applications
PPTX
Laws Of Gravitation
Lex & yacc
Cultural heritage tourism
Request dispacther interface ppt
Introduction to Android ppt
Intodcution to Html
Introduction to php
Database Connectivity in PHP
Cox and Kings Pvt Industrial Training
Steganography ppt
Java Virtual Machine
The sunsparc architecture
Orthogonal Projection
Apple inc
Blood donation
Compressors and its applications
Laws Of Gravitation

Recently uploaded (20)

PPTX
Construction Project Organization Group 2.pptx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Geodesy 1.pptx...............................................
PPT
Mechanical Engineering MATERIALS Selection
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
additive manufacturing of ss316l using mig welding
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Construction Project Organization Group 2.pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Geodesy 1.pptx...............................................
Mechanical Engineering MATERIALS Selection
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
additive manufacturing of ss316l using mig welding
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Automation-in-Manufacturing-Chapter-Introduction.pdf
Operating System & Kernel Study Guide-1 - converted.pdf
Model Code of Practice - Construction Work - 21102022 .pdf
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
UNIT 4 Total Quality Management .pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
CH1 Production IntroductoryConcepts.pptx
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf

An application of 8085 register interfacing with LED

  • 1. AN APPLICATION OF 8085 REGISTER INTERFACING WITH LED
  • 2. Presented By:- Taha Malampattiwala 140050107052 CSE 1 [Batch 4]
  • 3. BASIC I/O CONCEPTS • Peripherals such as LEDs and keypads are essential components of microcontroller-based systems • Input devices • Provide digital information to an MPU • Examples: switch, keyboard, scanner, and digital camera • Output devices • Receive digital information from an MPU • Examples: LED, seven-segment display, LCD, and printer • Devices are interfaced to an MPU using I/O ports
  • 5. INTERFACING AND ADDRESSING • I/O ports • Buffers and latches on the MCU chip • Assigned binary addresses by decoding the address bus • Generally bidirectional • Internal data direction registers • To read binary data from an input peripheral • MPU places the address of an input port on the address bus • Enables the input port by asserting the RD signal • Reads data using the data bus • To write binary data to an output peripheral • MPU places the address of an output port on the address bus • Places data on data bus • Asserts the WR signal to enable the output port
  • 6. INTERFACING OUTPUT PERIPHERALS • Commonly used output peripherals in embedded systems • LEDs • Seven-Segment Displays • LCDs • Two ways of connecting LEDs to I/O ports • Common Cathode • LED cathodes are grounded • Logic 1 from the I/O port turns on the LEDs • Current is supplied by the I/O port called current sourcing • Common Anode • LED anodes are connected to the power supply • Logic 0 from the I/O port turns on the LEDs • Current is received by the chip called current sinking
  • 8. SEVEN-SEGMENT DISPLAY • Seven-segment Displays • Used to display BCD digits • 0 thru 9 • A group of 7 LEDs physically mounted in the shape of the number eight • Plus a decimal point • Each LED is called a segment • ‘a’ through ‘g’ • Two types • Common anode • Common cathode
  • 9. SEVEN-SEGMENT DISPLAY • Common Anode • All anodes are connected together to a power supply • Cathodes are connected to data lines • Logic 0 turns on a segment • Example: To display the digit 1 • All segments except b and c should be off • 11111001 = F9H 9 330_09 Common Anode
  • 10. SEVEN-SEGMENT DISPLAY • Common Cathode • All cathodes are connected together to ground • Anodes are connected to data lines • Logic 1 turns on a segment • Example: To display digit 1 • All segments except b and c should be off • 00000110 = 06H 330_09
  • 11. INTERFACE AN 8-DIGIT 7 SEGMENT LED DISPLAY TO THE 8085 MICROPROCESSOR SYSTEM AND WRITE AN 8085 ASSEMBLY LANGUAGE ROUTINE TO DISPLAY MESSAGE ON THE DISPLAY.
  • 12. 1. MVI A, 80H : Load control word in AL 2. OUT CR : Load control word in CR 3. MVI B, 08H : load count 4. MVI C, 7FH : load select pattern 5. LXI H, 6000B : starting address of message 6. DISP 1: MOV A, C : select digit 7. OUT PB 8. MOV A, M : get data 9. OUT PA : display data 10. CALL DELAY : wait for some time 11. DISP 1: MOV A, C 12. RRC 13. MOV C, A : adjust selection pattern 14. INX H 15. DCR B : Decrement count 16. JNZ DISP 1 : repeat 8 times 17. RET 18. Delay: LXI D, Count : Delay Subroutine 19. Back: DCX D 20. MOV A, D 21. ORA E 22. JNZ Back 23. RET