Explain with sketch the interfacing of 4 ×4 matrix keypad with 8051 microcontroller.

1 Answer

Answer :

image

Interfacing keypad Fig. 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. 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.

Related questions

Description : Draw and explain the interfacing of DAC to 8051.

Last Answer : Diagram:  * Microcontroller generates output which is in digital form but many controlling system requires analog signal as they don't accept digital data thus making it necessary to use DAC ... current. Hence we require an I to V converter to convert this current into equivalent voltage. 

Description : Draw interfacing of 16 × 2 LCD with 8051 and state the function of EN and RS of LCD

Last Answer : Diagram: RS: RS is the register select pin. We need to set it to 1, if we are sending some data to be displayed on LCD. And we will set it to 0 if we are sending some command instructions ... the LCD to latch in the data present at the data pins. This pulse must be a minimum of 450ns wide.

Description : Draw the format of PSW register of 8051 microcontroller and explain the function of each bit.

Last Answer : 1. CY: Carry flag. This flag is set whenever there is a carry out from the D7 bit after an 8 bit addition or subtraction. It can also be set to 1 or 0 directly by instructions such as SETB C and ... the A register contains an odd number of 1s, then P=1. P=0 if A has an even number of 1s.

Description : Draw and explain Internal port structure of Port 0 and Port 1 of 8051 microcontroller.

Last Answer : Port-0 can be configured as a normal bidirectional I/O port or it can be used for address/data interfacing for accessing external memory. When control is '1', the port is used for address/data ... is not able to sink the current the pin voltage may rise, leading to a possible wrong reading.

Description : State any four important features of 8051 microcontroller.

Last Answer : Features of 8051 microcontroller:  1) 8- bit data bus and 8- bit ALU. 2) 16- bit address bus - can access maximum 64KB of RAM and ROM. 3) On- chip RAM -128 bytes (Data ... 0 and Timer 1, two external hardware interrupts- INT0 and INT1, Serial communication interrupt for both receive and transmit.

Description : Describe 8051 microcontroller as boolean processor.

Last Answer : * 8051 processor is a CPU that can perform some operation on a data and gives the output. * The 8051 processor contains a complete Boolean processor for single-bit operations. * The internal RAM contains 128 ... CLR C means clear the carry bit SETB 20h means set the memory bit with bit address 20h.

Description : List specifications of 8051 microcontroller.

Last Answer : 1) 8- bit data bus and 8- bit ALU. 2) 16- bit address bus - can access maximum 64KB of RAM and ROM. 3) On- chip RAM -128 bytes (Data Memory) 4) On- chip ROM - 4 KB ( ... 0592 MHz 9) Has power down and idle mode in microcontroller when no operation is performed. 10) Six interrupts are available.

Description : Describe serial communication in 8051. Explain the use of SCON register.

Last Answer : 8051 micro controller communicate with another peripheral device through RXD and TXD pin of port3.controller have four mode of serial communication.  1. Serial Data Mode-0 (Baud Rate Fixed) In this mode ... .0 Receive interrupt flag. Set by hardware halfway through the stop bit time in mode 1. 

Description : Explain following instructions of 8051. (i) ADDC (ii) L CALL

Last Answer : (i) ADDC: The ADDC instruction adds a byte value and the value of the carry flag to the accumulator. The results of the addition are stored back in the accumulator. Several of the flag ... . Then the program counter is loaded with the new address and control is transferred to the subroutine. 

Description : Explain processes of interrupt enabling and disabling in 8051.

Last Answer : Interrupts are the events that temporarily suspend the main program, pass the control to the external sources and execute their task. It then passes the control to the main program where it had left off. ... interrupts. Its bit sequence and their meanings are shown in the following figure.

Description : Explain function of following pins of 8051 (i) Pin 31 (ii) Pin 29 (iii) Pin 21-28 

Last Answer : i) Pin 31-EA : It is and active low I/P to 8051 microcontroller. When (EA)= 0, then 8051 microcontroller access from external program memory (ROM) only. When (EA) = 1, then it access internal ... /Output, when external memory is interfaced, PORT 2 pins act as the higher-order address bus. (A8-A15)

Description : Draw the labeled interfacing diagram to interface relay with 89C51 microcontroller.

Last Answer : the labeled interfacing diagram to interface relay with 89C51 microcontroller

Description : Explain the various selection factors of microcontroller suitable for application.

Last Answer : The selection of microcontroller depends upon the type of application. The following factors must be considered while selecting the microcontroller.  1. Word length: The word length of ... and for lesser production EPROM version or CPU version with external program memory is suitable

