SlideShare ist ein Scribd-Unternehmen logo
1 von 13
Downloaden Sie, um offline zu lesen
AVR Interfaces
Eng:Mohamed Loay Ali
1
Contents
• 7 Segments
• LCD
• Keypad
Eng:Mohamed Loay Ali
2
7-Segements
Eng:Mohamed Loay Ali
3
Liquid Crystal Display(LCD)
LCD Interfacing:
The LCD has the ability to display (Numbers, Characters and
graphics) so they are widely used in AVR real word applications.
LCD Description:
The following table shows the pin description of the LCD
Eng:Mohamed Loay Ali
4
Liquid Crystal Display(LCD)
RS (Register Select):
When RS=0, this allow the user to send command such as (clear
screen, go home, blink cursor).
When RS=1, this allow the user to send data.
Enable:
It used to latch the information to the data pins, this done by send a
high to low pulse (of width of 450 ns) so the LCD latches the data
presented on the data pins.
Eng:Mohamed Loay Ali
5
Liquid Crystal Display(LCD)
The Instruction Command for the LCD:
Eng:Mohamed Loay Ali
6
Liquid Crystal Display(LCD)
Sending Commands and data to the LCD:
The following steps should be done to send the
command and data to the LCD:
1) Initialized the LCD.
2) Sending Commands to the LCD.
3) Sending data to the LCD.
Eng:Mohamed Loay Ali
7
Liquid Crystal Display(LCD)
1)Initialized the LCD :
For example to initialize LCD [2 lines 5*7 matrix 8bit mode]
the following commands should be used:
1. 0x38 to select the type and mode of operation
2. 0x0E to display the cursor blinking.
3. 0x01 to clear the LCD display.
Note: After powering up the LCD a 15 ms should be waited
to send the commands.
Eng:Mohamed Loay Ali
8
Liquid Crystal Display(LCD)
2)Sending Commands to the LCD :
To send commands to the LCD the following steps should be done:
1. RS=0, RW=0.
2. The command number should be put on the data pins (D0 to
D7).
3. A pulse (high to low) should be sent on the Enable pin.
After each command a delay of (100us) should be placed.
Eng:Mohamed Loay Ali
9
Liquid Crystal Display(LCD)
3) Sending data to the LCD :
To send data to the LCD the following steps should be done:
RS=1, RW=0.
1. The data should be put on the data pins (D0 to D7).
2. A pulse (high to low) should be sent on the Enable pin.
After each data a delay of (100us) should be placed.
Eng:Mohamed Loay Ali
10
Liquid Crystal Display(LCD)
Typical Connection of LCD(8bit mode) :
Eng:Mohamed Loay Ali
11
Liquid Crystal Display(LCD)
Typical Connection of LCD(4bit mode) :
 Remember that there are a special pins on the AVR for example (ADC
pins, Interrupt pins, Communication pins).
 If one of those purposes is required in the application try to not connect
the LCD with those special pins required for the application.
 See 4bit and 8bit examples of LCD.
Eng:Mohamed Loay Ali
12
KeyPad
Eng:Mohamed Loay Ali
13

Weitere ähnliche Inhalte

Was ist angesagt?

Pic microcontroller [autosaved] [autosaved]
Pic microcontroller [autosaved] [autosaved]Pic microcontroller [autosaved] [autosaved]
Pic microcontroller [autosaved] [autosaved]
gauravholani
 
Pic microcontrollers for_beginners
Pic microcontrollers for_beginnersPic microcontrollers for_beginners
Pic microcontrollers for_beginners
Praveen Chary
 

Was ist angesagt? (20)

Embedded System - Dtmf robot
Embedded System - Dtmf robotEmbedded System - Dtmf robot
Embedded System - Dtmf robot
 
PIC introduction + mapping
PIC introduction + mappingPIC introduction + mapping
PIC introduction + mapping
 
What is POR,LVD,WDT ?
What is POR,LVD,WDT ?What is POR,LVD,WDT ?
What is POR,LVD,WDT ?
 
8 bit microcontroller
8 bit microcontroller8 bit microcontroller
8 bit microcontroller
 
Pic microcontroller [autosaved] [autosaved]
Pic microcontroller [autosaved] [autosaved]Pic microcontroller [autosaved] [autosaved]
Pic microcontroller [autosaved] [autosaved]
 
8-bit PIC Microcontrollers
8-bit PIC Microcontrollers8-bit PIC Microcontrollers
8-bit PIC Microcontrollers
 
174085193 pic-prgm-manual
174085193 pic-prgm-manual174085193 pic-prgm-manual
174085193 pic-prgm-manual
 
Interfacing using ِAtmega16/32
Interfacing using ِAtmega16/32 Interfacing using ِAtmega16/32
Interfacing using ِAtmega16/32
 
Dio
DioDio
Dio
 
PIC Microcontroller
PIC MicrocontrollerPIC Microcontroller
PIC Microcontroller
 
PIC_ARM_AVR
PIC_ARM_AVRPIC_ARM_AVR
PIC_ARM_AVR
 
Pic microcontrollers for_beginners
Pic microcontrollers for_beginnersPic microcontrollers for_beginners
Pic microcontrollers for_beginners
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
 
Arm cortex (lpc 2148) based motor speed
Arm cortex (lpc 2148) based motor speedArm cortex (lpc 2148) based motor speed
Arm cortex (lpc 2148) based motor speed
 
Presentation
PresentationPresentation
Presentation
 
Ppt
PptPpt
Ppt
 
AVR_Course_Day8 motor drive and pwm techniques
AVR_Course_Day8 motor drive and pwm techniquesAVR_Course_Day8 motor drive and pwm techniques
AVR_Course_Day8 motor drive and pwm techniques
 
Introduction to MPLAB IDE
Introduction to MPLAB IDEIntroduction to MPLAB IDE
Introduction to MPLAB IDE
 
Pic full note
Pic full notePic full note
Pic full note
 
Microchip's PIC Micro Controller
Microchip's PIC Micro ControllerMicrochip's PIC Micro Controller
Microchip's PIC Micro Controller
 

Andere mochten auch

1169_ali_mohamed
1169_ali_mohamed1169_ali_mohamed
1169_ali_mohamed
Mohamed Ali
 
Basic electronics and electrical first year engineering
Basic electronics and electrical first year engineeringBasic electronics and electrical first year engineering
Basic electronics and electrical first year engineering
ron181295
 
Isaac Asimov
Isaac AsimovIsaac Asimov
Isaac Asimov
yapsmail
 
APRS - the amateur radio tracking system
APRS - the amateur radio tracking system APRS - the amateur radio tracking system
APRS - the amateur radio tracking system
FSCONS
 

Andere mochten auch (20)

AVR_Course_Day1 basic electronics
AVR_Course_Day1 basic electronicsAVR_Course_Day1 basic electronics
AVR_Course_Day1 basic electronics
 
AVR_Course_Day2 what is pcb
AVR_Course_Day2 what is pcbAVR_Course_Day2 what is pcb
AVR_Course_Day2 what is pcb
 
Basics of Electronics
Basics of ElectronicsBasics of Electronics
Basics of Electronics
 
Electronics ppt
Electronics ppt Electronics ppt
Electronics ppt
 
AVR_Course_Day3 c programming
AVR_Course_Day3 c programmingAVR_Course_Day3 c programming
AVR_Course_Day3 c programming
 
1169_ali_mohamed
1169_ali_mohamed1169_ali_mohamed
1169_ali_mohamed
 
AVR_Course_Day7 timers counters and interrupt programming
AVR_Course_Day7 timers counters and  interrupt programmingAVR_Course_Day7 timers counters and  interrupt programming
AVR_Course_Day7 timers counters and interrupt programming
 
Introduction to Basic Electronics
Introduction to Basic ElectronicsIntroduction to Basic Electronics
Introduction to Basic Electronics
 
Basic electronics and electrical first year engineering
Basic electronics and electrical first year engineeringBasic electronics and electrical first year engineering
Basic electronics and electrical first year engineering
 
Introduction to Basic electronics
Introduction to Basic electronicsIntroduction to Basic electronics
Introduction to Basic electronics
 
BASIC ELECTRONICS
BASIC ELECTRONICS BASIC ELECTRONICS
BASIC ELECTRONICS
 
Apunte c a_bajo_nivel
Apunte c a_bajo_nivelApunte c a_bajo_nivel
Apunte c a_bajo_nivel
 
P1
P1P1
P1
 
Memoria dinámica en el lenguaje de programación c
Memoria dinámica en el lenguaje de programación cMemoria dinámica en el lenguaje de programación c
Memoria dinámica en el lenguaje de programación c
 
Basededatosicompleto 091122141836-phpapp02
Basededatosicompleto 091122141836-phpapp02Basededatosicompleto 091122141836-phpapp02
Basededatosicompleto 091122141836-phpapp02
 
Isaac Asimov
Isaac AsimovIsaac Asimov
Isaac Asimov
 
Amvdd Data Converter Fundamentals
Amvdd Data Converter FundamentalsAmvdd Data Converter Fundamentals
Amvdd Data Converter Fundamentals
 
Programando o ESP8266 com Python
Programando o ESP8266 com PythonProgramando o ESP8266 com Python
Programando o ESP8266 com Python
 
APRS - the amateur radio tracking system
APRS - the amateur radio tracking system APRS - the amateur radio tracking system
APRS - the amateur radio tracking system
 
Chapter 4 bjt
Chapter 4 bjtChapter 4 bjt
Chapter 4 bjt
 

Ähnlich wie AVR_Course_Day5 avr interfaces

Moving message display
Moving message displayMoving message display
Moving message display
viraj1989
 

Ähnlich wie AVR_Course_Day5 avr interfaces (20)

131080111003 mci
131080111003 mci131080111003 mci
131080111003 mci
 
Lcd interface with atmega32 avr best.ppt
Lcd interface with atmega32 avr best.pptLcd interface with atmega32 avr best.ppt
Lcd interface with atmega32 avr best.ppt
 
Arduino based applications part 2
Arduino based applications part 2Arduino based applications part 2
Arduino based applications part 2
 
Lcd interfacing with microprocessor 8051
Lcd interfacing with microprocessor 8051Lcd interfacing with microprocessor 8051
Lcd interfacing with microprocessor 8051
 
Lcd & keypad
Lcd & keypadLcd & keypad
Lcd & keypad
 
LCD interfacing
LCD interfacingLCD interfacing
LCD interfacing
 
Alp lcd
Alp lcdAlp lcd
Alp lcd
 
Moving message display
Moving message displayMoving message display
Moving message display
 
Lcd interfacing
Lcd interfacingLcd interfacing
Lcd interfacing
 
08_lcd.pdf
08_lcd.pdf08_lcd.pdf
08_lcd.pdf
 
SIMPLE Frequency METER using AT89c51
SIMPLE Frequency METER using AT89c51 SIMPLE Frequency METER using AT89c51
SIMPLE Frequency METER using AT89c51
 
LCD Interacing with 8051
LCD Interacing with 8051LCD Interacing with 8051
LCD Interacing with 8051
 
Lcd tutorial
Lcd tutorialLcd tutorial
Lcd tutorial
 
Microcontroller part 4
Microcontroller part 4Microcontroller part 4
Microcontroller part 4
 
Calculator design with lcd using fpga
Calculator design with lcd using fpgaCalculator design with lcd using fpga
Calculator design with lcd using fpga
 
Lcd
LcdLcd
Lcd
 
Micro c lab6(lcd)
Micro c lab6(lcd)Micro c lab6(lcd)
Micro c lab6(lcd)
 
LCD (2).pptx
LCD (2).pptxLCD (2).pptx
LCD (2).pptx
 
LCD_Example.pptx
LCD_Example.pptxLCD_Example.pptx
LCD_Example.pptx
 
Lcd interfaing using 8051 and assambly language programming
Lcd interfaing using 8051 and assambly language programmingLcd interfaing using 8051 and assambly language programming
Lcd interfaing using 8051 and assambly language programming
 

Kürzlich hochgeladen

Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
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
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Kürzlich hochgeladen (20)

UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
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
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 

AVR_Course_Day5 avr interfaces

  • 2. Contents • 7 Segments • LCD • Keypad Eng:Mohamed Loay Ali 2
  • 4. Liquid Crystal Display(LCD) LCD Interfacing: The LCD has the ability to display (Numbers, Characters and graphics) so they are widely used in AVR real word applications. LCD Description: The following table shows the pin description of the LCD Eng:Mohamed Loay Ali 4
  • 5. Liquid Crystal Display(LCD) RS (Register Select): When RS=0, this allow the user to send command such as (clear screen, go home, blink cursor). When RS=1, this allow the user to send data. Enable: It used to latch the information to the data pins, this done by send a high to low pulse (of width of 450 ns) so the LCD latches the data presented on the data pins. Eng:Mohamed Loay Ali 5
  • 6. Liquid Crystal Display(LCD) The Instruction Command for the LCD: Eng:Mohamed Loay Ali 6
  • 7. Liquid Crystal Display(LCD) Sending Commands and data to the LCD: The following steps should be done to send the command and data to the LCD: 1) Initialized the LCD. 2) Sending Commands to the LCD. 3) Sending data to the LCD. Eng:Mohamed Loay Ali 7
  • 8. Liquid Crystal Display(LCD) 1)Initialized the LCD : For example to initialize LCD [2 lines 5*7 matrix 8bit mode] the following commands should be used: 1. 0x38 to select the type and mode of operation 2. 0x0E to display the cursor blinking. 3. 0x01 to clear the LCD display. Note: After powering up the LCD a 15 ms should be waited to send the commands. Eng:Mohamed Loay Ali 8
  • 9. Liquid Crystal Display(LCD) 2)Sending Commands to the LCD : To send commands to the LCD the following steps should be done: 1. RS=0, RW=0. 2. The command number should be put on the data pins (D0 to D7). 3. A pulse (high to low) should be sent on the Enable pin. After each command a delay of (100us) should be placed. Eng:Mohamed Loay Ali 9
  • 10. Liquid Crystal Display(LCD) 3) Sending data to the LCD : To send data to the LCD the following steps should be done: RS=1, RW=0. 1. The data should be put on the data pins (D0 to D7). 2. A pulse (high to low) should be sent on the Enable pin. After each data a delay of (100us) should be placed. Eng:Mohamed Loay Ali 10
  • 11. Liquid Crystal Display(LCD) Typical Connection of LCD(8bit mode) : Eng:Mohamed Loay Ali 11
  • 12. Liquid Crystal Display(LCD) Typical Connection of LCD(4bit mode) :  Remember that there are a special pins on the AVR for example (ADC pins, Interrupt pins, Communication pins).  If one of those purposes is required in the application try to not connect the LCD with those special pins required for the application.  See 4bit and 8bit examples of LCD. Eng:Mohamed Loay Ali 12