SlideShare a Scribd company logo
4
Most read
5
Most read
6
Most read
Key board interfacing with 8051
8051 Development Board
• The 8051 Development board is specifically designed
to help students to master the required skills in the
area of embedded systems. The kit is designed in such
way that all the possible features of the
microcontroller will be easily used by the students.
The kit supports in system programming (ISP) which is
done through serial port.
• NXP’s 8051 (AT89V51RD2), 8051 Development Kit is
proposed to smooth the progress of developing and
debugging of various designs encompassing of speed
8-bit Microcontrollers.
Keypad:
A keypad is a set of buttons arranged in a block or "pad" which
usually bear digits, symbols and usually a complete set of
alphabetical letters. If it mostly contains numbers then it can also
be called a numeric keypad. Here we are using 4 X 4 matrix
keypad.
Interfacing keypad:
• Figure shows how to interface the 4 X 4 matrix keypad to two
ports in microcontroller. The rows are connected to an output
port and the columns are connected to an input port.
• To detect a pressed key, the microcontroller grounds all rows by
providing 0 to the output latch, and then it reads the columns. If
the data read from the columns is D3-D0=1111, no key has
been pressed and the process continues until a key press is
detected. However, if one of the column bits has a zero, this
means that a key press has occurred. For example, if D3-
D0=1101, this means that a key in the D1 column has been
pressed.
• After a key press is detected, the microcontroller will go through
the process of identifying the key. Starting with the top row, the
microcontroller grounds it by providing a low to row D0 only;
then it reads the columns.
Circuit Diagram to Interface keypad with
8051
• If the data read is all 1s, no key in that row is activated and the
process is moved to the next row. It grounds the next row,
reads the columns, and checks for any zero. This process
continues until the row is identified. After identification of the
row in which the key has been pressed, the next task is to find
out which column the pressed key belongs to.
Pin Assignment with 8051
Interfacing keypad with 8051
• We now want to scan a keypad in 8051 Development board. In
case of 4X4 matrix Keypad both the ends of switches are
connected to the port pin i.e. four rows and four columns. So in
all sixteen switches have been interfaced using just eight lines.
• 1Keypads arranged by matrix format, each row and column
section pulled by high or low by selection J5, all row lines(P2.4
– P2.7) and column lines(P2.0 to P2.3) connected directly by
the port pins.
Key board interfacing with 8051

More Related Content

PPTX
Presentation renewable energy resources
Hemant yadav
 
PPTX
Wireless communication
Darshan Maru
 
PPTX
Printed board circuit design (Pcb) PPT
HoneyKumar34
 
PDF
Keypad Interfacing with 8051 Microcontroller
Sudhanshu Janwadkar
 
PPTX
Basic Processing Unit
Slideshare
 
PPTX
Chapter 02 The Evolution of Management Thinking
Rayman Soe
 
PPT
Adc interfacing
Monica Gunjal
 
PDF
Iot how it works
S SIVARAMAKRISHNAN
 
Presentation renewable energy resources
Hemant yadav
 
Wireless communication
Darshan Maru
 
Printed board circuit design (Pcb) PPT
HoneyKumar34
 
Keypad Interfacing with 8051 Microcontroller
Sudhanshu Janwadkar
 
Basic Processing Unit
Slideshare
 
Chapter 02 The Evolution of Management Thinking
Rayman Soe
 
Adc interfacing
Monica Gunjal
 
Iot how it works
S SIVARAMAKRISHNAN
 

What's hot (20)

PPTX
LCD Interacing with 8051
Sudhanshu Janwadkar
 
PPT
8086 micro processor
Poojith Chowdhary
 
PPTX
Interfacing with peripherals: analog to digital converters and digital to ana...
NimeshSingh27
 
PPT
8051 serial communication-UART
Pantech ProLabs India Pvt Ltd
 
PPT
Interfacing LCD with 8051 Microcontroller
Pantech ProLabs India Pvt Ltd
 
PPTX
Microprocessor 8085 complete
Shubham Singh
 
PPTX
8051 MICROCONTROLLER ARCHITECTURE.pptx
MemonaMemon1
 
PPTX
Pic microcontroller architecture
DominicHendry
 
PPTX
8251 USART
ShivamSood22
 
PDF
8253ppt
Bharani Samrat
 
PPT
8051 ch9
860540760
 
PPT
8051 instruction set
Andri Prastiyo
 
PPT
06. thumb instructions
balaji raja rajan Venkatachalam
 
PPTX
8051 timer counter
vishalgohel12195
 
PPTX
Microcontroller 8051 and its interfacing
Ankur Mahajan
 
PPTX
Lecture 5 Synchronous Sequential Logic
James Evangelos
 
PPTX
3.programmable interrupt controller 8259
MdFazleRabbi18
 
PPT
Memory organization of 8051
Muthu Manickam
 
PPT
Memory & I/O interfacing
deval patel
 
PPT
microcontroller basics
sagar Ramdev
 
LCD Interacing with 8051
Sudhanshu Janwadkar
 
8086 micro processor
Poojith Chowdhary
 
Interfacing with peripherals: analog to digital converters and digital to ana...
NimeshSingh27
 
8051 serial communication-UART
Pantech ProLabs India Pvt Ltd
 
Interfacing LCD with 8051 Microcontroller
Pantech ProLabs India Pvt Ltd
 
Microprocessor 8085 complete
Shubham Singh
 
8051 MICROCONTROLLER ARCHITECTURE.pptx
MemonaMemon1
 
Pic microcontroller architecture
DominicHendry
 
8251 USART
ShivamSood22
 
8051 ch9
860540760
 
8051 instruction set
Andri Prastiyo
 
06. thumb instructions
balaji raja rajan Venkatachalam
 
8051 timer counter
vishalgohel12195
 
Microcontroller 8051 and its interfacing
Ankur Mahajan
 
Lecture 5 Synchronous Sequential Logic
James Evangelos
 
3.programmable interrupt controller 8259
MdFazleRabbi18
 
Memory organization of 8051
Muthu Manickam
 
Memory & I/O interfacing
deval patel
 
microcontroller basics
sagar Ramdev
 
Ad

Similar to Key board interfacing with 8051 (20)

PPTX
Keyboard Interfacing .pptx
livaunnoor
 
DOCX
8051
Sohail Sheikh
 
PPTX
Micro c lab4(keypad)
Mashood
 
PPTX
UNIT 5 Interfacing and Mixed Signal Controller.pptx
Gowrishankar C
 
PPTX
UNIT 5.pptx
BASKARS53
 
PDF
Microcontroladores: El microcontrolador 8051 con LCD 16x2
SANTIAGO PABLO ALBERTO
 
PPT
Interfacing ics for microprocessor
THANDAIAH PRABU
 
PPTX
UNIT V - INTERFACING MICROCONTROLLER (1).pptx
rdjeyan
 
PPTX
Analog to Digital .pptx
karanthakur846894
 
DOCX
Keypad interfacing 8051 -NANOCDAC
nanocdac
 
PPTX
8051 io interface
Abhinav Shubham
 
PDF
Unit 5
tamilnesaner
 
PPT
Microcontroller 8051
Shivashankar Sawalgi
 
PPT
I Ointerface in mp
Aisu
 
PPT
8051 MMD Chapter 1.ppt
notagain0712
 
PPT
10617568.ppt
HusamAljabli
 
PPTX
8279 programmable keyboard switches leds
msaraswathypillai02
 
PPTX
8279 Programable keyboard switches and .
msaraswathypillai02
 
PPT
Ch3 ppt
wasz123
 
PPTX
visitor counter_POLICE_NEWT0N_789456.pptx
sahulipunku2001
 
Keyboard Interfacing .pptx
livaunnoor
 
Micro c lab4(keypad)
Mashood
 
UNIT 5 Interfacing and Mixed Signal Controller.pptx
Gowrishankar C
 
UNIT 5.pptx
BASKARS53
 
Microcontroladores: El microcontrolador 8051 con LCD 16x2
SANTIAGO PABLO ALBERTO
 
Interfacing ics for microprocessor
THANDAIAH PRABU
 
UNIT V - INTERFACING MICROCONTROLLER (1).pptx
rdjeyan
 
Analog to Digital .pptx
karanthakur846894
 
Keypad interfacing 8051 -NANOCDAC
nanocdac
 
8051 io interface
Abhinav Shubham
 