Description : State and explain the need of the following development tools microcontroller board: (i) Editor (ii) Assembler (iii) Compiler (iv) Linker

Last Answer : 1) Editor: An editor is a program which helps you to construct your assembly language program in right format so that the assembler will translate it correctly to machine language. So, you can type your ... . Some examples of linker are ASEM-51 BL51, Keil u Vision Debugger, LX 51 Enhanced Linker etc

Description : Describe power down mode and ideal mode of 8051 with circuit diagram . which SFR is used to set these modes and draw the same.

Last Answer : IDLE MODE In the Idle mode, the internal clock signal is gated off to the CPU, but not to the Interrupt, Timer and Serial Port functions. The CPU status is preserved in its entirety, the Stack Pointer, ... t change on chip RAM PCON (Power Control Register) SFR is used to set these modes.

Description : State the alternate pin functions of port 3 of 8051.

Last Answer :  the alternate pin functions of port 3 of 8051 :

Description : Draw the format of TCON register of 8051 and describe the function of each bit of it.

Last Answer : TCON: TIMER/COUNTER CONTROL REGISTER.BIT ADDRESSABLE  TF1 TCON. 7 Timer 1 overflows flag. Set by hardware when the Timer/Counter 1 Overflows. Cleared by hardware as processor ... 0 type control bit. Set/cleared by software to Specify falling edge/low level triggered External Interrupt

Description : List SFR in 8051.

Last Answer : ACC and B registers - 8 bit each DPTR : [DPH:DPL] - 16 bit combined PC : Program Counter - 16 bits Stack pointer SP - 8 bit PSW : Program Status Word Port Latches ... , serial control Timer Registers (TCON,TMOD,TL0/1,TH0/1) Power control Interrupt Enable, Interrupt Priority

Description : The 8051 microcontroller is of ___pin package as a ______ processor. a) 30, 1byte b) 20, 1 byte c) 40, 8 bit

Last Answer : c) 40, 8 bit

Description : The 8051 microcontroller is of ___pin package as a ______ processor. a) 30, 1byte b) 20, 1 byte c) 40, 8 bit d) 40, 8 byte

Last Answer : c) 40, 8 bit

Description : Which instruction of 8051 microcontroller is used for reading data from code memory?  A) Mov B) MOVC C) MOVX D) XCH

Last Answer : Mov

Description : Define the term BUS related to microprocessor/controller and list different buses used in microcontroller.

Last Answer : BUS: A Bus is a set of physical connections used for communication between CPU and peripherals. Different buses used in microcontroller are: 1. Address Bus 2. Data Bus 3. Control Bus

Description : Differentiate between (i) Harvard and Von-neuman architecture (ii) Microprocessor and Microcontroller

Last Answer : i) Harvard Architecture and Von-neuman architecture ii) Microprocessor and Microcontroller

Description : Explain Keypad controller.

Last Answer : Keypad Controller: It's a device which interfaces between the computer and keyboard. That is a input device and used for transfer the data to connected device.

Description : Which of the following is a data interfacing format? a.HP/GL b.ACER c.ASUS d.IBM

Last Answer : a.HP/GL

Description : Which of the following is not a data interfacing format? a.STL b.SLC c.LEAF d.RP

Last Answer : d.RP

Description : What is interfacing ?

Last Answer : The connection of peripheral devices with computer i.e. input / output devices is called interfacing. The importance of the interface is immense. Because two devices cannot be combined without interface. And if you can't get together, you can't do anything with them.

Description : Basic concepts in memory interfacing

Last Answer : The primary function of memory interfacing is that the microprocessor should be able to read from and write into a given register of a memory chip. To perform these operations the microprocessor ... Be able to select the chip Identify the register Enable the appropriate buffer

Description : What component in the telephone set has the primary function of interfacing the handset to the local loop? A. Varistor B. Induction coil C. Resistor D. Capacitor

Last Answer : B. Induction coil

Description : What component in the telephone set has the primary function of interfacing the handset to the local loop? A. Varistor B. Induction coil C. Resistor D. Capacitor

Last Answer : B. Induction coil

Description : What is Interfacing?

Last Answer : Ans-The peripheral (simple input/output devices ) connected with computer to perform tasks is known as interfacing.

Description : Interfacing devices for DMA controller, programmable interval timer are respectively…a) 8257, 8253 b) 8253, 8257 c) 8257,8251 d)8251,825721.

Last Answer : a) 8257, 8253

