Keypads operation, Computer Engineering

Assignment Help:

The 16 keys (4x4 matrixes) keypads diagram is shown in figure 4 above. Let see how the keypad is connected. Each square of the alphanumeric has to be pushed to make a switch or connection, which connects the horizontal wires (Rows) with the vertical wires (Columns). For example, if button ‘A' is pressed, it will connect COL1 with ROW4, or pressing button '5' will connect COL2 with ROW2.

The keypads are usually organized in a matrix of rows and columns. The microcontroller will access both the rows and columns through the ports. If a key pressed, a row and column make a contact; otherwise there will be no connection between rows and columns.

Since the switches or keys are all interconnected, I need differentiate between the each one of them. I have connected four 10K Ohms resistors each on the interface board to pull lines (COL1- COL 4) high (set as input) and connected them PORTA (RA1-RA4) on the microcontroller. These four lines are been read in the program. So if no key is pressed, these lines will all read high. The other four pins (ROW-ROW4) are connected to pins on PORTB (RB0-RB3) the PIC18F452 and set as output. The full schematic diagram for this section could be found in the appendix.

To interface the keypad, two main processes listed below must occur:

I. Key press detection
II. Key identification
Moreover, there are two ways of performing key press detection:

1) The interrupt method (Port B - Change interrupt can be used)
2) Scanning method


Related Discussions:- Keypads operation

How is recursion handled internally, How is recursion handled internally? ...

How is recursion handled internally? Internally, every recursive call to a function requires storing the intermediate values of the parameters and local variables in a run time

What are the concerns for growth of e-commerce in india, What are the conce...

What are the concerns for growth of e-commerce in India?  Government as Facilitator for the growth of e-commerce has taken certain steps: Promotion of competitive teleco

Explain high level data link control, Explain High Level Data Link Control....

Explain High Level Data Link Control. HDLC - it is High Level Data Link Control: Protocol Overall explanation: Layer 2 of the OSI model is the data link layer. One of the

Explain how does cpu perform read and write operation, Q. Explain how does...

Q. Explain how does CPU perform Read and Write operation on peripheral device taking suitable example in case of Synchronous Technique.

Abap/4 dictionary structures without an underlying database, It is not poss...

It is not possible to use ABAP/4 Dictionary Structures without an underlying database using LDB. True.  You can use additionally related tables, along with the tables explaine

Pipelined processor, Pipelined Processor Having discussed pipelining; n...

Pipelined Processor Having discussed pipelining; now we can describe a pipeline processor. A pipeline processor can be distinct as a processor that consists of a series of proc

What is the concept of lock, Q. What is the Concept of Lock? Locks are ...

Q. What is the Concept of Lock? Locks are used for protected access of data in a shared variable system.  There are numerous kinds of locks:  1)  Binary Locks: These locks a

Explain importance of modems used in data transfer, Explain importance of ...

Explain importance of modems used in data transfer and list some of the V-series recommendations. The series also describes a variety of DCEs using different type modulatio

What is an advantage of executing a process in background, What is an advan...

What is an advantage of executing a process in background? The most common reason to put a process in the background is to permit you to do something else interactively without

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd