Submit Search
Upload
04 Interfacing LCD Displays.2016
•
1 like
•
354 views
Mohamed Fawzy
Follow
Discussing using LCD for interacting with system user
Read less
Read more
Engineering
Report
Share
Report
Share
1 of 18
Download now
Download to read offline
Recommended
00 let us get started.2016
00 let us get started.2016
Mohamed Fawzy
01 GPIO||General Purpose Input Output.2016
01 GPIO||General Purpose Input Output.2016
Mohamed Fawzy
Microcontroller Programming Assignment
Microcontroller Programming Assignment
babak danyal
برمجة الأردوينو - اليوم الثاني
برمجة الأردوينو - اليوم الثاني
Ahmed Sakr
Atmega16
Atmega16
Thrived Kumar
131080111003 mci
131080111003 mci
jokersclown57
Calculator design with lcd using fpga
Calculator design with lcd using fpga
Hossam Hassan
Programming A Robot Using
Programming A Robot Using
Spitiq
Recommended
00 let us get started.2016
00 let us get started.2016
Mohamed Fawzy
01 GPIO||General Purpose Input Output.2016
01 GPIO||General Purpose Input Output.2016
Mohamed Fawzy
Microcontroller Programming Assignment
Microcontroller Programming Assignment
babak danyal
برمجة الأردوينو - اليوم الثاني
برمجة الأردوينو - اليوم الثاني
Ahmed Sakr
Atmega16
Atmega16
Thrived Kumar
131080111003 mci
131080111003 mci
jokersclown57
Calculator design with lcd using fpga
Calculator design with lcd using fpga
Hossam Hassan
Programming A Robot Using
Programming A Robot Using
Spitiq
Untitled 1
Untitled 1
lakachew
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
Pantech ProLabs India Pvt Ltd
MPLABX with proteus
MPLABX with proteus
Jabez Winston
Picmico
Picmico
loges91
Programming avr microcontroller digital i
Programming avr microcontroller digital i
Manas Mantri
Microcontroller 8051
Microcontroller 8051
Denish Vaniyawala
PIC and LCD
PIC and LCD
hairilfaiz86
Lcd interfacing with microprocessor 8051
Lcd interfacing with microprocessor 8051
Hasnain Yaseen
Programming the Digital I/O Interface of a PIC microcontroller
Programming the Digital I/O Interface of a PIC microcontroller
Corrado Santoro
1.arm tutorial(gpio)
1.arm tutorial(gpio)
Ram Mohan
Rig nitc [autosaved] (copy)
Rig nitc [autosaved] (copy)
Aravind E Vijayan
Chapter5 dek3133
Chapter5 dek3133
Hattori Sidek
LCD Theory and Working Principles
LCD Theory and Working Principles
Robo India
22 Microcontroller Programs
22 Microcontroller Programs
babak danyal
22 microcontroller programs
22 microcontroller programs
babak danyal
LCD interfacing
LCD interfacing
Kshitij Wagle
LUMOS
LUMOS
Shubham Kumar
ROBOT MOTION
ROBOT MOTION
Navyavani Yalla
Lcd interfacing1
Lcd interfacing1
Monica Gunjal
Control Word
Control Word
Tahsin Rahman
water latching solenoid valve
water latching solenoid valve
XHnotion Pneumatic
06 Interfacing Keypad 4x4.2016
06 Interfacing Keypad 4x4.2016
Mohamed Fawzy
More Related Content
What's hot
Untitled 1
Untitled 1
lakachew
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
Pantech ProLabs India Pvt Ltd
MPLABX with proteus
MPLABX with proteus
Jabez Winston
Picmico
Picmico
loges91
Programming avr microcontroller digital i
Programming avr microcontroller digital i
Manas Mantri
Microcontroller 8051
Microcontroller 8051
Denish Vaniyawala
PIC and LCD
PIC and LCD
hairilfaiz86
Lcd interfacing with microprocessor 8051
Lcd interfacing with microprocessor 8051
Hasnain Yaseen
Programming the Digital I/O Interface of a PIC microcontroller
Programming the Digital I/O Interface of a PIC microcontroller
Corrado Santoro
1.arm tutorial(gpio)
1.arm tutorial(gpio)
Ram Mohan
Rig nitc [autosaved] (copy)
Rig nitc [autosaved] (copy)
Aravind E Vijayan
Chapter5 dek3133
Chapter5 dek3133
Hattori Sidek
LCD Theory and Working Principles
LCD Theory and Working Principles
Robo India
22 Microcontroller Programs
22 Microcontroller Programs
babak danyal
22 microcontroller programs
22 microcontroller programs
babak danyal
LCD interfacing
LCD interfacing
Kshitij Wagle
LUMOS
LUMOS
Shubham Kumar
ROBOT MOTION
ROBOT MOTION
Navyavani Yalla
Lcd interfacing1
Lcd interfacing1
Monica Gunjal
Control Word
Control Word
Tahsin Rahman
What's hot
(20)
Untitled 1
Untitled 1
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
MPLABX with proteus
MPLABX with proteus
Picmico
Picmico
Programming avr microcontroller digital i
Programming avr microcontroller digital i
Microcontroller 8051
Microcontroller 8051
PIC and LCD
PIC and LCD
Lcd interfacing with microprocessor 8051
Lcd interfacing with microprocessor 8051
Programming the Digital I/O Interface of a PIC microcontroller
Programming the Digital I/O Interface of a PIC microcontroller
1.arm tutorial(gpio)
1.arm tutorial(gpio)
Rig nitc [autosaved] (copy)
Rig nitc [autosaved] (copy)
Chapter5 dek3133
Chapter5 dek3133
LCD Theory and Working Principles
LCD Theory and Working Principles
22 Microcontroller Programs
22 Microcontroller Programs
22 microcontroller programs
22 microcontroller programs
LCD interfacing
LCD interfacing
LUMOS
LUMOS
ROBOT MOTION
ROBOT MOTION
Lcd interfacing1
Lcd interfacing1
Control Word
Control Word
Viewers also liked
water latching solenoid valve
water latching solenoid valve
XHnotion Pneumatic
06 Interfacing Keypad 4x4.2016
06 Interfacing Keypad 4x4.2016
Mohamed Fawzy
AVR_Course_Day6 external hardware interrupts and analogue to digital converter
AVR_Course_Day6 external hardware interrupts and analogue to digital converter
Mohamed Ali
Catia introduccionv5
Catia introduccionv5
José Manuel Trujillo Cedillo
AVR_Course_Day7 timers counters and interrupt programming
AVR_Course_Day7 timers counters and interrupt programming
Mohamed Ali
Regis Pneumatic - Solenoid Valve Quality Process Presentation
Regis Pneumatic - Solenoid Valve Quality Process Presentation
Regis-pneumatic
AVR_Course_Day5 avr interfaces
AVR_Course_Day5 avr interfaces
Mohamed Ali
AVR_Course_Day2 what is pcb
AVR_Course_Day2 what is pcb
Mohamed Ali
AVR_Course_Day4 introduction to microcontroller
AVR_Course_Day4 introduction to microcontroller
Mohamed Ali
AVR_Course_Day8 motor drive and pwm techniques
AVR_Course_Day8 motor drive and pwm techniques
Mohamed Ali
Catia v5 NOTES
Catia v5 NOTES
vipinshelke
Introduction to Basic electronics
Introduction to Basic electronics
Myrna Cabrera
BASIC ELECTRONICS
BASIC ELECTRONICS
Clifford Sugermen
AVR_Course_Day1 basic electronics
AVR_Course_Day1 basic electronics
Mohamed Ali
Z:\catia v5
Z:\catia v5
Shintu Shukla
Electronics ppt
Electronics ppt
Anirudha Kumar
AVR ATmega32
AVR ATmega32
Prashant Tiwari
AVR programming - BASICS
AVR programming - BASICS
Robotix 2011
Viewers also liked
(18)
water latching solenoid valve
water latching solenoid valve
06 Interfacing Keypad 4x4.2016
06 Interfacing Keypad 4x4.2016
AVR_Course_Day6 external hardware interrupts and analogue to digital converter
AVR_Course_Day6 external hardware interrupts and analogue to digital converter
Catia introduccionv5
Catia introduccionv5
AVR_Course_Day7 timers counters and interrupt programming
AVR_Course_Day7 timers counters and interrupt programming
Regis Pneumatic - Solenoid Valve Quality Process Presentation
Regis Pneumatic - Solenoid Valve Quality Process Presentation
AVR_Course_Day5 avr interfaces
AVR_Course_Day5 avr interfaces
AVR_Course_Day2 what is pcb
AVR_Course_Day2 what is pcb
AVR_Course_Day4 introduction to microcontroller
AVR_Course_Day4 introduction to microcontroller
AVR_Course_Day8 motor drive and pwm techniques
AVR_Course_Day8 motor drive and pwm techniques
Catia v5 NOTES
Catia v5 NOTES
Introduction to Basic electronics
Introduction to Basic electronics
BASIC ELECTRONICS
BASIC ELECTRONICS
AVR_Course_Day1 basic electronics
AVR_Course_Day1 basic electronics
Z:\catia v5
Z:\catia v5
Electronics ppt
Electronics ppt
AVR ATmega32
AVR ATmega32
AVR programming - BASICS
AVR programming - BASICS
Similar to 04 Interfacing LCD Displays.2016
Alp lcd
Alp lcd
Caleb Joshua
Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming
Dr. Pankaj Zope
Moving message display
Moving message display
viraj1989
Embedded Systems Project 3rd Year
Embedded Systems Project 3rd Year
Andrew Kozik
Dfr0464 datasheet
Dfr0464 datasheet
franklinpaiva1000
DEF CON 23 - Rodringo Almeida - embedded system design from electronics
DEF CON 23 - Rodringo Almeida - embedded system design from electronics
Felipe Prado
SIMPLE Frequency METER using AT89c51
SIMPLE Frequency METER using AT89c51
aroosa khan
_LCD display-mbed.pdf
_LCD display-mbed.pdf
vidhyalakshmi153619
Lcd n PIC16F
Lcd n PIC16F
hairilfaiz86
Lcd module interface with xilinx software using verilog
Lcd module interface with xilinx software using verilog
sumedh23
Est 8 2 nd
Est 8 2 nd
Akshay Sharma
laptop repairing course in delhi
laptop repairing course in delhi
Amit Gupta
Ece 120L final project Christopher Hays
Ece 120L final project Christopher Hays
christopherhaysCSUF
Arduino by bishal bhattarai IOE, Pashchimanchal Campus Pokhara, Nepal
Arduino by bishal bhattarai IOE, Pashchimanchal Campus Pokhara, Nepal
bishal bhattarai
Expanding The Micro Blaze System
Expanding The Micro Blaze System
iuui
Lcd interface with atmega32 avr best.ppt
Lcd interface with atmega32 avr best.ppt
SoumyaGupta836456
LCD_Example.pptx
LCD_Example.pptx
julioalexanderaguila
Lab Activity 3
Lab Activity 3
Dwight Sabio
Lcd tutorial for interfacing with microcontrollers basics of alphanumeric lc...
Lcd tutorial for interfacing with microcontrollers basics of alphanumeric lc...
mdkousik
Led flash
Led flash
MIkeyadhd
Similar to 04 Interfacing LCD Displays.2016
(20)
Alp lcd
Alp lcd
Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming
Moving message display
Moving message display
Embedded Systems Project 3rd Year
Embedded Systems Project 3rd Year
Dfr0464 datasheet
Dfr0464 datasheet
DEF CON 23 - Rodringo Almeida - embedded system design from electronics
DEF CON 23 - Rodringo Almeida - embedded system design from electronics
SIMPLE Frequency METER using AT89c51
SIMPLE Frequency METER using AT89c51
_LCD display-mbed.pdf
_LCD display-mbed.pdf
Lcd n PIC16F
Lcd n PIC16F
Lcd module interface with xilinx software using verilog
Lcd module interface with xilinx software using verilog
Est 8 2 nd
Est 8 2 nd
laptop repairing course in delhi
laptop repairing course in delhi
Ece 120L final project Christopher Hays
Ece 120L final project Christopher Hays
Arduino by bishal bhattarai IOE, Pashchimanchal Campus Pokhara, Nepal
Arduino by bishal bhattarai IOE, Pashchimanchal Campus Pokhara, Nepal
Expanding The Micro Blaze System
Expanding The Micro Blaze System
Lcd interface with atmega32 avr best.ppt
Lcd interface with atmega32 avr best.ppt
LCD_Example.pptx
LCD_Example.pptx
Lab Activity 3
Lab Activity 3
Lcd tutorial for interfacing with microcontrollers basics of alphanumeric lc...
Lcd tutorial for interfacing with microcontrollers basics of alphanumeric lc...
Led flash
Led flash
More from Mohamed Fawzy
07 Analogue to Digital Converter(ADC).2016
07 Analogue to Digital Converter(ADC).2016
Mohamed Fawzy
05 EEPROM memory.2016
05 EEPROM memory.2016
Mohamed Fawzy
02 Interfacing High Power Devices.2016
02 Interfacing High Power Devices.2016
Mohamed Fawzy
أزاى تروح فى داهيه !!!
أزاى تروح فى داهيه !!!
Mohamed Fawzy
Ce from a to z
Ce from a to z
Mohamed Fawzy
Taqa
Taqa
Mohamed Fawzy
C programming day#2.
C programming day#2.
Mohamed Fawzy
C programming day#3.
C programming day#3.
Mohamed Fawzy
C programming day#1
C programming day#1
Mohamed Fawzy
More from Mohamed Fawzy
(9)
07 Analogue to Digital Converter(ADC).2016
07 Analogue to Digital Converter(ADC).2016
05 EEPROM memory.2016
05 EEPROM memory.2016
02 Interfacing High Power Devices.2016
02 Interfacing High Power Devices.2016
أزاى تروح فى داهيه !!!
أزاى تروح فى داهيه !!!
Ce from a to z
Ce from a to z
Taqa
Taqa
C programming day#2.
C programming day#2.
C programming day#3.
C programming day#3.
C programming day#1
C programming day#1
Recently uploaded
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Suman Mia
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
KurinjimalarL3
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
null - The Open Security Community
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Dr.Costas Sachpazis
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
RajkumarAkumalla
(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
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
pranjaldaimarysona
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
wendy cai
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
GDSCAESB
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
hassan khalil
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
SIVASHANKAR N
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
ranjana rawat
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
ranjana rawat
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
NikhilNagaraju
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
slot gacor bisa pakai pulsa
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
M Maged Hegazy, LLM, MBA, CCP, P3O
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
upamatechverse
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Low Rate Call Girls In Saket, Delhi NCR
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
ranjana rawat
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
rakeshbaidya232001
Recently uploaded
(20)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
04 Interfacing LCD Displays.2016
1.
1 04-Interfacing LCD Displays. By :
Mohamed Fawzy Programming AVR Microcontrollers © Mohamed F.A.B 2015
2.
Lecture Notes: 2 o Set
Your Phone To Vibration Mode. o Ask any time. o During labs, Feel Free To Check Any Materials or Internet. o Slides are self content. o Feel Free To Share This Materials With Your Friends. o Work Hard For Achieving Most Of This Course. © Mohamed F.A.B 2015
3.
3 Don't Forget !!!! ©
Mohamed F.A.B 2015 Any Expert Was Once A Beginner
4.
4 Lesson(10). © Mohamed F.A.B
2015 Lesson (10): Interfacing LCDs displays with Microcontroller.
5.
5 Lesson (10) Topics. ©
Mohamed F.A.B 2015 ► Intro to LCDs screens. ► LCD Hardware Connections. ► LCD built in Functions in MIKROC. ► Displaying Numbers On LCD. ► How to Display Custom Symbols or Characters on LCD. ► How to Connect Multiple LCD With MC using Same Pins. ► Let's Have Fun With LCD.
6.
6 Intro To LCDs
Screens. © Mohamed F.A.B 2015 LCD stands for Liquid Crystal Display. It can be used to display anything (virtually anything!). There are two common types of LCDs: Character LCD : Used For Displaying Only Characters, Numbers and some Custom Symbols. Graphical LCD : Used For Displaying almost everything (Text, symbols and images). “Will be discussed on Level 2”
7.
7 LCDs Memory. © Mohamed
F.A.B 2015 Memory in LCD divided into Three types: DDRAM Memory: storing characters to be displayed. CGROM Memory: contains standard character map with all characters that can be displayed on the screen. CGRAM Memory: a part from standard characters, the LCD display can also display symbols defined by the user itself. We can use CGRAM to display custom symbols on LCD. NOTE:
8.
8 LCD Hardware Connections. ©
Mohamed F.A.B 2015 • Pins[RS,R/W,EN] Control Lines. • Pins[D0:D7] Data Lines. Don't swap power pins to avoid damaging your LCD. Take Care:
9.
9 alcd.h functions. © Mohamed
F.A.B 2015 Initializing the LCD controller void lcd_init(unsigned char lcd_columns); EX: Lcd_init(16); //for 2*16 LCD Writing character to LCD void lcd_putchar(char c); EX: Lcd_write (‘A’); //display A on LCD Defining position of cursor (x,y) void lcd_gotoxy(unsigned char x, unsigned char y); EX: lcd_gotoxy(0,0); //start from column 0 and row 0 write the string str located in SRAM to the LCD void lcd_puts(char *str); EX: lcd_puts(“Hello LCD !!!”);
10.
10 alcd.h functions. Cont’ ©
Mohamed F.A.B 2015 Clearing the LCD void lcd_clear(void); EX: lcd_clear(); //delete any data on LCD Write byte to the LCD character generator or LCD CGRAM void write_byte(unsigned char address, unsigned char data); EX: void write_byte(char0, 0); Writing command to LCD void _lcd_write_data(unsigned char cmd); EX: void _lcd_write_data(0x0E); //display LCD cursor
11.
11 LCD useful commands
codes. © Mohamed F.A.B 2015 Code Function 0x0C Cursor OFF 0x0E Cursor underline 0x0F Cursor ON 0x10 Move cursor left by one character. 0x14 Move cursor right by one character. #define _LCD_CURSOR_OFF 0x0C #define _LCD_CURSOR_UNDERLINE 0x0E #define _LCD_CURSOR_ON 0x0F #define _LCD_CURSOR_LEFT 0x10 #define _LCD_CURSOR_RIGHT 0x14 TIP
12.
12 Displaying Numbers On
LCD. © Mohamed F.A.B 2015 • LCD displays data into ASCII format. ASCII Symbol Do (00:99) UP Down Counter With Two Buttons. Exercise:
13.
13 Displaying Custom Symbols
On LCD. © Mohamed F.A.B 2015 In some cases you may need to display characters and symbols that not defined in CGROM. You need to define your symbol into CGRAM. 1 2 3 We use “LCD Custom Char Builder” to draw our pattern. http://extremeelectronics.co.in/avrtutorials/download/LCDCustomCharBuilder.zip
14.
14 Displaying Custom Symbols
On LCD. Cont’ © Mohamed F.A.B 2015 Exercise: #include <io.h> #include <alcd.h> #include <delay.h> // Declare your global variables here flash unsigned char char0[8]={0x0A, 0x1F, 0x1F, 0x1F, 0x1F, 0x0E, 0x04, 0 void define_char(unsigned char flash *pc, unsigned char char_code){ unsigned char i,a; a=(char_code<<3)|0x040; for (i=0;i<8;i++)lcd_write_byte(a++,*pc++); } void main(void) { lcd_init(16); lcd_gotoxy(0,0); while (1) { define_char(char0,0); lcd_puts("I "); lcd_putchar(0); lcd_puts(" AVR"); }
15.
15 Connecting Multiple LCD
with same I/O Pins. © Mohamed F.A.B 2015 What if we need to use multiple LCD in one project ??!!!!. We can do that using latch IC 74HC573. Simply, this IC pass data from input pins to output pins in case we enables that action. We need to interface 2 LCDs with MC using PORTC, then displaying “LCD_1”on first LCD and displaying “LCD_2” on second LCD. Exercise: LCD_1 LCD_2
16.
16 Let's have Fun
With LCD . © Mohamed F.A.B 2015
17.
17 Questions: © Mohamed F.A.B
2015
18.
Thank You All
18 mo7amed.fawzy33@gmail.com 01006032792 fawzy.fab@gmail.com © Mohamed F.A.B 2015
Download now