Description : Interfacing LCD with 89C51 _____ data lines are used along with the _____ signals. a) 6, RS, RW b) 5, RW, EN c) 8, RS, EN, RW d) 9, RS, EN, RW

Last Answer : a) 6, RS, RW

Description : Which of the following is characteristic of an MIS? (A) Provides guidance in identifying problems, finding and evaluating alternative solutions, and selecting or comparing alternatives. (B) Draws on ... Has as its goal the efficiency of data movement and processing and interfacing different TPS. 

Last Answer : (B) Draws on diverse yet predictable data resources to aggregate and summarize data.

Description : How do I get to my Samsung lite's dial keypad?

Last Answer : answer:Look on the Samsung website. They do have an 800 number for help with their products. There is one for tablets and another for phones. This was helpful to me when I first got my Galaxy Tablet. Or stop ... they're doing; other times it's a crapshoot but if it's nearby, at least worth a try.

Description : The number keypad on my microwave is failing. Is there possibly a fix, other than replacing the entire control panel?

Last Answer : answer:You have a pretty good jerry-rigged system. If it means setting the timing twice, why not? It’s certainly cheaper than replacing it. These days it seems impossible to get any small or medium-sized appliance repaired. Have you tried calling customer service at the manufacturer’s?

Description : Why do alt codes only work on a numeric keypad?

Last Answer : answer:Dunno why. Always thought it weird I have the use the fn numeric keyboard on my Dell laptop when the normal numbers are handy without any modifier key. - What make/model laptop are you ... handy, especially if you've got them memorized. Else I rely on the Windows Character Map utility.

Description : How do I find the "cent" key on my keypad?

Last Answer : answer:Try option 4. ¢ (Hey, PL. Nice to have you back in town)

Description : Gizmo "0" Key on Keypad broken?

Last Answer : Interesting. I have the same set up you do and my 0 also doesn’t work. Unless I use my keyboard. But my 0 key does work while I’m in a call (it makes a tone), just not dialing for some reason. It must be a bug. I’m sure you can report it on gizmo5.com so they fix it.

Description : Does anyone know the reason the key pad on a telephone is the exact opposite of a calculator keypad?

Last Answer : Ha, when I was an Operator for Hyatt I dealt with that all the damn time. I don’t know why, but I completely understand your frustration.

Description : You are stuck in a room. On the door is a keypad with all the letters of the alphabet and the enter button. The word is 7 letters long. To your left, is a table with a note. The note reads: ... the note upon the table, remove a letter and you will be free. What is the code to escape? -Riddles

Last Answer : The code is science After solving for the first note, you will get sciesnce. If you don't understand why, go to the Periodic Table of the Elements and find these elements there. From the ... with this my self when I was looking at the periodic table. Thank you for reading my Escape Room.

Description : What is a numeric keypad ?

Last Answer : A numeric keypad is a section containing 16 to 18 keys, like a calculator on the right side of the keyboard . Numeric keypads are convenient for statistical and math work. The numeric keypad can be used for ... When the Num Lock key is off, pressing it will move the cursor to the end of the line.

Description : What is the numeric keypad ?

Last Answer : A numeric keypad is a section containing 16 to 18 keys, like a calculator on the right side of the keyboard . Numeric keypads are convenient for statistical and math work. The numeric keypad can be used for ... When the Num Lock key is off, pressing it will move the cursor to the end of the line.

Description : What are keypad phones and are they expensive?

Last Answer : Keypad phones are basically phones in built in keypads like blackberry's. Sometimes keypad phones can be expensive but most of the time they are not.

Description : are the keys on most keypad phones too small for the adult hand to use?

Last Answer : No, they keys on most keypad phones are not too small for the adult hand to use. Most adults have no problem with the size and they are made for adults to use. en.wikipedia.org/wiki/Telephone_keypad

Description : Is it possible to lock the keypad or door to keep little kids safe?

Last Answer : No, this microwave oven does not have a lock option on it. It would be safest to keep this up higher where small hands cannot reach.

Description : _______located between the main keypad and the numeric keypad, are used to move the cursor up, down, left and right: a) Numeric Keypad b) Arrow Keys c) Symbolic Keypad d) None of These

Last Answer : b) Arrow Keys

Description : ________located on the right corner of the keyboard, is a separate set of number keys for quick input of numbers: a) Numeric Keypad b) Arrow Pad c) Symbolic Key Pad d) None of These

Last Answer : a) Numeric Keypad

Description : Where would you find the word QWERTY: a) Numeric Keypad b) Mouse c) Keyboard

Last Answer : c) Keyboard