answersLogoWhite

0

For interfacing to the microprocessor system, usually push buttons keys are used. Whenever a key is pressed, there are small mechanical vibrations that cause noise on the input, which can cause the microprocessor to detect several keypresses instead of just one. Bouncing happens because of the tendency of any two metal contacts in an electronic device to generate multiple signals as the contacts close or open. You can solve this problem using software or hardware debouncing.

The hardware approach is shown in figure 8.1. It uses a cross-coupled latch formed with two Nand gates

Simple Keyboard Interface:

The figure 8.3 shows the simple keyboard interface

Manipal University Page No.: 195

When port pin is logic 1,key is open,otherwise key is closed. The software routine to get key code with key debounce is:

In the technique shown in figure 8.3, each key requires separate interface.This means, to interface one key,one input line is required.This is the disdavantage as it requires many line as many keys. This number of lines required can be reduced if keys are put in matrix form.

The figure 8.4 shows the interface of matrix key board

The 16 keys are arranged in four rows and four columns. The connection will be made such that when a key is pressed, it shotrs the corresponding

one row and one column. Two ports are required, input port for connecting rows and and output port for connecting columns. The lines connected to rows are called returned lines and the lines connected to columns are called scan lines

When all a key is pressed it shorts the corresponding row and column. If the output line of this colummn is low, then it makes the corresponding row line low,other wise the status of row line will be high. The pressed key will be identified by the data sent on the oputput port and the input code received from the input port. Figure 8.6 shows the flow chart for interfacing of 8086

As shown in the figure 8.7, the interfacing is done using 8255 PPI. The 8086 is being used in maximum mode and port A of 8255 is used for columns and port B for rows. By making use of the lookup table stored in the memory, the 8086 microprocessor will determine the code of the depressed key, then it will initiate the action. The figure 8.8 shows the flow chart for keyboard interface............

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Draw the 8086's internal configuration?

internal configuration 8086


Write a program in 8086 assembly language to draw a circle?

You need an 8086 assembly language pencil.


How do you draw a pumpkin with keyboard keys?

...._/_ ../.^,^.\ ..\.\_/. /


How do you draw a chicken picture using keyboard characters?

Okay im gonna draw a epic word █▒▓▓▓▓▓▓▓▒▒▓▓▓▓▓▓▓▒▒▓▓▒▒▓▓▓▓▓▓▓▓▒▒▓▓▒▒██ █▒▓▓▒▒▒▒▒▒▒▓▓▒▒▒▓▓▒▒▓▓▒▒▓▓▒▒▒▒▒▒▒▒▓▓▒▒██ █▒▓▓▓▓▓▒▒▒▒▓▓▓▓▓▓▓▒▒▓▓▒▒▓▓▒▒▒▒▒▒▒▒▓▓▒▒██ █▒▓▓▒▒▒▒▒▒▒▓▓▒▒▒▒▒▒▒▓▓▒▒▓▓▒▒▒▒▒▒▒▒▒▒▒▒██ █▒▓▓▓▓▓▓▓▒▒▓▓▒▒▒▒▒▒▒▓▓▒▒▓▓▓▓▓▓▓▓▒▒▓▓▒▒██


How to determine amp draw in an electrical circuit?

To determine amp draw in an electrical circuit, you can use Ohm's Law, which states that current (amps) equals voltage divided by resistance. Measure the voltage across the circuit and the resistance of the components in the circuit, then divide the voltage by the resistance to calculate the amp draw.


Which inputs device can you use to draw lines and other shapes?

keyboard


How do you draw an airplane using keyboard symbols for text messaging?

+ \____0(+)0___/


What does a draw out circuit breaker mean?

A draw-out circuit breaker is a type of circuit breaker that can be easily removed from its housing for maintenance or replacement without having to shut down the entire system. This feature allows for quick and convenient access to the circuit breaker for servicing purposes.


How do you make a computer keyboard out of cardboard?

Well first of all get yourself cardboard as big as a keyboard. Then just draw in the letters and numbers and arrow keys. Now you have a keyboard made of cardboarD!


Can you draw Peter Griffin using the keyboard?

I can draw Stewie (uses non-ASCII characters): (ಠ ›ಠ)


How can you draw electric circuit in Microsoft Word?

It's very easy to draw an electric circuit in Microsoft Word. You just need to open up the graphics menu from the top, and you'll get access to the drawing tools for circuit drawing.


Draw circuit with five calling points?

i need the answer for the question.