[go: up one dir, main page]

KR920002594B1 - Touch position detection circuit and method of touch screen - Google Patents

Touch position detection circuit and method of touch screen Download PDF

Info

Publication number
KR920002594B1
KR920002594B1 KR1019890007665A KR890007665A KR920002594B1 KR 920002594 B1 KR920002594 B1 KR 920002594B1 KR 1019890007665 A KR1019890007665 A KR 1019890007665A KR 890007665 A KR890007665 A KR 890007665A KR 920002594 B1 KR920002594 B1 KR 920002594B1
Authority
KR
South Korea
Prior art keywords
touch
touch position
touch screen
memory map
routine
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.)
Expired
Application number
KR1019890007665A
Other languages
Korean (ko)
Other versions
KR910001519A (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 KR1019890007665A priority Critical patent/KR920002594B1/en
Publication of KR910001519A publication Critical patent/KR910001519A/en
Application granted granted Critical
Publication of KR920002594B1 publication Critical patent/KR920002594B1/en
Expired legal-status Critical Current

Links

Images

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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/04166Details of scanning methods, e.g. sampling time, grouping of sub areas or time sharing with display driving
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0412Digitisers structurally integrated in a display
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/047Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using sets of wires, e.g. crossed wires

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Input By Displaying (AREA)

Abstract

내용 없음.No content.

Description

터치 스크린의 터치위치 검출회로 및 방법Touch position detection circuit and method of touch screen

제1도는 본 발명의 터치위치 검출 회로도.1 is a touch position detection circuit diagram of the present invention.

제2a - i도는 본 발명의 터치위치 검출방법의 일 실시예를 보인 신호흐름도.2a-i is a signal flow diagram showing an embodiment of the touch position detection method of the present invention.

제3도는 본 발명의 터치위치 검출방법에 의한 터치위치값의 메모리 맵을 보인 설명도.3 is an explanatory diagram showing a memory map of touch position values according to the touch position detection method of the present invention.

제4a, b도는 본 발명의 터치위치 검출방법의 다른 실시예를 보인 신호 흐름도.4a and b are signal flow diagrams showing another embodiment of the touch position detection method of the present invention.

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

1 : 마이콤 2 : X축 검출전압 공급부1: Micom 2: X-axis detection voltage supply

3 : Y축 검출전압 공급부 4 : 터치 스크린3: Y-axis detection voltage supply unit 4: Touch screen

5 : 파형 정형부 6-9 : 제1-제4검출전압 증폭부5: waveform shaping section 6-9: first to fourth detection voltage amplifier sections

10 : 아날로그/디지탈 변환기 11 : 제어신호 출력부10: analog / digital converter 11: control signal output unit

12 : 플립플롭12: flip flop

본 발명은 컴퓨터를 이용하는 시스템에 있어서, 데이타 입력용으로 사용하는 터치 스크린의 터치위치를 검출하는 터치 스크린의 터치위치 검출회로 및 방법에 관한 것이다.The present invention relates to a touch position detection circuit and a method of a touch screen for detecting a touch position of a touch screen used for data input in a system using a computer.

최근에 컴퓨터 기술의 발달과 더불어 키보드를 대신하여 데이타를 간단히 입력시킬 수 있도록 하는 터치 스크린이 개발된 바 있다. 이와 같은 터치 스크린은 사용자가 손가락 또는 볼펜의 팁 등을 접촉시키면, 그 접촉시킨 위치에 따라 X축 및 Y축의 저항값이 가변되도록 되어 있다.Recently, with the development of computer technology, a touch screen has been developed to easily input data in place of a keyboard. In such a touch screen, when a user touches a finger or a tip of a ballpoint pen, the resistance values of the X-axis and the Y-axis are varied according to the contact position thereof.

본 발명은 상기와 같은 터치 스크린을 이용하여 간단히 데이타를 입력시킬 수 있도록 터치 스크린의 터치위치를 검출하는 터치위치 검출회로 및 방법을 창안한 것으로 이를 첨부된 도면을 참조하여 상세히 설명하면 다음과 같다.The present invention has been made a touch position detection circuit and a method for detecting a touch position of the touch screen so that data can be simply input using the touch screen as described above in detail with reference to the accompanying drawings.

제1도는 본 발명의 터치위치 검출회로도로서 이에 도시된 바와 같이, 터치위치 검출의 전체 동작을 제어하는 마이콤(1)과 상기 마이콤(1)이 X축 및 Y축 제어단자(XH,XL)(YH, YL)로 출력하는 제어신호에 따라 터치 스크린(4)에 X축 및 Y축 검출용 전압을 각기 공급하는 인버터(I1)(I2), 저항(R1-R5)(R6-R10), 트랜지스터(TR1, TR2)(TR3,TR4) 및 가변저항(VR1)(VR2)으로 된 X축 및 Y축 검출전압 공급부와(2)(3)와, 터치 스크린(4)이 터치위치에 따라 출력하는 전압을 정형하는 다이오드(D1-D8)로 된 파형 정형부(5)와, 상기 파형 정형부(5)의 출력전압을 증폭하는 콘덴서(C1)(C2)(C3)(C4), 저항(R11, R12)(R13, R14)(R15, R16)(R17, R18) 및 연산증폭기(OP1)(OP2)(OP3)(OP4)로 된 제1-제4검출전압 증폭부(6)(7)(8)(9)와, 상기 마이콤(1)이 어드레스 버스(AB)로 출력하는 어드레스 신호에 따라 상기 제1-제4검출전압 증폭부(6-9)의 출력신호를 선택하여 디지탈 신호로 변환하고 데이타 버스(DB)로 출력하는 아날로그/디지탈 변환기(10)와, 상기 마이콤(1)이 출력하는 입출력 리드신호(SR), 아날로그/디지탈 변환 어드레스 신호(ADR) 및 입출력 라이트신호(SW)에 따라 상기 아날로그/디지탈 변환기(10)에 시작신호(ST) 및 출력 인에이블 신호(OE)를 인가하여 아날로그/디지탈 변환기(10)가 선택된 제1-제4검출전압 증폭부(6-9)의 출력신호를 디지탈 신호로 변환하고 출력하게 제어하는 오아 게이트(OR1,OR2) 및 인버터(I3, I4)로 제어신호 출력부(11)와 상기 아날로그/디지탈 변환기(12)의 변환 완료 신호(EOC)에 따라 상기 마이콤(1)에 인터럽트 신호(INT)를 인가하여 디지탈 신호로의 변환이 완료되었음을 알리는 플립플롭(12)으로 구성한 것으로 도면의 설명중 미설명 부호 CLK는 클럭신호이고, Vcc는 전원단자이다.1 is a touch position detection circuit diagram of the present invention, as shown here, the microcomputer 1 for controlling the overall operation of the touch position detection and the microcomputer 1 is the X-axis and Y-axis control terminals (XH, XL) ( Inverters (I 1 ) (I 2 ) and resistors (R 1- R 5 ) (R 6 ) respectively supplying the X-axis and Y-axis detection voltages to the touch screen 4 according to the control signals output to YH and YL. X- and Y-axis detection voltage supply units (R) (3) consisting of -R 10 , transistors TR 1 , TR 2 (TR 3 , TR 4 ) and variable resistors VR 1 (VR 2 ), Waveform shaping portion 5 comprising diodes D 1 -D 8 shaping the voltage output by touch screen 4 according to the touch position, and capacitor C amplifying the output voltage of the waveform shaping portion 5. 1 ) (C 2 ) (C 3 ) (C 4 ), resistors (R 11 , R 12 ) (R 13 , R 14 ) (R 15 , R 16 ) (R 17 , R 18 ) and operational amplifier (OP 1 ) (OP 2) (OP 3) (OP 4) first-fourth detection voltage amplifying unit 6, 7, 8, 9 and the microcomputer (1) the address bus (AB) in the in Address to output An analog / digital converter 10 which selects an output signal of the first to fourth detection voltage amplifiers 6-9 according to the signal, converts the output signal into a digital signal, and outputs the digital signal to the data bus DB; Start signal ST and output enable signal OE to the analog / digital converter 10 according to the input / output read signal SR, the analog / digital conversion address signal ADR, and the input / output write signal SW. Ora gates OR 1 and OR 2 for controlling the analog / digital converter 10 to convert the output signal of the selected first-fourth detection voltage amplifier 6-9 into a digital signal and output the same; Inverters I 3 and I 4 apply an interrupt signal INT to the microcomputer 1 according to the control signal output unit 11 and the conversion completion signal EOC of the analog / digital converter 12 to convert the digital signal. Consisting of a flip-flop (12) indicating that the conversion to Unexplained code CLK is a clock signal and Vcc is a power terminal.

이와 같은 구성을 가지는 본 발명의 터치위치 검출회로는 전원단자(Vcc)에 동작전원이 인가되고, 클럭신호(CLK)가 인가되는 상태에서 마이콤(1)이 X축 제어단자(XH)(XL)로 고전위의 검출 제어신호를 출력하면, 제어단자(XH)의 고전위가 인버터(I1)를 통해 저전위로 반전된 후 트랜지스터(TR1)의 베이스측에 인가되어 그가 온됨과 아울러 제어단자(XL)의 고전위가 트랜지스터(TR2)의 베이스축에 인가되어 그가 온되므로 전원단자(Vcc)의 동작 전원이 트랜지스터(TR1), 가변저항(VR1), 가변저항(VR1), 저항(R3), 터치 스크린(4)의 X축 및 트랜지스터(TR2)로 흐르게 된다.In the touch position detecting circuit of the present invention having such a configuration, the microcomputer 1 has the X-axis control terminal XH (XL) while the operating power is applied to the power supply terminal Vcc, and the clock signal CLK is applied. When the low-potential detection control signal is outputted, the high potential of the control terminal XH is inverted to a low potential through the inverter I 1 and then applied to the base side of the transistor TR 1 so that it is turned on and the control terminal ( The high potential of the XL is applied to the base axis of the transistor TR 2 so that it is turned on so that the operating power supply of the power supply terminal Vcc is the transistor TR 1 , the variable resistor VR 1 , the variable resistor VR 1 , and the resistor. (R 3 ), the X-axis of the touch screen 4 and the transistor TR 2 flow.

이와 같은 상태에서 사용자가 터치 스크린(4)에 손가락 또는 볼펜의 팁 등을 터치하면, 터치 스크린(4)은 그 터치된 위치에 따라 X축의 저항값이 가변되어 검출 전압이 가변되고, 그 검출 전압은 파형 정형부(5)를 통해 정형되고, 제1 및 제2검출전압 증폭부(6)(7)를 통해 증폭되어 아날로그/디지탈 변환기(10)의 입력단자(IN1)(IN2)로 입력된다.In this state, when the user touches the finger or the tip of a ballpoint pen on the touch screen 4, the touch screen 4 varies the resistance value of the X-axis according to the touched position, and thus the detection voltage is changed. Is shaped through the waveform shaping section 5, and amplified through the first and second detection voltage amplifying sections 6 and 7 to the input terminals IN 1 (IN 2 ) of the analog / digital converter 10. Is entered.

그리고, 마이콤(1)은 어드레스 버스(AB)로 어드레스 신호를 출력하여 아날로그/디지탈 변환기(10)에 인가함과 아울러 입출력 리드신호(SR), 아날로그/디지탈 변환 어드레스 신호(ADR) 및 입출력 라이트 신호(SW)에 따라 제어신호 출력부(11)가 시작신호(ST) 및 출력 인에이블 신호(OE)를 출력하여 아날로그/디지탈 변환기(10)에 인가하므로 아날로그/디지탈 변환기(10)는 X축 터치위치 검출전압, 즉, 제1 및 제2검출전압 증폭부(6)(7)의 출력신호를 순차적으로 디지탈 신호로 변환하고, 데이타 버스(DB)로 출력하여 마이콤(1)에 입력됨과 아울러 디지탈 신호의 변환이 완료됨에 따라 아날로그/디지탈 변환기(10)가 변환 완료신호(EOC)를 출력하여 플립플롭(12)의 클럭단자(CK)에 인가하므로 플립플롭(12)은 출력단자(Q)로 고전위를 출력하고, 그 고전위는 마이콤(1)에 인터럽트 신호(INT)로 인가되어 마이콤(1)은 디지탈 신호로의 변환이 완료되었음을 감지하고, 데이타 버스(DB)의 신호 즉, X축 터치위치 데이타를 입력하여 저장함과 아울러 클리어 신호(CL)를 출력하여 플립플롭(12)을 클리어 시키게 된다.The microcomputer 1 outputs an address signal through the address bus AB and applies it to the analog / digital converter 10, and also input / output read signal SR, analog / digital conversion address signal ADR, and input / output write signal. The control signal output unit 11 outputs the start signal ST and the output enable signal OE to the analog / digital converter 10 according to (SW), so that the analog / digital converter 10 touches the X-axis. The position detection voltage, that is, the output signals of the first and second detection voltage amplifiers 6 and 7 are sequentially converted into digital signals, output to the data bus DB, input to the microcomputer 1, and digitally. As the conversion of the signal is completed, the analog-to-digital converter 10 outputs the conversion completion signal EOC and applies it to the clock terminal CK of the flip-flop 12, so that the flip-flop 12 goes to the output terminal Q. Outputs a high potential, which is interrupted by the microcomputer (1) Applied by arc INT, the microcomputer 1 senses that the conversion to the digital signal is completed, inputs and stores the signal of the data bus DB, that is, the X-axis touch position data, and outputs the clear signal CL. The flip flop 12 is cleared.

이와 같이 하여 터치 스크린(4)에 터치된 X축의 터치위치의 데이타가 검출되면, 마이콤(1)은 Y축 제어단자(YH)(YL)로 고전위를 출력하여 Y축 검출전압 공급부(3)의 트랜지스터(TR3, TR4)가 온되면서 터치 스크린(4)에 Y축 검출용 전압을 공급하고, 터치 스크린(4)의 터치위치에 따라 가변된 Y축 검출전압은 파형정형부(5)를 통해 정형되고, 제3 및 제4검출전압 증폭기(8)(9)에서 증폭된 후 아날로그/디지탈 변환기(10)에 입력되어, 상기의 X축 검출전압과 마찬가지로 마이콤(1)의 제어에 따라 디지탈 신호로 변환된 후 마이콤(1)으로 입력되며, Y축 검출전압의 디지탈 변환 및 입력이 완료되면, 마이콤(1)은 고전위의 클리어 신호(CL)를 출력하여 플립플롭(12)을 클리어 시키게 된다.When the data of the touch position of the X-axis touched by the touch screen 4 is detected in this way, the microcomputer 1 outputs a high potential to the Y-axis control terminal YH YL to supply the Y-axis detection voltage supply unit 3. Transistors TR 3 and TR 4 are turned on to supply the Y-axis detection voltage to the touch screen 4, and the Y-axis detection voltage that is varied according to the touch position of the touch screen 4 is the waveform shaping unit 5. And are amplified by the third and fourth detection voltage amplifiers 8 and 9, and then input to the analog / digital converter 10, under the control of the microcomputer 1 as in the X-axis detection voltage. After converting into a digital signal and input to the microcomputer 1, when the digital conversion and input of the Y-axis detection voltage is completed, the microcomputer 1 outputs a high potential clear signal CL to clear the flip-flop 12. Let's go.

한편, 제2도는 본 발명의 터치위치 검출방법의 일실시예를 보인 신호 흐름도이다. 이와 같은 본 발명의 터치위치 검출방법은 제2a도에 도시된 바와 같이 단계(100)에서 초기화루틴을 수행한다.2 is a signal flowchart showing an embodiment of the touch position detection method of the present invention. The touch position detection method of the present invention performs an initialization routine in step 100 as shown in FIG.

초기화 루틴에서는 제2b도에 도시된 바와 같이 단계(101)에서 각 레지스터들을 대피시키고, 단계(102)에서 메모리 맵에 저장되어 있는 모든 X축 및 Y축 터치위치 데이타를 클리어하며, 단계(103)에서 메모리 맵에 터치위치 데이타가 저장되어 있음을 나타내는 저장 변수를 클리어하며, 단계(104)에서 인터럽트 신호(INT)등과 같은 모든 외부 인터럽트의 입력을 차단함과 아울러 클리어 신호(CL)를 출력하여 플립플롭(12)을 클리어시킨 후 단계(105)에서 X축 및 Y축 제어단자(XH, XL, YH, YL)로 모두 저전위를 출력하여 터치 스크린(4)의 전원공급을 차단한다.In the initialization routine, as shown in FIG. 2B, each register is evacuated in step 101, and in step 102, all X-axis and Y-axis touch position data stored in the memory map are cleared, and step 103 In step 104, the storage variable indicating that the touch position data is stored in the memory map is cleared, and in step 104, all external interrupts such as the interrupt signal INT are interrupted, and the clear signal CL is outputted and flipped. After the flop 12 is cleared, in step 105, the low potential is output to both the X-axis and Y-axis control terminals XH, XL, YH, and YL to cut off the power supply of the touch screen 4.

그리고, 단계(106)에서 타이머 인터럽트의 벡터를 타이머 서브 루틴으로 변경하고, 단계(107)에서 타이머틱 인터럽트의 벡터를 터치 스크린(4)의 서브루틴으로 변경한 후 단계(108)에서 타이머 인터럽트의 주기를 빠르게 변경 즉, 사용자가 터치 스크린(4)을 터치하는 시간이 매우 빠르므로 그에 적당하게 타이머 인터럽트의 주기를 빠르게 하여 터치 스크린(4)의 터치를 정확히 검출할 수 있도록 하고 또한 타이머의 주기도 변경하여 타이머가 정상으로 작동하게 한 후 단계(109)에서 각 레지스터들을 복구한다.Then, in step 106, the vector of the timer interrupt is changed to the timer subroutine, and in step 107, the vector of the timertic interrupt is changed to the subroutine of the touch screen 4, and then in step 108, the timer interrupt is changed. In other words, the period of the user's touch on the touch screen 4 is very fast, so that the period of the timer interrupt can be quickly detected so that the touch of the touch screen 4 can be accurately detected, and the period of the timer is also changed. In order to restore the respective registers in step 109.

이와 같이 초기화 루틴을 수행하여 터치 스크린(4)의 터치위치를 검출할 초기상태로 되면, 단계(200)에서 새로운 좌표값, 즉 터치 스크린(4)의 터치위치 좌표를 변경하였는 지를 판별하고, 터치위치 좌표를 변경하였을 경우에는 단계(300)에서 플래쉬 버퍼루틴을 수행한다.When the initialization routine is performed to detect the touch position of the touch screen 4 as described above, it is determined whether the new coordinate value, that is, the touch position coordinates of the touch screen 4 has been changed in step 200, and the touch is performed. If the position coordinates are changed, the flash buffer routine is performed in step 300.

플래쉬 버퍼루틴에서는 제2c도에 도시된 바와 같이 단계(301)에서 각 레지스터들을 대피시키고, 단계(302)에서 데이타 세그먼트를 설정하며, 단계(303)에서 메모리 맵의 헤드와 테일을 스타트로 보정 즉, 메모리 맵의 헤드와 테일을 스타트로 일치시켜 메모리 맵에 데이타가 저장되어 있는 않는 초기상태로 만들고 단계(304)에서 각 레지스터들을 복구시킨다.In the flash buffer routine, as shown in FIG. 2C, each register is evacuated in step 301, a data segment is set in step 302, and the head and tail of the memory map are corrected with start in step 303. The head and tail of the memory map are matched with a start to make the initial state where no data is stored in the memory map, and each register is restored at step 304.

이와 같이 플래쉬 버퍼루틴을 수행하여 메모리 맵이 초기상태로 되거나 또는 단계(200)에서 새로운 좌표값이 아닐 경우에는 단계(400)에서 대기 루드루틴을 수행한다.In this manner, when the memory map is initialized or the new map value is not the new coordinate value in step 200, the standby routine is performed in step 400.

대기 리드루틴에서는 제2d도에 도시된 바와 같이 단계(401)에서 각 레지스터들을 대피시키고, 단계(402)에서 데이타 세그먼트를 설정하며, 단계(403)에서 메모리 맵의 헤드와 테일을 리드하며, 단계(404)에서 헤드와 테일이 동일한 지를 비교 즉, 메모리 맵에 터치 스크린(4)의 터치위치 데이타가 저장되어 있는지를 판별하여 헤드와 테일이 동일로 메모리 맵에 터치위치 데이타가 저장되어 있지 않을 경우에는 단계(403)부터 반복 수행하여 터치위치 데이타가 저장될 때까지 대기하고, 헤드와 테일이 동일하지 않아 메모리 맵에 터치위치 데이타가 저장되어 있을 경우에는 단계(405)에서 헤드가 지시하는 메모리 맵의 번지의 X축 및 Y축 터치위치 데이타를 리드하며, 단계(406)에서 테일을 감소하며, 단계(407)에서 테일의 위치가 메모리 맵의 끝일 경우에는 단계(408)에서 테일을 메모리 맵의 스타트로 한 후, 단계(409)에서 리드한 X축 및 Y축 터치위치 데이타를 전송하고, 단계(410)에서 각 레지스터들을 복구한다.In the standby read routine, evacuate each register in step 401, set the data segment in step 402, read the head and tail of the memory map in step 403, as shown in FIG. In 404, the head and the tail are compared, that is, it is determined whether the touch position data of the touch screen 4 is stored in the memory map, and the head and tail are the same, and thus the touch position data is not stored in the memory map. In step 403, the process repeats the process and waits until the touch position data is stored. If the touch position data is stored in the memory map because the head and tail are not the same, the memory map indicated by the head in step 405 is repeated. Reads the X- and Y-axis touch position data of the address of < RTI ID = 0.0 >, < / RTI > and decreases the tail in step 406, or step 408 if the tail position is the end of the memory map in step 407. After standing in a tail to the start of the memory map, and transmits the X-axis and Y-axis touch position data read in step 409, to recover the respective registers at step 410.

이와 같이 대기 리드루틴을 수행하여 터치 스크린(4)의 터치위치 데이타를 전송하면, 단계(500)에서 입력이 종료인지를 판별 즉, 터치 스크린(4)의 터치를 종료하였는 지를 판별하고, 종료하지 않았을 경우에는 단계(200)부터 반복 수행하고 종료하였을 경우에는 단계(600)에서 디저블 루틴을 수행한다.As described above, when the touch position data of the touch screen 4 is transmitted by performing the standby read routine, it is determined in step 500 whether the input is terminated, that is, whether the touch of the touch screen 4 is terminated, and not finished. If not, the process is repeated from step 200, and if it is terminated, the disable routine is performed at step 600.

디저블 루틴에서는 제2e도에 도시된 바와 같이 단계(601)에서 각 레지스터들을대피시키고, 단계(602)에서 메모리 맵의 헤드와 테일을 스타트로 보정하며, 단계(603)에서 타이머 인터럽트의 백터 및 타이머 틱 인터럽트의 벡터를 복구시킨 후 단계(604)에서 타이머 인터럽트의 벡터를 원상복귀시키고, 단계(605)에서 각 레지스터를 복구시키며, 이와 같이 디저블 루틴을 수행하여 원상복귀되면 리턴한다.In the disable routine, the respective registers are evacuated in step 601 as shown in FIG. 2E, the head and tail of the memory map are corrected with start in step 602, the vector of timer interrupts in step 603, and the like. After recovering the vector of timer tick interrupts, the vector of timer interrupts is restored in step 604, and each register is restored in step 605, and thus, when it is returned to its original state by performing a destroy routine.

그리고, 상기와 같은 메인루틴을 수행하면서 일정시간 간격으로 타이머 인터럽트 신호가 인가됨에 따라 타이머 인터럽트 루틴을 수행하여 터치 스크린(4)의 터치위치 데이타를 메모리 맵에 저장한다.As the timer interrupt signal is applied at regular time intervals while performing the main routine, the timer interrupt routine is performed to store the touch position data of the touch screen 4 in the memory map.

즉, 타이머 인터럽트 루틴에서는 제2f도에 도시된 바와 같이 단계(701)에서 각 레지스터들을 대피시키고, 단계(702)에서 데이타 세그먼트를 설정하며, 단계(703)에서 상태 검출 루틴을 수행한다.That is, in the timer interrupt routine, each register is evacuated in step 701, the data segment is set in step 702, and the state detection routine is performed in step 703, as shown in FIG.

상태 검출 루틴에서는 제2g도에 도시된 바와 같이 단계(711)에서 각 레지스터들을 대피시키고, 단계(712)에서 데이타 세그먼트를 설정하며, 단계(713)에서 메모리 맵의 헤드와 테일을 리드한 후 단계(714)에서 헤드와 테일을 비교하여,헤드와 테일이 동일로 메모리 맵에 터치위치 데이타가 저장되지 않았을 경우에는 단계(715)에서 저장 연수를 0으로 하고 전송하여 메모리 맵에 터치위치 데이타가 저장되어 있지 않음을 알리고, 헤드와 테일이 동일하지 않아 메모리 맵에 터치위치 데이타가 저장되어 있을 경우에는 단계(716)에서 저장 변수를 1로 하고, 전송하여 메모리 맵에 터치위치 데이타가 저장되어 있음을 알리며, 단계(717)에서 각 레지스터들을 복구한다.In the state detection routine, each register is evacuated in step 711, the data segment is set in step 712, and the head and tail of the memory map are read in step 713, as shown in FIG. When the head and the tail are not identical and the touch position data is not stored in the memory map in step 714, the touch position data is stored in the memory map in step 715. If the touch position data is stored in the memory map because the head and the tail are not the same, the storage variable is set to 1 in step 716, and the touch position data is stored in the memory map. In step 717, each register is restored.

이와 같이 상태검출 루틴을 수행하여 메모리 맵에 터치위치 데이타가 저장되어 있는 지의 여부를 판별하면, 단계(720)에서 터치위치 검출루틴을 수행한다.When the state detection routine is performed to determine whether touch position data is stored in the memory map, the touch position detection routine is performed in step 720.

터치위치 검출루틴에서는 제2h도에 도시된 바와 같이 단계(721)에서 각 레지스터를 대피시키고, 단계(722)에서 데이타 세그멘트를 설정하며,단계(723)에서 X축 검출용 전압을 공급 즉, X축 제어단자(XH, XL)로 고전위를 출력하여 X축 검출전압 공급부(2)가 터치 스크린(4)의 X축에 검출용 전압을 공급하며, 단계(724)에서 아날로그/디지탈 변환기(10)로부터 X축 터치위치 데이타를 리드한 후 단계(725)에서 리드한 X축 터치위치 데이타로 터치 스크린(4)가 터치되었는 지를 판별하여 터치되지 않았을 경우에는 리턴하고, 터치되었을 경우에는 단계(726)에서 Y축 제어단자(YH, YL) 로 고전위를 출력하여 Y축 검출전압 공급부(3)가 터치 스크린(4)의 Y축에 검출전압을 공급하며, 단계(727)에서 Y축 터치위치 데이타를 리드하며, 단계(728)에서 리드한 X축 및 Y축 터치위치 데이타를 메모리 맵에 저장한 후 단계(729)에서 일정 회수 검출 즉, 예를 들면 터치 스크린(4)의 X축 및 Y축 터치위치 데이타를 2회 검출하였는 지를 판별하여 2회 검출하지 않았을 경우에는 단계(723)부터 반복하고, 2회를 검출하였을 경우에는 단계(730)에서 리드한 X축 및 Y축 터치위치 데이타의 평균값을 계산하여 단계(731)에서 메모리 맵에 저장하며, 단계(732)에서 각 레지스터를 복구한다.In the touch position detection routine, as shown in FIG. 2h, each register is evacuated in step 721, the data segment is set in step 722, and in step 723, the voltage for detecting the X-axis is supplied, that is, X The high potential is output to the axis control terminals XH and XL so that the X-axis detection voltage supply unit 2 supplies the detection voltage to the X-axis of the touch screen 4, and in step 724, the analog-to-digital converter 10 After reading the X-axis touch position data from the X-axis touch position data, it is determined whether the touch screen 4 has been touched by the X-axis touch position data read in step 725, and returned if it has not been touched. ) Outputs a high potential to the Y-axis control terminals (YH, YL) to the Y-axis detection voltage supply unit 3 supplies the detection voltage to the Y-axis of the touch screen 4, the Y-axis touch position in step 727 Reads data, and reads the X-axis and Y-axis touch position data read in step 728. If it has not been detected twice in a mori map after detecting a certain number of times, i.e., detecting twice the X-axis and Y-axis touch position data of the touch screen 4 in step 729, 723, and if detected twice, the average value of the X-axis and Y-axis touch position data read in step 730 is calculated and stored in the memory map in step 731, and each step in step 732. Restore the register.

이와 같이 터치위치 검출루틴을 수행하여 터치 스크린(4)의 터치위치가 검출되면, 단계(740)에서 각 레지스터들을 복구시키고 리턴한다.When the touch position of the touch screen 4 is detected by performing the touch position detection routine as described above, each register is restored and returned in step 740.

한편, 제4도는 본 발명의 터치위치 검출방법의 다른 실시예를 보인 신호 흐름도이다. 이와같은 본 발명은 제4a도에 도시된 바와 같이 단계(200)에서 새로운 좌표값의 여부에 따라 단계(300)에서 플래시 버퍼루틴을 수행한 후 대기 리드루틴을 수행하지 않고 단계(440)에서 메모리 맵에 터치위치 데이타가 저장되어 있는 지의 여부를 나타내는 저장 변수의 상태를 판별하여 저장 변수가 0으로 메모리 맵에 터치위치 데이타가 저장되어 있지 않을 경우에는 단계(500)를 수행하고, 저장 변수가 1로 메모리 맵에 터치위치 데이타가 저장되어 있을 경우에는 단계(450)에서 확인 리드루틴을 수행한 후 단계(500)을 수행한다.On the other hand, Figure 4 is a signal flow diagram showing another embodiment of the touch position detection method of the present invention. As shown in FIG. 4A, the present invention performs the flash buffer routine in step 300 according to the presence of the new coordinate value in step 200 and then does not perform the standby read routine in step 440. If the state of the storage variable indicating whether the touch position data is stored in the map is determined and the storage variable is 0 and the touch position data is not stored in the memory map, step 500 is performed and the storage variable is 1. In the case where touch location data is stored in the memory map, a check read routine is performed in step 450 and step 500 is performed.

확인 리드 루틴에서는 제4b도에 도시된 바와 같이 단계(451)에서 각 레지스터들을 대피시키고, 단계(452)에서 데이타 세그먼트를 설정하며, 단계(453)에서 메모리 맵의 헤드와 테일을 리드하며, 단계(454)에서 헤드와 테일이 동일한 지를 비교 즉, 메모리 맵에 터치 스크린(4)의 터치위치 데이타가 저장되어 있는지를 판별하여 헤드와 테일이 동일로 메모리 맵에 터치위치 데이타가 저장되어 있지 않을 경우에는 단계(461)에서 각 레지스터를 복구하고, 헤드와 테일이 동일하지 않아 메모리 맵에 터치위치 데이타가 저장되어 있을 경우에는 단계(456)에서 헤드가 지시하는 메모리 맵의 번지의 X축 및 Y축 터치위치 데이타를 리드하며, 단계(457)에서 테일을 감소하며, 단계(458)에서 테일의 위치가 메모리 맵의 끝일 경우에는 단계(459)에서 테일을 메모리 맵의 스타트로 한 후 단계(460)에서 리드한 X축 및 Y축 터치위치 데이타를 전송하고, 단계(461)에서 각 레지스터들을 복구한다.In the verify read routine, as shown in FIG. 4B, each register is evacuated in step 451, the data segment is set in step 452, the head and tail of the memory map are read in step 453, and In operation 454, the head and the tail are compared, that is, the touch map data of the touch screen 4 is stored in the memory map and the head and the tail are not stored in the memory map. In step 461, if each register is restored and the head and tail are not the same, and the touch position data is stored in the memory map, the X and Y axes of the address of the memory map indicated by the head in step 456 are Read the touch position data, reduce the tail in step 457, and if the tail's position in step 458 is the end of the memory map, turn the tail to start the memory map in step 459. After that, the X- and Y-axis touch position data read in step 460 is transferred, and each register is restored in step 461.

이상에서 상세히 설명한 바와 같이 본 발명은 터치 스크린의 터치위치를 검출함으로써 터치 스크린에 여러가지의 키보드를 그래픽 즉, 예를 들면, 모뎀의 다이얼등과 같이 각 기기의 키보드를 그래픽하여 데이타 입력장치로 사용할 수 있음은 물론 간단히 데이타를 입력시킬 수 있는 효과가 있다.As described in detail above, according to the present invention, various keyboards may be graphically displayed on the touch screen by detecting the touch position of the touch screen, that is, the keyboard of each device may be used as a data input device such as a modem dial. Of course, there is an effect that can simply input data.

Claims (4)

터치 스크린의 터치위치 검출의 전체동작을 제어하는 마이콤과, 상기 마이콤의 제어로 상기 터치 스크린에 X축 및 Y축 검출용 전압을 공급하는 X축 및 Y축 검출전압 공급부와, 상기 터치 스크린의 터치에 따라 출력된 전압을 디지탈 신호로 변환하여 상기 마이콤으로 출력하는 아날로그/디지탈 변환기와, 상기 마이콤의 출력신호에 따라 상기 아날로그/디지탈 변환기가 동작하게 제어하는 제어신호 출력부와, 상기 아날로그/디지탈 변환기의 출력신호에 따라 상기 마이콤에 디지탈 신호로의 변환이 완료되었음을 알리는 플립플롭으로 구성됨을 특징으로 하는 터치 스크린의 터치위치 검출회로.A microcomputer for controlling the overall operation of the touch position detection of the touch screen, an X-axis and a Y-axis detection voltage supply unit supplying the X-axis and Y-axis detection voltages to the touch screen by the control of the microcomputer, and a touch of the touch screen. An analog / digital converter for converting the voltage output according to the digital signal into the digital signal and outputting the digital signal to the microcomputer, a control signal output unit for controlling the analog / digital converter to operate according to the output signal of the microcomputer, and the analog / digital converter. And a flip-flop for informing the microcomputer that the conversion to the digital signal is completed according to the output signal of the touch screen. 시스템 전체를 초기상태로 만들고, 타이머 인터럽트의 벡터 및 타이머 틱 인터럽트의 벡터를 타이머 루틴 및 터치 스크린 루틴으로 변경한 후 타이머 인터럽트의 주기를 빠르게 변경하는 초기화 루틴과, 새로운 좌표값이 설정됨에 따라 터치 스크린의 터치위치 데이타를 저장하는 메모리 맵의 헤드와 테일을 스타트로 보정하는 플래쉬 버퍼 루틴과, 메모리 맵에 저장된 터치위치 데이타를 전송하는 리드루틴과, 터치 스크린의 터치가 종료됨에 따라 시스템 전체를 원상복귀시키는 디저블 루틴과, 타이머 인터럽트시마다, 메모리 맵에 터치위치 데이타가 저장되어 있는 지를 판별하는 상태 검출루틴 및 터치 스크린의 터치위치를 검출하여 메모리 맵에 저장하는 터치위치 검출루틴으로 제어함을 특징으로 하는 터치 스크린의 터치위치 검출방법.An initialization routine that initializes the entire system, changes the vector of timer interrupts and the vector of timer tick interrupts to timer routines and touch screen routines, and then quickly changes the frequency of timer interrupts, and touch screens as new coordinate values are set. Flash buffer routines to calibrate the head and tail of the memory map storing the touch position data at the start, read routines to transmit the touch position data stored in the memory map, and restore the entire system when the touch of the touch screen is terminated. And a status detection routine for determining whether the touch position data is stored in the memory map and a touch position detection routine for detecting the touch position of the touch screen and storing the touch position in the memory map at each timer interrupt. Touch position detection method of the touch screen. 제2항에 있어서, 리드루틴은, 메모리 맵에 터치위치 데이타가 저장될 때까지 대기하고, 터치위치 데이타가 저장될 때 그 저장된 터치위치 데이타를 리드하여 전송하는 대기 리드루틴임을 특징으로 하는 터치 스크린의 터치위치 검출방법.The touch screen of claim 2, wherein the read routine is a standby read routine for waiting until touch location data is stored in a memory map, and reading and transmitting the stored touch location data when the touch location data is stored. Touch position detection method. 제2항에 있어서, 리드루틴은, 일정시간 간격으로 메모리 맵에 터치위치 데이타가 저장되어 있는 지를 확인하고, 저장되어 있을 경우에 그 터치위치 데이타를 리드하여 전송하는 확인 리드루틴임을 특징으로 하는 터치 스크린의 터치위치 검출방법.The touch routine of claim 2, wherein the read routine is a confirmation read routine that checks whether touch location data is stored in the memory map at predetermined time intervals, and reads and transmits the touch location data when stored. Method of detecting touch position of screen.
KR1019890007665A 1989-06-03 1989-06-03 Touch position detection circuit and method of touch screen Expired KR920002594B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019890007665A KR920002594B1 (en) 1989-06-03 1989-06-03 Touch position detection circuit and method of touch screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019890007665A KR920002594B1 (en) 1989-06-03 1989-06-03 Touch position detection circuit and method of touch screen

Publications (2)

Publication Number Publication Date
KR910001519A KR910001519A (en) 1991-01-31
KR920002594B1 true KR920002594B1 (en) 1992-03-30

Family

ID=19286787

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019890007665A Expired KR920002594B1 (en) 1989-06-03 1989-06-03 Touch position detection circuit and method of touch screen

Country Status (1)

Country Link
KR (1) KR920002594B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101648716B1 (en) * 2015-06-26 2016-08-17 크루셜텍 (주) Touch deetecting apparatus and method for variable touch response speed

Also Published As

Publication number Publication date
KR910001519A (en) 1991-01-31

Similar Documents

Publication Publication Date Title
US8281188B2 (en) Data processing system with peripheral configuration information error detection
US6738048B1 (en) Touch screen controller
JPH11119863A (en) Card information reading method, card, host device, and drive device
US5561447A (en) Coordinate input apparatus
US20030233507A1 (en) Electronic card with multiple interfaces
KR920002594B1 (en) Touch position detection circuit and method of touch screen
JPS5821281B2 (en) arithmetic device
KR100259360B1 (en) Touch panel scan circuit
JPH07198762A (en) Semiconductor integrated circuit device
JP3097721B2 (en) Terminal printer
EP1509874A1 (en) Apparatus, methods, computer program products for editing handwritten symbols using alternative known symbols
JPS62151912A (en) Keyboard using coordinate input device
JPH1074126A (en) Coordinate position input device
JP2001273274A (en) Semiconductor integrated circuit and test mode setting circuit therefor
JP3647277B2 (en) Digital / analog converter
JPS6277661A (en) Memory presence/absence detecting circuit
KR940001104B1 (en) Method and circuit for power reset and manual reset
JP3283194B2 (en) Code conversion device
KR0151776B1 (en) CPI Voltage Detection Device Using Keyboard Controller
JP2850272B2 (en) Switch input detection circuit
JPS5826048B2 (en) Initialization method
GB2391339A (en) Digital IC revision identification using a register
JPH0683485A (en) personal computer
JPS60123925A (en) Read circuit of switch information
JPS6327726B2 (en)

Legal Events

Date Code Title Description
PA0109 Patent application

St.27 status event code: A-0-1-A10-A12-nap-PA0109

R17-X000 Change to representative recorded

St.27 status event code: A-3-3-R10-R17-oth-X000

A201 Request for examination
PA0201 Request for examination

St.27 status event code: A-1-2-D10-D11-exm-PA0201

PG1501 Laying open of application

St.27 status event code: A-1-1-Q10-Q12-nap-PG1501

G160 Decision to publish patent application
PG1605 Publication of application before grant of patent

St.27 status event code: A-2-2-Q10-Q13-nap-PG1605

E701 Decision to grant or registration of patent right
PE0701 Decision of registration

St.27 status event code: A-1-2-D10-D22-exm-PE0701

GRNT Written decision to grant
PR0701 Registration of establishment

St.27 status event code: A-2-4-F10-F11-exm-PR0701

PR1002 Payment of registration fee

St.27 status event code: A-2-2-U10-U11-oth-PR1002

Fee payment year number: 1

LAPS Lapse due to unpaid annual fee
PC1903 Unpaid annual fee

St.27 status event code: A-4-4-U10-U13-oth-PC1903

Not in force date: 19950331

Payment event data comment text: Termination Category : DEFAULT_OF_REGISTRATION_FEE

PC1903 Unpaid annual fee

St.27 status event code: N-4-6-H10-H13-oth-PC1903

Ip right cessation event data comment text: Termination Category : DEFAULT_OF_REGISTRATION_FEE

Not in force date: 19950331

P22-X000 Classification modified

St.27 status event code: A-4-4-P10-P22-nap-X000

P22-X000 Classification modified

St.27 status event code: A-4-4-P10-P22-nap-X000