AU677437B2 - Keyboard/microprocessor interface - Google Patents

Keyboard/microprocessor interface Download PDF

Info

Publication number
AU677437B2
AU677437B2 AU77532/94A AU7753294A AU677437B2 AU 677437 B2 AU677437 B2 AU 677437B2 AU 77532/94 A AU77532/94 A AU 77532/94A AU 7753294 A AU7753294 A AU 7753294A AU 677437 B2 AU677437 B2 AU 677437B2
Authority
AU
Australia
Prior art keywords
control line
diode
key
terminals
rows
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
AU77532/94A
Other versions
AU7753294A (en
Inventor
Ian Murray Garth
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nokia Services Ltd
Original Assignee
Alcatel Australia Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alcatel Australia Ltd filed Critical Alcatel Australia Ltd
Priority to AU77532/94A priority Critical patent/AU677437B2/en
Publication of AU7753294A publication Critical patent/AU7753294A/en
Application granted granted Critical
Publication of AU677437B2 publication Critical patent/AU677437B2/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Description

P/00/011 28/5/91 Regulation 3.2
AUSTRALIA
Patents Act 1990
C
ft C Co *o
C
ORIGINAL
COMPLETE SPECIFICATION STANDARD PATENT Invention Title:
SONS
0C
C
of"
C
"KEYBOARD/MICROPROCESSOR INTERFACE" The following statement is a full description of this invention, including the best method of performing it known to us:- I- I 2 This invention relates to keyboards, and in particular, to an arrangement for interfacing the keyboards elements with control lines of a microprocessor or microcontroller for decoding and identifying a particular key operation.
Conventional keyboards comprise a matrix of rows and columns of conductive tracks whose respective intersections are electrically contacted by manual operation of a push-button of an array of operatively associated pushbutton keys.
Conventionally, to identify which push-button has been operated, each of the rows of the matrix is connected to a respective output pin of a microprocessor, and each of the columns of the matrix is connected to a respective input pin of the microprocessor, the distal ends of the columns being respectively/connected to pull-up resistors. The microprocessor is programmed to cause a LOW condition to sequentially appear across the output pins, one pin at a time, sometimes known as "scanning". When an operated key connects a row to a column the corresponding input pin is pulled LOW. This combination
S
of LOW's on particular input and output pins is decoded by the microprocessor ooo to identify the operated key.
The availability of pins on a microprocessor is fixed and typically a large proportion of the available pins is dedicated to scanning an associated keyboard.
As a result there is only a limited number of pins remaining for controlling other associated devices. On the other hand, the pin requirements for a matrix of S rows and columns limits the number of keys that can be decoded by a ego conventional microprocessor.
It is an object of the present invention to provide an arrangement for 0: interfacing keyboard elements with control pins of a microprocessor using fewer pins than known arrangements.
According to the invention, there is provided an arrangement for interfacing a keyboard comprising an array of keys operatively associated with a matrix of rows and columns of conductive elements with control line terminals of a processor means programmed to decode and identify key operation from signal conditions applied to said terminals, intersections of predetermined rows and columns being selectively contacted by manual operation of said keys, 3 wherein one end of each column is coupled to a DC voltage source via respective resistor means and the other end of each column is connected to respective control line terminals rendered into either a high impedance input state or a low output state by said processor means, each row being coupled to said control line terminals via respective serially connected diode means the polarity of which being such that a respective diode means is rendered forward biased by said DC voltage source upon a current path being established between said DC voltage source and a control line terminal connected to a column that is connected to said forward biased diode means by operation of a selected key when that control line terminal is pulled into a low output state by a scanning means included in said processor means, said scanning means periodically and at a predetermined rate pulling each said terminal in turn into the low output state, while all other said terminals are placed into a high impedance input state.
In order that the invention may be readily carried into effect, o• o embodiments thereof will now be described in relation to the accompanying drawings, in which: Figure 1 shows a known arrangement for interfacing a keyboard matrix with control line pins of a microprocessor.
L:0 Figure 2 shows an arrangement for interfacing a keyboard matrix with control line pins of a microprocessor, according to the present invention.
.o Figure 3 shows another arrangement for interfacing a keyboard matrix with control line pins of a microprocessor, according to the present invention.
Referring to Figure 1, the known arrangement comprises a matrix 1 of :5 rows 2 and columns 3 of conductive tracks on a substrate (not shown). At 6*oo* S: each intersection of the rows and columns a push-button key is arranged, all keys forming an array operatively associated with the matrix. Each column is coupled at one end to a positive voltage rail +ve via respective pull-up resistors R1, R2, R3, and R4. The other ends of the rows are respectively connected to give outout pins X1, X2, X3, X4, and X5 of microprocessor 5. One end of each column is connected to respective input pins Y1, Y2, Y3 and Y4 of the microprocessor.
In operation, upon actuation of for example, push-button key 4a, when the microprocessors scanning cycle renders the condition on output pin Xl momentarily LOW input pin Y1 is pulled LOW thereby providing a combination of conditions which can be decoded by the microprocessor in a known manner to identify the key operated.
In this known arrangement, if a total of n input/output pins is available, the maximum number of keys that can be decoded by the microprocessor is: nxn if n is even 4 x if n is odd.
4 9eferring to Figure 2, the arrangement comprises a matrix of five columns 6,7,8,9 and 10, and five rows 11,12,13,14 and 15 of conductive tracks on a substrate (not shown). One end of each of the rows is respectively connected to I/O pins P1, P2, P3, P4 and P5 of microprocessor 16 via respective diodes D1, D2, D"3, D4 and D5. One end of each column is connected to a positive 0 voltage rail +Ve via respective pull-up resistors R17, R18, R19, R20 and R21.
The other end of each column is connected to respactive control line pins P1 P5 which are capable of being configured as either inputs or outputs. An array of twenty keys is operatively associated with intersections of the rows and •o columns. Those intersections having a common control line pin, for example, e oo S the intersection of row 11 and column 6, are not associated with a key.
In operation, a scanning cycle produced in a known manner by the I microprocessor's software causes each of the control lines P1 P5 to be configured, one line at a time at a predetermined rate, as an output and rendering it into a LOW output state, the remaining control lines being rendered into a HIGH impedance input state. Current from positive voltage rail ve "sinks" into each control line as it is configured as an output by the scanning cycle; this current flows via a pull-up resistor and the column connected to the control line configured as an output.
Upon operation of key 22, current flows from ve, R20, column 9, the I I lar junction of pin P4 and diode D4, the anode of diode D4, which is forward biased, the contacted intersection of column 7 and row 14, contacted by the operation of key 22, the junction of P2 and the anode of diode D2. The current "sinks" into the low output configuration at control line pin P2 when that control line is configured as an output by the scanning cycle. A voltage, typically 0.7V, produced at the anode of forward biased diode D4 is extended to control line pin P4 pulling that control line LOW. The resulting LOW states of control lines P2 and P4 is decoded by the microprocessors software in a known manner to identify the operation of key 22. Operation of other keys are decoded and identified in a similar way and will not be described, Using the arrangement of the present invention, if n is the number of control line pins available, then the maximum number of keys that can be decoded and identified is n x (n 1) Referring to Figure 3, rows 11 to 15 are coupled to an interrupt pin INT of the microprocessor, programmed to remaiii in an idle mode until interrupted, S via respective diodes D6, D7, D8, D9 and D10, The interrupt pin is held HIGH by a voltage coupled thereto via pull-up resister R22 until any pin is operated whereupon the interrupt key is pulled LOW causing the microprocessor to scan the control lines for a predetermined number of cycles. This embodiment has the advantage that the microprocessor does not scan the control lines continuously and thereby reduces power consumption and microprocessor workload.
While the pt-esent invention has been described with regard to many particulars it is understood that equivalents may be readily substituted without departing from the scope of the invention, *o S

Claims (2)

1. An arrangement for interfacing a keybo, .)mprising an array of keys operatively associated with a matrix of rows and columns of conductive elements with control line terminals of a processor means programmed to decode and identify key operation from signal conditions applied to said terminals, intersections of predetermined rows and columns being selectively contacted by manual operation of said keys, wherein one end of each column is coupled to a DC voltage source via respective resistor means and the other end of each column is connected wi respective control line terminalswhich may be rendered into either a high impedance input state or a low output state by said processor means, each row being coupled to said control line terminals via respective serially connected first diode means the polarity of which being such that a respective first diode is rendered forward biassed by said DC voltage source upon a current path being established between said DC voltage sour'ce and a control line terminal connected to a column that is connected to said forward biassed first diode means by operation of a selected key when that control line terminal is pulled into a low output state by a scanning means '6 included in said processor means, said scanning means periodically and at a predetermined rate pulling each said terminal in turn into the low output state, while all other said terminals are placed into a high impedance input state, and wherein said processor means includes an interrupt routine whose control line terminal is coupled to respectiver said rows via respective second diode means 0 such that said scanning means is initiated upon the operation of any said key. 0"
2. An arrangement substantially as herein described with reference to Figure 25 3 of the accompanying drawings. DATED THIS SIXTH DAY OF FEBRUARY 1997 ALCATEL AUSTRALIA LIMITED ABSTRACT An arrangement for interfacing a keyboard comprising an array of keys operatively associated with a matrix of rows (11-15) and c lumns (6-10) of conductive elements with control line terminals (P1 P5) of a microprocessor (16) programmed to decode key operations from signal conditions applied to the control line terminals. Each row is connected to a respective control line terminal via a diode (D1 D5) and each column is connected to a respective control line terminal. Pull-up resister (R17 R21) couple a voltage source to the columns. Upon operation of a key (22) a current path is formed via an associated diode (D4) to a control line terminal (P2) rendered LOW by a scanning cycle routine of the microprocessor. The forward bias current of the diode causes another control line terminal (P4) to be pulled LOW. The microprocesso' decodes the state of the two changed control line terminals and identifies the operated key in a known manner. :The arrangement permits a reduction in the number of control lines required for a given number of keys. Figure 2. too* 64 *.SS S I
AU77532/94A 1993-11-11 1994-10-31 Keyboard/microprocessor interface Ceased AU677437B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
AU77532/94A AU677437B2 (en) 1993-11-11 1994-10-31 Keyboard/microprocessor interface

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
AUPM2301 1993-11-11
AUPM230193 1993-11-11
AU77532/94A AU677437B2 (en) 1993-11-11 1994-10-31 Keyboard/microprocessor interface

Publications (2)

Publication Number Publication Date
AU7753294A AU7753294A (en) 1995-05-18
AU677437B2 true AU677437B2 (en) 1997-04-24

Family

ID=25638673

Family Applications (1)

Application Number Title Priority Date Filing Date
AU77532/94A Ceased AU677437B2 (en) 1993-11-11 1994-10-31 Keyboard/microprocessor interface

Country Status (1)

Country Link
AU (1) AU677437B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0188151A1 (en) * 1984-12-20 1986-07-23 Automobiles Peugeot Keyboard device
US4667181A (en) * 1983-07-15 1987-05-19 Honeywell Inc. Keyboard data input assembly
GB2216312A (en) * 1988-04-04 1989-10-04 Fluke Mfg Co John Keyboard scanner apparatus and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4667181A (en) * 1983-07-15 1987-05-19 Honeywell Inc. Keyboard data input assembly
EP0188151A1 (en) * 1984-12-20 1986-07-23 Automobiles Peugeot Keyboard device
GB2216312A (en) * 1988-04-04 1989-10-04 Fluke Mfg Co John Keyboard scanner apparatus and method

Also Published As

Publication number Publication date
AU7753294A (en) 1995-05-18

Similar Documents

Publication Publication Date Title
EP2012431B1 (en) Circuit and method for a switch matrix and switch sensing
KR960704264A (en) PROGRAMMABLE LOGIC DEVICE WITH REGIONAL AND UNIVERSAL SIGNAL ROUTING
US7057590B2 (en) LED array implementation
GB2283846A (en) Arrangement for interfacing a keyboard with a microprocessor
AU677437B2 (en) Keyboard/microprocessor interface
US8462121B1 (en) Circuit for reading buttons and controlling light emitting diodes
US5831556A (en) Pin-reduced low power keyboard scanner
US7167107B2 (en) Keypad array having reduced number of input/outputs and method for generating same
EP0644522A1 (en) Data selection circuit
JPS63111520A (en) Key input circuit
EP0926010B1 (en) Vehicle-equipment control apparatus
KR950014977B1 (en) Control device for operating panel
JPH027623A (en) Keyboard
JPH0635591A (en) Key input circuit
KR0129374Y1 (en) Led driving circuit in a keyphone
JPH0944277A (en) Microcomputer
JPH0119175Y2 (en)
KR910006356B1 (en) Led driving circuits
KR20030053381A (en) Keyboard system for micro computer
JP2594680B2 (en) Key matrix
CA1333924C (en) Keyboard
JP2503299Y2 (en) Power board start control circuit
KR960003397B1 (en) Display tube control system
KR910004021Y1 (en) Power circuit
KR0145874B1 (en) Key number expanding circuit for control panel

Legal Events

Date Code Title Description
MK14 Patent ceased section 143(a) (annual fees not paid) or expired