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

Explain importance of different types of distributing frames, Explain impor...

Explain importance of the different types of distributing frames used in exchanges. Here MDF = main distribution frame; MF = main feeder; FP = feeder point; BF = branch f

Boiler troubles, Differences between internal and external treatment in boi...

Differences between internal and external treatment in boiler

Explain about interrupt-processing sequence, Q. Explain about Interrupt-Pro...

Q. Explain about Interrupt-Processing Sequence? The occurrence of an interrupt fires a numbers of events both in processor hardware and software. Figure below displays a sequen

What is critical section problem, What is critical section problem?  Co...

What is critical section problem?  Consider a system having of 'n' processes. Each process has segment of code known as a critical section, in which the process may be changing

Digital electronics, what is Asynchronous Finite State Machines?

what is Asynchronous Finite State Machines?

Trace the pseudo-code, Consider the following pseudo-code segment. 1.  i...

Consider the following pseudo-code segment. 1.  input y {y is a three-digit hexadecimal number} 2.  d ← 0 3. for i = 1 to 3      3.1. char ← i th character from y readin

Computer organization, using one-address instructions,write a program to co...

using one-address instructions,write a program to compute X=A-BxC

What is link destruction, What is link destruction? Link destruction is...

What is link destruction? Link destruction is inverse of link creation. When a link is destroyed makes sure the associated objects accessible by other handles or intentionally

Explain j2ee, With respect to security, which one is the better choice? ...

With respect to security, which one is the better choice? .Net or J2EE? Explain? As per majority programmers .NET is the best one which have single vendor compare to, the

Explain difference between macro call and macro expansion, Explain differen...

Explain difference between macro call and macro expansion. Macro expansion: While a macro name is used along with a set of actual parameters this is replaced through a code g

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