KR940003618B1 - Key-input method and circuit therefor - Google Patents

Key-input method and circuit therefor Download PDF

Info

Publication number
KR940003618B1
KR940003618B1 KR1019910016683A KR910016683A KR940003618B1 KR 940003618 B1 KR940003618 B1 KR 940003618B1 KR 1019910016683 A KR1019910016683 A KR 1019910016683A KR 910016683 A KR910016683 A KR 910016683A KR 940003618 B1 KR940003618 B1 KR 940003618B1
Authority
KR
South Korea
Prior art keywords
key input
key
unit
dir
input
Prior art date
Application number
KR1019910016683A
Other languages
Korean (ko)
Other versions
KR930007093A (en
Inventor
김흥명
Original Assignee
삼성전자 주식회사
정용문
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 삼성전자 주식회사, 정용문 filed Critical 삼성전자 주식회사
Priority to KR1019910016683A priority Critical patent/KR940003618B1/en
Publication of KR930007093A publication Critical patent/KR930007093A/en
Application granted granted Critical
Publication of KR940003618B1 publication Critical patent/KR940003618B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K19/00Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Human Computer Interaction (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)
  • Push-Button Switches (AREA)

Abstract

The method and circuit includes a key input, a key input confirming portion for receiving the input signal of the key input, confirming the key input, and ignoring the key input after a predetermined time, an LED display for displaying the key input state of the key input, and a transmitting portion for transmitting the confirmation result of the key input confirming portion, thereby simultaneously performing LED display and key input.

Description

키입력 및 표시 동시 실행방법 및 회로Key input and display simultaneous execution method and circuit

제1, 2도는 종래의 키입력 구체 회로도.1 and 2 are conventional key input concrete circuit diagrams.

제3, 4도는 종래의 LED 표시 구체 회로도.3 and 4 are conventional LED display specific circuit diagrams.

제5도는 본 발명에 따른 블럭도.5 is a block diagram according to the present invention.

제6도는 제5도의 구체 회로도.6 is a detailed circuit diagram of FIG.

제7도는 본 발명의 실시예시도.7 is an exemplary embodiment of the present invention.

제8도는 본 발명에 따른 흐름도.8 is a flow chart according to the present invention.

제9도는 본 발명에 따른 타이밍도.9 is a timing diagram according to the present invention.

본 발명은 마이콤을 구비한 시스템의 키입력과 키입력에 따른 방법 및 회로에 관한 것으로, 특히 LED 표시 및 키입력을 서로의 동작에 영향을 주지않으면서 동일한 포트에서 실행하기 위한 키입력 및 표시 동시 실행방법 및 회로에 관한 것이다.The present invention relates to a key input and a method and a circuit according to the key input of a system equipped with a microcomputer, in particular, the key input and display simultaneously for executing the LED display and key input on the same port without affecting the operation of each other It relates to an execution method and a circuit.

일반적으로 마이콤은 구비한 키입력 및 키입력에 따른 표시를 위해 제1도-제4도와 같이 별도의 구성에 의해 이루어졌다.In general, the microcomputer has been configured by a separate configuration as shown in FIGS. 1 to 4 to display the key input and the key input.

제1도의 동작 관계는 키의 입력을 위해 CPU의 리드 제어단(RD)이 “로우”로 떨어질 때 스케닝되고, 키가 눌려 있는 동안 “로우”상태가 되며, 그렇지 않으면 “하이”상태를 유지하고, CPU가 데이타를 리드하지 않는 상태에서는 버스 쇼트가 나지않도록 다이오드(D1-D8)에 의해 보호하도록 되어 있다.The operating relationship of FIG. 1 is screened when the read control stage RD of the CPU falls to "low" for key input, and becomes "low" while the key is pressed, otherwise it remains "high" In the state where the CPU does not read data, the diodes D1-D8 are protected to prevent a short circuit.

제2도의 키입력은 CPU에서 출력 제어단(OC)를 “로우”로 한 상태에서, 스위치(SW1, 3, 5, 7, 9, 11, 13, SW15)의 키를 읽을 때는 선택단(SEL1)을 “로우”로 하고, 스위치(SW2, 4, 6, 8, 10, 12, 14, SW16)의 키를 읽을 때는 선택단(SEL2)를 “로우”로 한다. 이때 키가 눌려 있는 부분의 버스는 “로우”로 되고 눌려지지 않은 부분은 “하이”로 유지된다. 그리고 CPU에서 키를 억세스하지 않을 때는 출력제어단(OC)를 “하이”로 둔다.In the key input of FIG. 2, when the key of the switch SW1, 3, 5, 7, 9, 11, 13, SW15 is read while the output control stage OC is set to "low" in the CPU, the selection stage SEL1 ) Is set to "low", and the selection terminal SEL2 is set to "low" when reading the keys of the switches (SW2, 4, 6, 8, 10, 12, 14, SW16). At this time, the bus of the part where the key is pressed becomes “low” and the part that is not pressed remains “high”. When the CPU does not access the keys, the output control stage (OC) is set to "high".

키입력에 따른 표시 예로 제3도를 참조하여 설명하면 발광다이오드(LED)를 모두 9개로 구성하여 방법1(R.G), 방법2(R.G), 방법(R.G), 방법4(R.G), 외출(R)를 표시하고, 방법 1, 2, 3, 4의 LED는 듀얼 타임 발광다이오드(LED1-LED4)를 사용하여 방법 감시 모드에서는 녹색 발광다이오드(LED)가 ON되고, 이때 방법 상태가 발생되면 적 발광다이오드(LED)를 점멸한다. 외출 표시 발광다이오드(LED)는 외출 키를 누르면 적색 발광다이오드(LED)가 온 되도록 되어 있다.Referring to FIG. 3 as an example of the display according to the key input, the light emitting diodes (LEDs) are composed of nine methods. R) is displayed, and the LEDs of methods 1, 2, 3, and 4 use the dual time light emitting diodes (LED1-LED4) to turn on the green light emitting diodes (LED) in the method monitoring mode, LED blinks. The go-out display light emitting diode LED is configured to turn on the red light-emitting diode LED when the go-out key is pressed.

LED 표시 기술의 또 다른 실시예로 제4도의 예로 보면, CPU의 출력에 따라 래치(U1)을 통해 출력(Q0-Q7)의 상태에 따라 LED의 표시되는 예는 아래 테이블 표 1과 같다.As another example of the LED display technology as shown in FIG. 4, an example of displaying the LEDs according to the state of the outputs Q0-Q7 through the latch U1 according to the output of the CPU is shown in Table 1 below.

[표 1]TABLE 1

상기한 바와 같이 종래는 한개의 CPU 포트로 LED 표시부와 키입력을 동시에 할 수 없으며, LED 표시부와 키입력에 대하여 별도의 CPU포트를 사용함에 따라 LED 표시부와 키입력의 소요 수량에 대한 적절한 CPU 포트 설정 및 할당이 용이하지 못했으며, 키를 누르고 있는 동안 LED가 점등되는 상태가 발생하여 독립적인 LED 표시부의 키입력을 할 수 없는 문제점이 있었다.As described above, the conventional LED display and key input cannot be simultaneously performed with one CPU port, and an appropriate CPU port for the required quantity of LED display and key input is provided by using a separate CPU port for the LED display and key input. It was not easy to set and assign, and there was a problem in that the LED was turned on while the key was pressed, so that the independent LED display could not be keyed.

따라서 본 발명의 목적은 LED 표시와 키입력을 서로의 동작에 영향을 주지 않으면서 동일한 포트에서 수행하여 포트 설계 및 동작을 최적화할 수 있는 회로 및 방법을 제공함에 있다.Accordingly, an object of the present invention is to provide a circuit and a method for optimizing port design and operation by performing LED display and key input on the same port without affecting each other's operation.

이하 본 발명에 첨부된 도면을 참조하여 상세히 설명한다.Hereinafter, with reference to the accompanying drawings of the present invention will be described in detail.

제5도는 본 발명에 따른 블럭도로서, 키가 입력되는 키입력부(51)와, 제어단(DIR)의 신호에 따라 상기 키입력부(51)의 입력 신호를 받아들이어 키입력을 확인하되 일정시간 이상이 되면 무시하는 키입력 확인부(52)와, 상기 키입력부(51)의 키입력 상태를 표시하는 LED 표시부(53)와, 제어단(G. DIR)의 신호에 따라 상기 키입력 확인부(52)의 확인 결과를 전송하는 전송부(54)로 구성된다.5 is a block diagram according to an embodiment of the present invention, in which a key input is input by a key input unit 51 to which a key is input and a signal of the control terminal DIR, and the key input unit 51 is received to confirm key input, but for a predetermined time. If it is abnormal, the key input confirmation unit 52 to be ignored, the LED display unit 53 for displaying the key input state of the key input unit 51, and the key input confirmation unit according to the signal of the control terminal G. DIR. And a transmission unit 54 for transmitting the confirmation result of 52.

제6도는 제5도의 구체 회로도로서, 키입력부(51)는 스위치(SW)로부터 풀업저항(R1)이 연결되어 있다. 키입력 확인부(52)는 제어단(DIR)를 출력 인에이블단(OE)에 연결되고 3스테이트 버퍼(U14)의 입력단에 상기 키입력부(51)의 출력단이 연결된다.6 is a detailed circuit diagram of FIG. 5, in which the key input unit 51 is connected to a pull-up resistor R1 from the switch SW. The key input checking unit 52 is connected to the control terminal DIR to the output enable end OE and the output terminal of the key input unit 51 is connected to the input terminal of the three-state buffer U14.

LED 표시부(53)는 상기 키입력 확인부(52)의 출력단에 발광다이오드(LED)의 케소드가 연결되고 상기 발광다이오드(LED)의 에노드에 저항(R2)을 연결하여 전원단(Vcc)으로부터 구동 전원이 공급된다.LED display unit 53 is connected to the cathode of the light emitting diode (LED) to the output terminal of the key input confirmation unit 52, and connected to the resistor (R2) of the anode of the light emitting diode (LED) power supply terminal (Vcc) Drive power is supplied.

상기 키입력 확인부(52)의 출력단에 트랜시버(U2)를 연결하고 제어단(Q), (DIR)의 출력에 따라 상기 트랜시버(U2)를 제어하여 상기 키입력 데이타를 CPU를 전송토록 구성된다.A transceiver U2 is connected to an output terminal of the key input confirmation unit 52 and the transceiver U2 is controlled according to the output of the control terminals Q and DIR to transmit the CPU data to the key input data. .

제7도는 제6도를 이용한 실시예시도로서, 제6도를 사용하여 포트수만큼 연결시켜 키입력 표시부를 구성한다.FIG. 7 is a diagram showing an embodiment using FIG. 6, which uses the FIG. 6 to connect as many ports as the key input display.

제8도는 본 발명에 따른 흐름도로서, 표준 DIR 주파수를 선정하는 제1과정과, 상기 제1과정이 주파수 선정후 DIR 듀티 사이클을 선정하는 제2과정과, 상기 제1, 2과정이 DIR 신호로부터 키 또는 LED 인에이블인가를 체킹하는 제3과정과, 상기 제3과정에서 LED 인에이블 신호에 따라 점등 및 소등하는 제3과정과, 상기 제3과정에서 키인에이블일 때 키입력인가를 체킹하는 제4과정과, 상기 제4과정에 키입력이 아니면 상기 제3과정을 다시 실행하고 키입력이 있으면 표준 DIR “로우”시간의 리세트 동안 DIR을 로우로 세팅하는 제5과정으로 이루어진다.8 is a flowchart according to the present invention, a first process of selecting a standard DIR frequency, a second process of selecting a DIR duty cycle after the first process is selected, and the first and second processes are performed from the DIR signal. A third process of checking whether a key or LED is enabled, a third process of turning on and off according to the LED enable signal in the third process, and a check of key input application when the key is enabled in the third process If the fourth process is not a key input, the fourth process is executed again, and if there is a key input, the fifth process of setting the DIR to low during the reset of the standard DIR “low” time.

따라서 본 발명의 구체적 일실시예를 제5도-제8도를 참조하여 상세히 설명하면, 먼저 키입력 상태의 동작 상태를 살펴보면 키입력은 DIR 제어단 신호가 “로우”, 선택 제어단(G) 신호가 “하이”인 상태에서 이루어지며, 이때 전송부(55) 3-스테이트버퍼(U9)의 조건부는 다음과 같다.Therefore, a specific embodiment of the present invention will be described in detail with reference to FIGS. 5 to 8. First, the operation state of the key input state will be described. The signal is made in a "high" state, wherein the conditional part of the transmission unit 55 three-state buffer (U9) is as follows.

[표 2]TABLE 2

키를 입력시는 제6도의 구체회로도에서 상기 조건표의 2에 해당되므로 A의 데이타를 B로 전송할 수 있다. 키가 온되면 VA가 “로우”로 되므로 3-스테이트 버퍼(UIA)를 거친 VB는 다음의 조건을 갖는다.When a key is input, the data of A can be transferred to B since it corresponds to 2 in the condition table in the detailed circuit diagram of FIG. When the key is on, V A goes “low”, so V B through the 3-state buffer (UIA) has the following conditions.

[표 3]TABLE 3

이때의 타이밍도는 제9도와 같다.The timing diagram at this time is the same as FIG.

제9도는 제6도에 대한 회로중점의 우축회로는 무시한 상태의 파형도이며,점 우측에 대한 파형은 제9도의 (a)의 LED 인에이블부의 데이타 및 키 값에 준한다.FIG. 9 shows the circuit for FIG. The right-axis circuit of the point is the waveform diagram of the state ignored. The waveform on the right side of the point is in accordance with the data and key values of the LED enable portion in Fig. 9A.

키는 제9도의 (a)의 키인에이블부에서만 키를 억세스할 수 있다. 제6도에서 스위치(SW)가 온되어 VA시간에서 “로우”로 되고 그리고 ⓓ시간에서 “하이”로 된다.The key can only access the key from the key enable portion in FIG. In FIG. 6, the switch SW is turned on so that V A It goes “low” in time and goes “high” in ⓓ time.

그러나 스위치(SW)를 장시간 온하고 있으면 LED가 점등이 되있는 것처럼 보이므로 키와 LED를 독립적으로 사용할 수가 없게 된다. 따라서 키가 온된 상태로 부터 CPU가 데이타(VB)를 억세스한 순간 즉시 3-스테이트 버퍼(U1)을 고임피던스 상태로 출력을 시키면 된다. 일반적으로 인간이 스위치를 가장 빨리 누를 경우의 지속시간은 60msec이며 CPU는 40msec(최소)만 되면 키를 억세스하므로 시간-ⓒ는 40msec이상이 되지 않으며 이는 눈으로 보이지 않게 된다.However, if the switch (SW) is on for a long time, the LED seems to be turned on, so the key and the LED cannot be used independently. Therefore, as soon as the CPU accesses the data V B from the key ON state, the 3-state buffer U1 is output in the high impedance state immediately. Typically, the fastest time a human presses the switch is 60msec, and the CPU only needs 40msec (minimum) to access the key. -Ⓒ is not more than 40msec, which is invisible to the eye.

한편 LED 표시를 하는 경우는 표 2의 1에 해당하므로 데이타 B가 “하이”일 때 LED 소등, 데이타 B가 “로우”일 때 LED 점등이 된다.On the other hand, the LED display corresponds to 1 in Table 2, so the LED is turned off when the data B is "high" and the LED is turned on when the data B is "low".

상술한 바와 같이 한개의 CPU 포트로 LED 표시와 키입력을 동시에 할 수 있고 LED 표시의 키입력에 대하여 공통의 CPU 포트를 사용함에 따라 LED 표시와 키입력의 소요수량에 대한 적절한 CPU 포트 설정 및 할당이 가능하며 키를 누르고 있는 동안 LED가 점등되는 상태가 발생하지 않으며 독립적인 LED 표시와 키입력을 할 수 있는 이점이 있다.As described above, the LED display and key input can be performed simultaneously with one CPU port, and the common CPU port is used for the key input of the LED display, and the appropriate CPU port setting and allocation for the required amount of the LED display and key input can be performed. This is possible, and the LED does not light up while the key is pressed and has the advantage of independent LED display and key input.

Claims (4)

CPU를 구비한 키입력 회로에 있어서, 키가 입력되는 키입력부(51)와, 제어단(DIR)의 신호에 따라 상기 키입력부(51)의 입력 신호를 받아들이어 키입력을 확인하되 일정시간 이상이 되면 무시하는 키입력 확인부(52)와, 상기 키입력부(51)의 키입력 상태를 표시하는 LED 표시부(53)와, 제어단(G. DIR)의 신호에 따라 상기 키입력 확인부(52)의 확인 결과를 전송하는 전송부(54)로 구성됨을 특징으로 하는 키입력 및 표시 동시실행회로.In a key input circuit having a CPU, the key input unit 51 to which a key is input and the input signal of the key input unit 51 are received in accordance with a signal from the control terminal DIR to confirm key input, but for a predetermined time or more. In this case, the key input confirmation unit 52 to be ignored, the LED display unit 53 indicating the key input state of the key input unit 51, and the key input confirmation unit (according to the signal of the control terminal G. DIR) 52. The key input and display simultaneous execution circuit, characterized in that it comprises a transmission unit (54) for transmitting the result of confirmation of (52). 제1항에 있어서, 키입력부(51)가 스위치(SW)에 풀업저항(R1)을 접속함을 특징으로 하는 키입력 및 표시 동시실행회로.2. The key input and display simultaneous execution circuit according to claim 1, wherein the key input section (51) connects a pull-up resistor (R1) to the switch (SW). 제1항에 있어서, 키입력 확인부(52)가 3-스테이트(U14)의 출력 인에이블단(OE)의 상태에 따라 키입력부(51)의 입력을 출력토록 구성됨을 특징으로 하는 키입력 및 표시 동시실행회로.The key input and key input unit of claim 1, wherein the key input confirming unit 52 is configured to output the input of the key input unit 51 according to the state of the output enable end OE of the 3-state U14. Display simultaneous execution circuit. 키입력 방법에 있어서, 표준 DIR 주파수를 선정하는 제1과정과, 상기 제1과정이 주파수 선정후 DIR 듀티 사이클을 선정하는 제2과정과, 상기 제1, 2과정의 DIR 신호로부터 키 또는 LED 인에이블인가를 체킹하는 제3과정과, 상기 제3과정에서 LED 인에이블 상태에 따라 점등 및 소등하는 제3과정과, 상기 제3과정에서 키인에이블일 때 키입력인가를 체킹하는 제4과정과, 상기 제4과정에 키입력이 아니면 상기 제3과정을 다시 실행하고 키입력이 있으면 표준 DIR “로우”시간의 리세트 동안 DIR을 로우로 세팅하는 제5과정으로 이루어짐을 특징으로 하는 키입력 및 표시 동시실행방법.In a key input method, a first process of selecting a standard DIR frequency, a second process of selecting a DIR duty cycle after frequency selection, and a key or LED from the DIR signals of the first and second processes A third process of checking whether the enable is applied; a third process of turning on and off according to the LED enable state in the third process; and a fourth process of checking key input when the key is enabled in the third process; If the fourth process is not a key input, the third process is executed again, and if there is a key input, a fifth process of setting the DIR to low during the reset of the standard DIR “low” time is performed. Concurrency method.
KR1019910016683A 1991-09-25 1991-09-25 Key-input method and circuit therefor KR940003618B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019910016683A KR940003618B1 (en) 1991-09-25 1991-09-25 Key-input method and circuit therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019910016683A KR940003618B1 (en) 1991-09-25 1991-09-25 Key-input method and circuit therefor

Publications (2)

Publication Number Publication Date
KR930007093A KR930007093A (en) 1993-04-22
KR940003618B1 true KR940003618B1 (en) 1994-04-25

Family

ID=19320309

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019910016683A KR940003618B1 (en) 1991-09-25 1991-09-25 Key-input method and circuit therefor

Country Status (1)

Country Link
KR (1) KR940003618B1 (en)

Also Published As

Publication number Publication date
KR930007093A (en) 1993-04-22

Similar Documents

Publication Publication Date Title
US7533209B2 (en) Universal serial bus circuit which detects connection status to a USB host
AU581712B2 (en) A circuit arrangement for use in the self testing of an integrated circuit
US20110296257A1 (en) Post card
KR940003618B1 (en) Key-input method and circuit therefor
WO2001059559A1 (en) Apparatus for electrically controlling devices, and a method of operating it
AU1217101A (en) Bridge interface circuit
CN111104361B (en) Serial port number query method and device, computer equipment and storage medium
US20040003155A1 (en) Method and system of indicating current operating speeds of expansion slots of a computer system
EP0355078A3 (en) Hand-held tester for the input/output ports of a data processor
US20020143487A1 (en) Measurement control apparatus
US4196360A (en) Interface driver circuit
KR100482815B1 (en) A system and method for operating lcd module
JPH0562784B2 (en)
CN201886461U (en) Testing card capable of testing main boards in different sizes
KR940002470B1 (en) Mode display circuit on the computer keyboard
JPS61103333A (en) Line speed display system
JPH08163038A (en) Wireless input device
CN112911768A (en) Laser lamp ILDA signal processing system and processing method thereof
KR100253507B1 (en) Intervention apparatus for joint of data joint busline
KR940003555Y1 (en) Interface selector for data communication
KR100298350B1 (en) Automatic wan cable type detection circuit
SU851389A2 (en) Interfacing device
KR0175057B1 (en) Interface for a detachable display apparatus
KR920002900Y1 (en) Circuit registered calling hall of elevator
JPH02241170A (en) Communication switching device

Legal Events

Date Code Title Description
A201 Request for examination
G160 Decision to publish patent application
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20080306

Year of fee payment: 15

LAPS Lapse due to unpaid annual fee