SlideShare a Scribd company logo
ARM LPC2148 Training
Class - 2
Topic : Introduction to 16x2
LCD, Interfacing with ARM
4/29/2020 Electrical Product Development
Lab
1
Topics
• 16x2 LCD Introduction
• Initialization of LCD
• Simulation of LCD
• Interfacing LCD with ARM
4/29/2020 Electrical Product Development
Lab
2
16x2 LCD Introduction
4/29/2020 Electrical Product Development
Lab
3
Fig : 1 PIN Diagram of 16x2 LCD
16x2 LCD Introduction (Cont..)
4/29/2020 Electrical Product Development
Lab
4
Control blocks in LCD
• DDRAM - Display Data RAM
Display data RAM (DDRAM) stores display
data represented in 8-bit character codes. So
whatever you send on the DDRAM is actually
displayed on the LCD
Fig : 2 DDRAM addresses of 4 Line LCDs.
16x2 LCD Introduction (Cont..)
• CGROM- Character Generator ROM
When we send a ASCII value to DDRAM,
how the character is displayed on LCD? so the
answer is CGROM.
The character generator ROM generates 5 x 8
dot or 5 x 10 dot character patterns from 8-bit
character codes.
It can generate 208 5 x 8 dot character
patterns and 32 5 x 10 dot character patterns
4/29/2020 Electrical Product Development
Lab
5
16x2 LCD Introduction (Cont..)
• CGRAM - Character Generator RAM
As clear from the name, the CGRAM area is used to
create custom characters in LCD.
4/29/2020 Electrical Product Development
Lab
6
Fig : 3 CGRAM addresses of 16x2 LCD
16x2 LCD Introduction (Cont..)
• As you can see in both the code maps, the
character code from 0x00 to 0x07 is occupied
by the CGRAM characters or the user-defined
characters.
• If a user wants to display the fourth custom
character then the code to display it is 0x03
4/29/2020 Electrical Product Development
Lab
7
Fig : 4 Code Maps, the Character Code
16x2 LCD Introduction (Cont..)
4/29/2020 Electrical Product Development
Lab
8
Fig : 5 Character Map for 5x8 Fig : 6 Character Map for 5x10
16x2 LCD Introduction (Cont..)
4/29/2020 Electrical Product Development
Lab
9
Fig : 7 ASCII Character Table
16x2 LCD Introduction (Cont..)
4/29/2020 Electrical Product Development
Lab
10
Fig : 8 Extended ASCII Codes
16x2 LCD Introduction (Cont..)
• BF - Busy Flag
– BF =1 Instruction has being executing
– BF = 0 Instruction is executed successfully
• Instruction Register (IR) and Data Register
(DR) 16 BIT
– IR – 8 Bit
– DR – 8 Bit
4/29/2020 Electrical Product Development
Lab
11
Initialization of LCD
• Two different modes of configuration
– 8 Bit mode
• Operates fast because the data is transferred by
single Enable pulse on EN pin.
• Requires more data lines
– 4 Bit mode
• Requires less data lines
• Operates slow because the data is transferred after
two Enable pulse on EN pin.
4/29/2020 Electrical Product Development
Lab
12
Initialization of LCD
4/29/2020 Electrical Product Development
Lab
13
Fig : 9 Connection diagram of 16x2 LCD
Initialization of LCD
4/29/2020 Electrical Product Development
Lab
14
Fig : 10 16x2 LCD Commands
D4 D5 D6 D7
1 1 0 0
1 1 0 0
1 1 0 0
0 1 0 0
4/29/2020 Electrical Product Development
Lab
15
Fig : 11, 4-Bit mode Initialization Procedure
Table 1: Initialization
Step
Initialization of LCD
4/29/2020 Electrical Product Development
Lab
16
D4 D5 D6 D7
1 1 0 0
1 1 0 0
1 1 0 0
0 1 0 0
0 1 0 0
0 0 0 1
0 0 0 0
1 1 1 1
Table 1: Initialization Step
As mention in datasheet
Function set 4 Bit mode
2 line 5x7 Dots
HEX value – 0x28
Display ON Cursor Blink
HEX value – 0x0F
Passing Command
RS – Register Select
• 0 to pass command
• 1 to pass data
RW – Read/Write
• 0 to Write LCD
• 1 to Read LCD
1. Send Hex Command
• 4 bit binary data to D7
to D4
• CLK from 0 to 1 at E
pin
• .
.
Initialization of LCD
Passing Data to LCD
• RS – Register Select
• 0 to pass command
• 1 to pass data
• RW – Read/Write
• 0 to Write LCD
• 1 to Read LCD
• Display ‘A’ in LCD
• Send upper 4 bit 0100
• CLK E pin from 0 to 1 →0
• Send lower 4 bit 0001
• CLK E pin from 0 to 1 →0
4/29/2020 Electrical Product Development
Lab
17
Initialization of LCD
4/29/2020 Electrical Product Development
Lab
18
Fig : 12, 4-Bit and 8- Bit mode data flow
Simulation of LCD
4/29/2020 Electrical Product Development
Lab
19
Interfacing LCD with ARM
4/29/2020 Electrical Product Development
Lab
20
Assignment
• Write the program to display “ARM” in LCD and
scroll left by 2 times and right by 2 times.
4/29/2020 Electrical Product Development
Lab
21
Thank You
4/29/2020 Electrical Product Development
Lab
22

More Related Content

What's hot

Ece 465 project_1_report_vishesh_shravan
Ece 465 project_1_report_vishesh_shravanEce 465 project_1_report_vishesh_shravan
Ece 465 project_1_report_vishesh_shravan
Vishesh Chanana
 
Combinational Logic
Combinational Logic Combinational Logic
Combinational Logic
Ketan Kamra
 
Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310
DHEERAJ DHAKAR
 
Chapter 6 - Introduction to 8085 Instructions
Chapter 6 - Introduction to 8085 InstructionsChapter 6 - Introduction to 8085 Instructions
Chapter 6 - Introduction to 8085 Instructions
cmkandemir
 
Combinational Logic with MSI and LSI
Combinational Logic with MSI and LSICombinational Logic with MSI and LSI
Combinational Logic with MSI and LSI
Sikder Tahsin Al-Amin
 
Chapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional InstructionsChapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional Instructions
cmkandemir
 
Combinational logic
Combinational logicCombinational logic
Combinational logic
Ezeokafor Chibueze
 
Read only memory(rom)
Read only memory(rom)Read only memory(rom)
Read only memory(rom)
Syed Saeed
 
Lecture 05 pic io port programming
Lecture 05 pic io port programmingLecture 05 pic io port programming
Lecture 05 pic io port programming
Vajira Thambawita
 
Digital Design for B.Tech. / B.Sc.
Digital Design for B.Tech. / B.Sc.Digital Design for B.Tech. / B.Sc.
Digital Design for B.Tech. / B.Sc.
PSK Research Foundation
 
8085 instruction set and Programming
8085 instruction set and Programming 8085 instruction set and Programming
8085 instruction set and Programming
pooja saini
 
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECEDigital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
SeshaVidhyaS
 
19. io interfacing i
19. io interfacing i19. io interfacing i
19. io interfacing i
sandip das
 
Unit 5 assembly language programming
Unit 5   assembly language programmingUnit 5   assembly language programming
Unit 5 assembly language programming
Kartik Sharma
 
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, EncoderCOMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
Vanitha Chandru
 
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
Taha Malampatti
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
Shailendra Gohil
 
Verilog VHDL code Multiplexer and De Multiplexer
Verilog VHDL code Multiplexer and De Multiplexer Verilog VHDL code Multiplexer and De Multiplexer
Verilog VHDL code Multiplexer and De Multiplexer
Bharti Airtel Ltd.
 
Instruction set of 8085
Instruction set  of 8085Instruction set  of 8085
Instruction set of 8085
shiji v r
 
Programming with 8085-Microprocessor and interfacing
Programming with 8085-Microprocessor and interfacingProgramming with 8085-Microprocessor and interfacing
Programming with 8085-Microprocessor and interfacing
Amitabh Shukla
 

What's hot (20)

Ece 465 project_1_report_vishesh_shravan
Ece 465 project_1_report_vishesh_shravanEce 465 project_1_report_vishesh_shravan
Ece 465 project_1_report_vishesh_shravan
 
Combinational Logic
Combinational Logic Combinational Logic
Combinational Logic
 
Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310
 
Chapter 6 - Introduction to 8085 Instructions
Chapter 6 - Introduction to 8085 InstructionsChapter 6 - Introduction to 8085 Instructions
Chapter 6 - Introduction to 8085 Instructions
 
Combinational Logic with MSI and LSI
Combinational Logic with MSI and LSICombinational Logic with MSI and LSI
Combinational Logic with MSI and LSI
 
Chapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional InstructionsChapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional Instructions
 
Combinational logic
Combinational logicCombinational logic
Combinational logic
 
Read only memory(rom)
Read only memory(rom)Read only memory(rom)
Read only memory(rom)
 
Lecture 05 pic io port programming
Lecture 05 pic io port programmingLecture 05 pic io port programming
Lecture 05 pic io port programming
 
Digital Design for B.Tech. / B.Sc.
Digital Design for B.Tech. / B.Sc.Digital Design for B.Tech. / B.Sc.
Digital Design for B.Tech. / B.Sc.
 
8085 instruction set and Programming
8085 instruction set and Programming 8085 instruction set and Programming
8085 instruction set and Programming
 
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECEDigital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
 
19. io interfacing i
19. io interfacing i19. io interfacing i
19. io interfacing i
 
Unit 5 assembly language programming
Unit 5   assembly language programmingUnit 5   assembly language programming
Unit 5 assembly language programming
 
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, EncoderCOMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
 
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
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 
Verilog VHDL code Multiplexer and De Multiplexer
Verilog VHDL code Multiplexer and De Multiplexer Verilog VHDL code Multiplexer and De Multiplexer
Verilog VHDL code Multiplexer and De Multiplexer
 
Instruction set of 8085
Instruction set  of 8085Instruction set  of 8085
Instruction set of 8085
 
Programming with 8085-Microprocessor and interfacing
Programming with 8085-Microprocessor and interfacingProgramming with 8085-Microprocessor and interfacing
Programming with 8085-Microprocessor and interfacing
 

Similar to ARM LCD Interfacing

Hd44780a00 dtasheet
Hd44780a00 dtasheetHd44780a00 dtasheet
Hd44780a00 dtasheet
Santiago Diosdado
 
Tft touch screen manufacturers
Tft touch screen manufacturersTft touch screen manufacturers
Tft touch screen manufacturers
KeatonParker2
 
LCD Interacing with 8051
LCD Interacing with 8051LCD Interacing with 8051
LCD Interacing with 8051
Sudhanshu Janwadkar
 
Microcontroller part 4
Microcontroller part 4Microcontroller part 4
Microcontroller part 4
Keroles karam khalil
 
Lcd & keypad
Lcd & keypadLcd & keypad
Lcd & keypad
Izwanizam Yahaya
 
ESD -DAY 24.pptx
ESD -DAY 24.pptxESD -DAY 24.pptx
ESD -DAY 24.pptx
BhagvatShukla
 
Arduino-based-diag OBD-II_programação.pdf
Arduino-based-diag OBD-II_programação.pdfArduino-based-diag OBD-II_programação.pdf
Arduino-based-diag OBD-II_programação.pdf
Jcradio Vw
 
Arduino-based-diag OBD-II_programação.pdf
Arduino-based-diag OBD-II_programação.pdfArduino-based-diag OBD-II_programação.pdf
Arduino-based-diag OBD-II_programação.pdf
Jcradio Vw
 
08_lcd.pdf
08_lcd.pdf08_lcd.pdf
08_lcd.pdf
ssusera55490
 
1 PageAlarm Clock Design Using PIC18F45E.docx
1  PageAlarm Clock Design Using PIC18F45E.docx1  PageAlarm Clock Design Using PIC18F45E.docx
1 PageAlarm Clock Design Using PIC18F45E.docx
mercysuttle
 
4 bit lcd_interfacing_with_arm7_primer
4 bit lcd_interfacing_with_arm7_primer4 bit lcd_interfacing_with_arm7_primer
4 bit lcd_interfacing_with_arm7_primer
pvmistary
 
4 bit lcd_interfacing_with_arm7_primer
4 bit lcd_interfacing_with_arm7_primer4 bit lcd_interfacing_with_arm7_primer
4 bit lcd_interfacing_with_arm7_primer
pvmistary
 
Calculator design with lcd using fpga
Calculator design with lcd using fpgaCalculator design with lcd using fpga
Calculator design with lcd using fpga
Hossam Hassan
 
Application specific Programming of the Texas Instruments ...
Application specific Programming of the Texas Instruments  ...Application specific Programming of the Texas Instruments  ...
Application specific Programming of the Texas Instruments ...
butest
 
Moving message display
Moving message displayMoving message display
Moving message display
viraj1989
 
Digital Alarm Clock 446 project report
Digital Alarm Clock 446 project reportDigital Alarm Clock 446 project report
Digital Alarm Clock 446 project report
Akash Mhankale
 
LCD WITH 8051.docx
LCD WITH 8051.docxLCD WITH 8051.docx
LCD WITH 8051.docx
bhattparthiv23
 
PIC16F877A C Programming.ppt
PIC16F877A C Programming.pptPIC16F877A C Programming.ppt
PIC16F877A C Programming.ppt
IlaiyarajaS1
 