Unit 5
tamilnesaner
 
Microcontroller 8051
Shivashankar Sawalgi
 
I Ointerface in mp
Aisu
 
8051 MMD Chapter 1.ppt
notagain0712
 
10617568.ppt
HusamAljabli
 
8279 programmable keyboard switches leds
msaraswathypillai02
 
8279 Programable keyboard switches and .
msaraswathypillai02
 
Ch3 ppt
wasz123
 
visitor counter_POLICE_NEWT0N_789456.pptx
sahulipunku2001
 
Ad

More from DominicHendry (18)

PPTX
Venturi meter
DominicHendry
 
PPTX
Rotameter
DominicHendry
 
PPTX
Rdt
DominicHendry
 
PPTX
Part family
DominicHendry
 
PPTX
Coding
DominicHendry
 
PPT
8051 timer and counter 1
DominicHendry
 
PPT
8051 block diagram
DominicHendry
 
PPTX
Rotameter
DominicHendry
 
PPTX
2 d dimensioning
DominicHendry
 
PPTX
Pmmc instruments
DominicHendry
 
PPTX
Pic microcontroller architecture
DominicHendry
 
PPTX
Optical torsion meter
DominicHendry
 
PPTX
op amp
DominicHendry
 
PPTX
Ic 555 timer as astable
DominicHendry
 
PPTX
Hydraulics circuits
DominicHendry
 
PPTX
Friction
DominicHendry
 
PPTX
Basic principles of pneumatics
DominicHendry
 
Venturi meter
DominicHendry
 
Rotameter
DominicHendry
 
Part family
DominicHendry
 
8051 timer and counter 1
DominicHendry
 
8051 block diagram
DominicHendry
 
Rotameter
DominicHendry
 
2 d dimensioning
DominicHendry
 
Pmmc instruments
DominicHendry
 
Pic microcontroller architecture
DominicHendry
 
Optical torsion meter
DominicHendry
 
op amp
DominicHendry
 
Ic 555 timer as astable
DominicHendry
 
Hydraulics circuits
DominicHendry
 
Friction
DominicHendry
 
Basic principles of pneumatics
DominicHendry
 

Recently uploaded (20)

PPTX
Nature of Science and the kinds of models used in science
JocelynEvascoRomanti
 
PPTX
Qualification of.UV visible spectrophotometer pptx
shrutipandit17
 
PDF
NSF-DOE Vera C. Rubin Observatory Observations of Interstellar Comet 3I/ATLAS...
Sérgio Sacani
 
PPTX
ANTIANGINAL DRUGS.pptx m pharm pharmacology
46JaybhayAshwiniHari
 
PPTX
METABOLIC_SYNDROME Dr Shadab- kgmu lucknow pptx
ShadabAlam169087
 
PPTX
Nanofertilizer: Its potential benefits and associated challenges.pptx
BikramjitDeuri
 
PPTX
Brain_stem_Medulla oblongata_functions of pons_mid brain
muralinath2
 
PDF
A water-rich interior in the temperate sub-Neptune K2-18 b revealed by JWST
Sérgio Sacani
 
PDF
A deep Search for Ethylene Glycol and Glycolonitrile in the V883 Ori Protopla...
Sérgio Sacani
 
PDF
Identification of unnecessary object allocations using static escape analysis
ESUG
 
PDF
Control and coordination Class 10 Chapter 6
LataHolkar
 
PPTX
Home Garden as a Component of Agroforestry system : A survey-based Study
AkhangshaRoy
 
DOCX
Echoes_of_Andromeda_Partial (1).docx9989
yakshitkrishnia5a3
 
PPTX
Hydrocarbons Pollution. OIL pollutionpptx
AkCreation33
 
PDF
study of microbiologically influenced corrosion of 2205 duplex stainless stee...
ahmadfreak180
 
PDF
JADESreveals a large population of low mass black holes at high redshift
Sérgio Sacani
 
PDF
Sujay Rao Mandavilli Multi-barreled appraoch to educational reform FINAL FINA...
Sujay Rao Mandavilli
 
PPTX
Feeding stratagey for climate change dairy animals.
Dr.Zulfy haq
 
PPTX
Unit 4 - Astronomy and Astrophysics - Milky Way And External Galaxies
RDhivya6
 