Encoder-and-decoder.pptx
Encoder-and-decoder.pptxEncoder-and-decoder.pptx
Encoder-and-decoder.pptx
KamranAli649587
 
Implementation of sign board dot matrix display with 8051
Implementation of sign board dot matrix display with 8051Implementation of sign board dot matrix display with 8051
Implementation of sign board dot matrix display with 8051
Aminu Bugaje
 

Similar to ARM LCD Interfacing (20)

Hd44780a00 dtasheet
Hd44780a00 dtasheetHd44780a00 dtasheet
Hd44780a00 dtasheet
 
Tft touch screen manufacturers
Tft touch screen manufacturersTft touch screen manufacturers
Tft touch screen manufacturers
 
LCD Interacing with 8051
LCD Interacing with 8051LCD Interacing with 8051
LCD Interacing with 8051
 
Microcontroller part 4
Microcontroller part 4Microcontroller part 4
Microcontroller part 4
 
Lcd & keypad
Lcd & keypadLcd & keypad
Lcd & keypad
 
ESD -DAY 24.pptx
ESD -DAY 24.pptxESD -DAY 24.pptx
ESD -DAY 24.pptx
 
Arduino-based-diag OBD-II_programação.pdf
Arduino-based-diag OBD-II_programação.pdfArduino-based-diag OBD-II_programação.pdf
Arduino-based-diag OBD-II_programação.pdf
 
Arduino-based-diag OBD-II_programação.pdf
Arduino-based-diag OBD-II_programação.pdfArduino-based-diag OBD-II_programação.pdf
Arduino-based-diag OBD-II_programação.pdf
 
08_lcd.pdf
08_lcd.pdf08_lcd.pdf
08_lcd.pdf
 
1 PageAlarm Clock Design Using PIC18F45E.docx
1  PageAlarm Clock Design Using PIC18F45E.docx1  PageAlarm Clock Design Using PIC18F45E.docx
1 PageAlarm Clock Design Using PIC18F45E.docx
 
4 bit lcd_interfacing_with_arm7_primer
4 bit lcd_interfacing_with_arm7_primer4 bit lcd_interfacing_with_arm7_primer
4 bit lcd_interfacing_with_arm7_primer
 
4 bit lcd_interfacing_with_arm7_primer
4 bit lcd_interfacing_with_arm7_primer4 bit lcd_interfacing_with_arm7_primer
4 bit lcd_interfacing_with_arm7_primer
 
Calculator design with lcd using fpga
Calculator design with lcd using fpgaCalculator design with lcd using fpga
Calculator design with lcd using fpga
 
Application specific Programming of the Texas Instruments ...
Application specific Programming of the Texas Instruments  ...Application specific Programming of the Texas Instruments  ...
Application specific Programming of the Texas Instruments ...
 
Moving message display
Moving message displayMoving message display
Moving message display
 
Digital Alarm Clock 446 project report
Digital Alarm Clock 446 project reportDigital Alarm Clock 446 project report
Digital Alarm Clock 446 project report
 
LCD WITH 8051.docx
LCD WITH 8051.docxLCD WITH 8051.docx
LCD WITH 8051.docx
 
PIC16F877A C Programming.ppt
PIC16F877A C Programming.pptPIC16F877A C Programming.ppt
PIC16F877A C Programming.ppt
 
Encoder-and-decoder.pptx
Encoder-and-decoder.pptxEncoder-and-decoder.pptx
Encoder-and-decoder.pptx
 
Implementation of sign board dot matrix display with 8051
Implementation of sign board dot matrix display with 8051Implementation of sign board dot matrix display with 8051
Implementation of sign board dot matrix display with 8051
 

Recently uploaded

writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 

Recently uploaded (20)

writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 

ARM LCD Interfacing

  • 1. ARM LPC2148 Training Class - 2 Topic : Introduction to 16x2 LCD, Interfacing with ARM 4/29/2020 Electrical Product Development Lab 1
  • 2. Topics • 16x2 LCD Introduction • Initialization of LCD • Simulation of LCD • Interfacing LCD with ARM 4/29/2020 Electrical Product Development Lab 2
  • 3. 16x2 LCD Introduction 4/29/2020 Electrical Product Development Lab 3 Fig : 1 PIN Diagram of 16x2 LCD
  • 4. 16x2 LCD Introduction (Cont..) 4/29/2020 Electrical Product Development Lab 4 Control blocks in LCD • DDRAM - Display Data RAM Display data RAM (DDRAM) stores display data represented in 8-bit character codes. So whatever you send on the DDRAM is actually displayed on the LCD Fig : 2 DDRAM addresses of 4 Line LCDs.
  • 5. 16x2 LCD Introduction (Cont..) • CGROM- Character Generator ROM When we send a ASCII value to DDRAM, how the character is displayed on LCD? so the answer is CGROM. The character generator ROM generates 5 x 8 dot or 5 x 10 dot character patterns from 8-bit character codes. It can generate 208 5 x 8 dot character patterns and 32 5 x 10 dot character patterns 4/29/2020 Electrical Product Development Lab 5
  • 6. 16x2 LCD Introduction (Cont..) • CGRAM - Character Generator RAM As clear from the name, the CGRAM area is used to create custom characters in LCD. 4/29/2020 Electrical Product Development Lab 6 Fig : 3 CGRAM addresses of 16x2 LCD
  • 7. 16x2 LCD Introduction (Cont..) • As you can see in both the code maps, the character code from 0x00 to 0x07 is occupied by the CGRAM characters or the user-defined characters. • If a user wants to display the fourth custom character then the code to display it is 0x03 4/29/2020 Electrical Product Development Lab 7 Fig : 4 Code Maps, the Character Code
  • 8. 16x2 LCD Introduction (Cont..) 4/29/2020 Electrical Product Development Lab 8 Fig : 5 Character Map for 5x8 Fig : 6 Character Map for 5x10
  • 9. 16x2 LCD Introduction (Cont..) 4/29/2020 Electrical Product Development Lab 9 Fig : 7 ASCII Character Table
  • 10. 16x2 LCD Introduction (Cont..) 4/29/2020 Electrical Product Development Lab 10 Fig : 8 Extended ASCII Codes
  • 11. 16x2 LCD Introduction (Cont..) • BF - Busy Flag – BF =1 Instruction has being executing – BF = 0 Instruction is executed successfully • Instruction Register (IR) and Data Register (DR) 16 BIT – IR – 8 Bit – DR – 8 Bit 4/29/2020 Electrical Product Development Lab 11
  • 12. Initialization of LCD • Two different modes of configuration – 8 Bit mode • Operates fast because the data is transferred by single Enable pulse on EN pin. • Requires more data lines – 4 Bit mode • Requires less data lines • Operates slow because the data is transferred after two Enable pulse on EN pin. 4/29/2020 Electrical Product Development Lab 12
  • 13. Initialization of LCD 4/29/2020 Electrical Product Development Lab 13 Fig : 9 Connection diagram of 16x2 LCD
  • 14. Initialization of LCD 4/29/2020 Electrical Product Development Lab 14 Fig : 10 16x2 LCD Commands
  • 15. D4 D5 D6 D7 1 1 0 0 1 1 0 0 1 1 0 0 0 1 0 0 4/29/2020 Electrical Product Development Lab 15 Fig : 11, 4-Bit mode Initialization Procedure Table 1: Initialization Step
  • 16. Initialization of LCD 4/29/2020 Electrical Product Development Lab 16 D4 D5 D6 D7 1 1 0 0 1 1 0 0 1 1 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 1 1 1 Table 1: Initialization Step As mention in datasheet Function set 4 Bit mode 2 line 5x7 Dots HEX value – 0x28 Display ON Cursor Blink HEX value – 0x0F Passing Command RS – Register Select • 0 to pass command • 1 to pass data RW – Read/Write • 0 to Write LCD • 1 to Read LCD 1. Send Hex Command • 4 bit binary data to D7 to D4 • CLK from 0 to 1 at E pin • . .
  • 17. Initialization of LCD Passing Data to LCD • RS – Register Select • 0 to pass command • 1 to pass data • RW – Read/Write • 0 to Write LCD • 1 to Read LCD • Display ‘A’ in LCD • Send upper 4 bit 0100 • CLK E pin from 0 to 1 →0 • Send lower 4 bit 0001 • CLK E pin from 0 to 1 →0 4/29/2020 Electrical Product Development Lab 17
  • 18. Initialization of LCD 4/29/2020 Electrical Product Development Lab 18 Fig : 12, 4-Bit and 8- Bit mode data flow
  • 19. Simulation of LCD 4/29/2020 Electrical Product Development Lab 19
  • 20. Interfacing LCD with ARM 4/29/2020 Electrical Product Development Lab 20
  • 21. Assignment • Write the program to display “ARM” in LCD and scroll left by 2 times and right by 2 times. 4/29/2020 Electrical Product Development Lab 21
  • 22. Thank You 4/29/2020 Electrical Product Development Lab 22