PPTX
Hepatopulmonary syndrome power point presentation
raknasivar1997
 
Nature of Science and the kinds of models used in science
JocelynEvascoRomanti
 
Qualification of.UV visible spectrophotometer pptx
shrutipandit17
 
NSF-DOE Vera C. Rubin Observatory Observations of Interstellar Comet 3I/ATLAS...
Sérgio Sacani
 
ANTIANGINAL DRUGS.pptx m pharm pharmacology
46JaybhayAshwiniHari
 
METABOLIC_SYNDROME Dr Shadab- kgmu lucknow pptx
ShadabAlam169087
 
Nanofertilizer: Its potential benefits and associated challenges.pptx
BikramjitDeuri
 
Brain_stem_Medulla oblongata_functions of pons_mid brain
muralinath2
 
A water-rich interior in the temperate sub-Neptune K2-18 b revealed by JWST
Sérgio Sacani
 
A deep Search for Ethylene Glycol and Glycolonitrile in the V883 Ori Protopla...
Sérgio Sacani
 
Identification of unnecessary object allocations using static escape analysis
ESUG
 
Control and coordination Class 10 Chapter 6
LataHolkar
 
Home Garden as a Component of Agroforestry system : A survey-based Study
AkhangshaRoy
 
Echoes_of_Andromeda_Partial (1).docx9989
yakshitkrishnia5a3
 
Hydrocarbons Pollution. OIL pollutionpptx
AkCreation33
 
study of microbiologically influenced corrosion of 2205 duplex stainless stee...
ahmadfreak180
 
JADESreveals a large population of low mass black holes at high redshift
Sérgio Sacani
 
Sujay Rao Mandavilli Multi-barreled appraoch to educational reform FINAL FINA...
Sujay Rao Mandavilli
 
Feeding stratagey for climate change dairy animals.
Dr.Zulfy haq
 
Unit 4 - Astronomy and Astrophysics - Milky Way And External Galaxies
RDhivya6
 
Hepatopulmonary syndrome power point presentation
raknasivar1997
 

Key board interfacing with 8051

  • 2. 8051 Development Board • The 8051 Development board is specifically designed to help students to master the required skills in the area of embedded systems. The kit is designed in such way that all the possible features of the microcontroller will be easily used by the students. The kit supports in system programming (ISP) which is done through serial port. • NXP’s 8051 (AT89V51RD2), 8051 Development Kit is proposed to smooth the progress of developing and debugging of various designs encompassing of speed 8-bit Microcontrollers.
  • 3. Keypad: A keypad is a set of buttons arranged in a block or "pad" which usually bear digits, symbols and usually a complete set of alphabetical letters. If it mostly contains numbers then it can also be called a numeric keypad. Here we are using 4 X 4 matrix keypad. Interfacing keypad: • Figure shows how to interface the 4 X 4 matrix keypad to two ports in microcontroller. The rows are connected to an output port and the columns are connected to an input port.
  • 4. • To detect a pressed key, the microcontroller grounds all rows by providing 0 to the output latch, and then it reads the columns. If the data read from the columns is D3-D0=1111, no key has been pressed and the process continues until a key press is detected. However, if one of the column bits has a zero, this means that a key press has occurred. For example, if D3- D0=1101, this means that a key in the D1 column has been pressed. • After a key press is detected, the microcontroller will go through the process of identifying the key. Starting with the top row, the microcontroller grounds it by providing a low to row D0 only; then it reads the columns.
  • 5. Circuit Diagram to Interface keypad with 8051
  • 6. • If the data read is all 1s, no key in that row is activated and the process is moved to the next row. It grounds the next row, reads the columns, and checks for any zero. This process continues until the row is identified. After identification of the row in which the key has been pressed, the next task is to find out which column the pressed key belongs to.
  • 8. Interfacing keypad with 8051 • We now want to scan a keypad in 8051 Development board. In case of 4X4 matrix Keypad both the ends of switches are connected to the port pin i.e. four rows and four columns. So in all sixteen switches have been interfaced using just eight lines. • 1Keypads arranged by matrix format, each row and column section pulled by high or low by selection J5, all row lines(P2.4 – P2.7) and column lines(P2.0 to P2.3) connected directly by the port pins.