KR890004056B1 - Mode conversion method and circuits for hangeul character display - Google Patents
Mode conversion method and circuits for hangeul character display Download PDFInfo
- Publication number
- KR890004056B1 KR890004056B1 KR1019860005402A KR860005402A KR890004056B1 KR 890004056 B1 KR890004056 B1 KR 890004056B1 KR 1019860005402 A KR1019860005402 A KR 1019860005402A KR 860005402 A KR860005402 A KR 860005402A KR 890004056 B1 KR890004056 B1 KR 890004056B1
- Authority
- KR
- South Korea
- Prior art keywords
- character
- hangul
- mode
- english
- output
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/153—Digital output to display device ; Cooperation and interconnection of the display device with other functional units using cathode-ray tubes
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Description
제1도는 본 발명의 따른 블럭도.1 is a block diagram according to the present invention.
제2도는 한글 80자 또는 40자 모드 캐릭터예시도.2 is an example of 80 or 40 characters Hangul characters.
제3도는 본 발명에 따른 제1도의 구체회로도.3 is a detailed circuit diagram of FIG. 1 in accordance with the present invention.
제4도는 본 발명에 따른 흐름도.4 is a flow chart according to the present invention.
제5도는 종래의 CRTC 내부 블럭도.5 is a block diagram of a conventional CRTC.
제6도는 모터롤러 6845의 핀배치도.6 is a pinout diagram of the motor roller 6845.
* 도면의 주요 부분에 대한 부호의 설명* Explanation of symbols for the main parts of the drawings
10 : 비디오램부 20 : 버퍼부10: video RAM unit 20: buffer unit
30 : 선택부 40 : 영문문자 발생기30: selection unit 40: English character generator
50 : 한글문자 발생기 50 : 라인 버퍼부50: Hangul character generator 50: line buffer
70 : CTR제어기70: CTR controller
본 발명을 컴퓨터 시스템에서 한글문자(Character)를 발생시킬 수 있는 회로에 관한 것으로, 특히 기존의 하드웨어(Hardware)의 변경없이 한글문자를 80자나 40자 모드별로 선택적으로 화면상에 표시시킬 수 있는 한글문자 디스플레이를 위한 모드변환방법 및 회로에 관한 것이다.The present invention relates to a circuit capable of generating Hangul characters in a computer system, and in particular, Hangul which can selectively display Hangul characters on a screen by 80 or 40 character mode without changing the existing hardware. A mode conversion method and circuit for character display.
일반적으로 디스플레이상의 한글문자를 발생하기 위해서는 여러가지 방법이 있으나 주로 CRTC(Cathode Ray Tube Controller)를 사용하여 문자를 표시시켜 왔었다.Generally, there are various ways to generate Hangul characters on the display, but the characters have been displayed mainly using CRTC (Cathode Ray Tube Controller).
일반적인 CRTC의 기능에 대해 구체적으로 살펴보면 CRT콘트롤러는 4종류의 기본적인 신호를 발생한다.Looking specifically at the function of the general CRTC, the CRT controller generates four basic signals.
1. 리프레시·어드레스 : 화면을 리프레시 하기 위하여 필요한 문자의 어드레스.1. Refresh Address: Address of the character needed to refresh the screen.
2. 로우·셀렉트 : 순서대로 표시하는 도트의 7 또는 9의 행위치.2. Low select: 7 or 9 behavior values of the dots displayed in order.
3. 비디오·모니터·타이밍 : 수평, 수직 동기신호.3. Video monitor timing: Horizontal and vertical sync signal.
4. 디스플레이·인에이블.4. Display Enable.
이외에, CRTC시가 갖고 있는 2가지 편리한 기능이 있다.In addition, there are two convenient functions of CRTC city.
1. 캐소올출력 : 캐소올은 언더 라인, 틀, 화살표, 반대색등 특정문자 지시기능이다. 이 위치는 특별한 키이 또는 명령으로 제어할 수 있다.1. Catool output: Catoall is a function for indicating specific characters such as underline, frame, arrow, and opposite color. This position can be controlled by special keys or commands.
2. 라이트·펜입력 : 라이트·펜은 편리한 디바이스이며, 화면에 라이트·펜을 댄위치를 스포트가 통하였을때를 검출하고 플레임의 주사 타이밍에서 화면상의 대략의 위치가 계산된다.2. Light pen input: The light pen is a convenient device. It detects when the spot passes through the position where the light pen is placed on the screen, and the approximate position on the screen is calculated from the frame scanning timing.
CRTC는 제 5도와 같이 캐소올제어, 동기펄스발생, 외부켈렉터·제네레터(7)의 행선택 로직등을 갖추고 있다. 인터페이스에는 이외에 외부 리프레시·메모리(4), 켈렉터·제네레이터(7), 쉬프트(Shift)·레지스터(8)와 비디오 출력부(9)를 포함한 데이터 처리회로가 필요하다.As shown in Fig. 5, the CRTC is equipped with cathode control, synchronous pulse generation, row selection logic of the external
상기 CRTC칩은 여러 반도체회사에서 제작되어 제공되고 있는데, 미국 반도체회사 제품인 모터롤러 #6845의 핀 배치를 보면 제6도와 같으며, 이 기능 다음과 같다.The CRTC chip is manufactured and provided by various semiconductor companies. The pin arrangement of the motor roller # 6845, which is manufactured by a US semiconductor company, is as shown in FIG. 6 and the function thereof is as follows.
켈렉터 제네레이터용 행카운트, 수평·수직 동기신호(HS/VS), 브랭킹신호(BLANK), RAM버퍼용 14비트·리프레시·어드레스를 출력하며, 또 스크로우링과 페이징의 기능을 갖추고 있다.It outputs a row count for the collector generator, a horizontal / vertical sync signal (HS / VS), a blanking signal (BLANK), and a 14-bit refresh address for the RAM buffer. It also has functions of scrolling and paging.
스크로우링이란, 화면에 문자 및 이미지표시가 가득차계면 다음행의 표시를 위하여 최상단 행의 표시를 지워서 전체의 행을 일단씩 위로 쉬프트하고 최하단의 행을 남겨놓는 기능이다. 페이징이란, 마찬가지로 표시가 가득되어 아무 표시입력이 있었을때에 화면전체를 지우고 새로 최상단의 행부터 표시하기 시작하는 기능이다. 캐소올·레지스터, 렉트·펜·레지스터도 갖추고 있고, 외부에 라인·버퍼도 필요로 하지 않는다.When the screen is full of text and image display, the scrolling function removes the display of the top row to display the next row, shifting the entire row up once and leaving the bottom row. Paging is a function likewise, when the display is full and there is no display input, the whole screen is deleted and the new top row is displayed. It also has a cathode register, a direct pen register, and does not require a line buffer externally.
프로그램할 수 있는 특징은 다음과 같다.Programmable features include:
ㅇ 1문자당의 수평, 수직방향 도트수ㅇ Number of horizontal and vertical dots per character
ㅇ 1화면당의 수평, 수직방향 문자수ㅇ Number of horizontal and vertical characters per screen
ㅇ 수평, 수직 동기위치ㅇ Horizontal, vertical sync position
ㅇ 캐소올의 표시ㅇ Marking of cathool
상기 내용은 국내 기전 연구사 발행 "마이크로프 컴퓨터 인터페이스기술"의 페이지 136-137에 기술되어 있는 내용으로 중앙처리장치(이하 "CPU"라 칭함)(1)에서 처리된 문자 데이타가 CPU(1)의 제어에 의해 리플레쉬 메모리(4)에 저장되면CPU(1)의 제어에 의해 CRTC(2)가 멀티플렉서(MUX)(3)을 통해 상기 저장된 리플레쉬 메모리(4)의 내용을 읽어 래치(6)를 통해 캐릭터 제네레이터(7)로 입력된다.The above contents are described on pages 136-137 of "Microcomputer Computer Interface Technology" published by the Korean Mechanics Research Institute. Character data processed by the central processing unit (hereinafter referred to as "CPU") 1 is stored in the
상기 캐릭터 제네레이터(7)는 상기 CRTC(2)에서 발생되는 로우(ROW) 어드레스신호를 받아 캐릭터 제네레이터(7)내에 이미 패턴으로 형성된 문자가 발생된다. 상기 캐릭터 제네레이터(7)에서 발생된 문자가 CRTC(2)에서 발생되는 쉬프트 클럭에 따라 쉬프트레지스터(8)에서 쉬프트되어 비디오 출력부(9)를 통해 CRT(도시하지 않았음)로 입력된다. 상기 CRT는 상기 CRTC(12)에서 발생되는 수직 및 수평동기신호(HS/VS)에 동기되어 CRT상에 문자를 표시시켜 왔었다. 한편, 상기 리플레쉬 메모리(4)의 각 비트는 CRT의 도트와 1:1로 대응되어 있으며, 상기 CRT는 한 라인상에 80자를 써넣어, 24라인을 디스플레이 시킬 수 있는 모드와 한라인상에 40자를 써넣어 24라인을 디스플레이 시킬 수 있는 모드가 있는데, 종래의 CRT장치에서는 상기 두가지 모드를 모두 겸용할 수 있도록 되어 있지 않고, 제공되는 CRT의 사양에 따라 한가지 모드로만 사용할 수 있었다. 특히 CRT로 한글을 디스플레이시에는 한글문자를 발생시킬 수 있는 캐릭터 제네레이터가 제공되는데, 상기 한글모드에서 종래에는 목적에 따라 80자 및 40자 모드를 변환을 할 수 없었기 때문에 원하는 모드로 사용시 하드웨어 구성 자체를 변환교체 시켜야 하는 번거움이 있었다.The
따라서 본 발명이 목적은 80자와 40자 모드를 선택하는데 있어서 각 데이타의 최상위 비트를 상기 모드 선택을 위한 논리로 지정하여 원하는 모드를 자유자재로 선택하여 한글문자를 표시할 수 있는 방법을 제공함에 있다.Accordingly, an object of the present invention is to provide a method for displaying Korean characters by freely selecting a desired mode by designating the most significant bit of each data as a logic for selecting the mode in selecting a 80-character and 40-character mode. have.
본 발명의 다른 목적은 기존이 하드웨어 변경없이 사용되므로 원하는 모드로 저렴하게 고기능의 한글 디스플레이를 할 수 있는 회로를 제공함에 있다.Another object of the present invention is to provide a circuit capable of performing a high-performance Hangul display in a desired mode at a low cost since the conventionally used without changing the hardware.
따라서 상기 목적을 수행하기 위한 본 발명은 문자디스플레이를 제어하는 중앙처리장치와, 상기 중앙처리장치에서 처리된 이미지 데이타를 랜덤 (Ramdom)으로 가지는 비디오램(Video RAM)부와, 상기 비디오램부의 출력 데이타를 버퍼링(Buffering)하며 상기 비디오램부에 저장된 80자 또는 40자 모드에 따라 최상위 비트의 모드지정을 위한 플랙(Flag) 정보를 출력하는 버퍼부와, 상기 버퍼부의 출력신호를 디코딩하여 선택을 위한 한글 및 영문모드 인에이블 신호와 한글초성, 종성 자소를 발생하기 위한 선택데이타를 출력하는 선택부와, 상기 버퍼부와 선택부의 출력에 따라 영문문자 패턴이 발생되는 영문문자 발생기와, 상기 버퍼부와 선택부의 출력에 따라 한글자음·모음 문자패턴이 발생되는 한글문자 발생기와, 상기 한글문자 발생기에서 출력된 데이타를 CRT상에 충분히 표시할 수 있도록 라인드라이빙(Line Driving) 하는 라인버퍼부와, 상기 라인 버퍼부의 출력과 영문자 발생기의 출력을 쉬프트하여 비디오 출력부로 출력하는 쉬프트 레지스터와, 상기 영문, 한글문자 발생기의 어드레스 신호를 공급함과 동시에 상기 CRT로 수직/수평동기 신호를 공급하는 CRT제어기로 구성된 것을 특징으로 하는 회로와, 상기 중앙처리장치에서 지정된 한글 및 영문모드와 한글의 40자 및 80자 모드의 선택정보를 체크하는 제1단계와, 상기 제1단계에서 한글의 40자와 80자 모드에 따라 상기 버퍼부의 최상위 비트값을 산출하는 제2단계와, 상기 제2단계에서 40자 모드시 최상위 비트의 논리에 따라 좌·우측으로 나누어 한글 캐릭터를 형성하는 제3단계와, 상기 제2단계에서 80자 모드시 최상위 비트가 하이일때 2바이트를 현재의 커셔(Cursor) 위치에 완전한 한글이 표시되도록 하는 제4단계로 이루어짐을 특징으로 한다.Therefore, the present invention for performing the above object is a central processing unit for controlling a text display, a video RAM unit having a random image data processed by the central processing unit (RAM) and the output of the video RAM unit A buffer unit for buffering data and outputting flag information for mode designation of the most significant bit according to the 80-character or 40-character mode stored in the video RAM unit, and decoding the output signal of the buffer unit for selection. A selection unit for outputting Korean and English mode enable signals and selection data for generating Korean initial and final phonemes; an English character generator for generating an English character pattern according to the output of the buffer unit and the selection unit; According to the output of the selection unit, the Hangul consonant / vowel character pattern is generated, and the data output from the Hangul character generator A line buffer unit for driving a line sufficiently to be displayed on a CRT, a shift register for shifting the output of the line buffer unit and the output of the English character generator and outputting the video output unit to the video output unit, and the address of the English and Korean character generators A circuit comprising a CRT controller for supplying a signal and a vertical / horizontal synchronization signal to the CRT, and selection information of Korean and English modes and 40 and 80 character modes designated by the central processing unit. A first step of checking, a second step of calculating the most significant bit value of the buffer unit in accordance with the 40-character and 80-character mode of Hangul in the first step, and the logic of the most significant bit in the 40-character mode in the second step. According to the third step of forming a Hangul character by dividing the left and the right, and the second bit when the most significant bit is high in the 80-character mode in the second step And a fourth step of displaying complete Hangul in the position of Cursor.
이하 본 발명의 도면을 참조하여 상세히 설명한다.Hereinafter, with reference to the drawings of the present invention will be described in detail.
제1도는 본 발명에 따른 블럭도로서, 한글 및 영문모드를 체크하며 상기 체크모드에 따라 입력데이타를 프로그램에 따라 처리하여 CRT장치로 출력되도록 각부를 제어하는 중앙처리장치(CPU)와, 상기 중앙처리장치(CPU)에서 처리된 이미지데이타를 랜덤으로 가지는 비디오램부(10)와, 상기 비디오램부(10)의 출력데이타를 버퍼링하며 80자 또는 40자 모드에 따라 최상위 비트의 진정된 플랙신호를 버퍼링하여 출력하는 버퍼부(20)와, 상기 버퍼부(20)에서 출력된 신호를 디코딩하여 한글 및 영문모드 인에이블 신호와 한글 초성, 종성 자소 선택신호를 출력하는 선택부(30)와, 상기 버퍼부(20)에서 발생되는 영문문자 코드와 선택부(30)에서 출력되는 선택 제어신호에 의해 영문문자를 발생시키는 영문문자 발생기(40)와, 상기 버퍼부(20)를 통한 출력되는 데이타와 선택부(30)를 통해 출력되는 데이타를 받아 한글의 자음 ·모음 문자패턴을 발생하는 한글문자 발생기(50)와, 상기 한글문자 발생기(50)에서 출력된 데이타를 CRT상에 충분히 표시할 수 있도록 라인드라이빙(Line Driving)하는 라인버퍼부(60)와, 상기 라인버퍼부(60)이 한글문자 데이타와 영문문자 발생기(40)의 영문문자 데이타를 후술하는 CRT제어기 (70)에서 발생하는 쉬프트클럭에 따라 쉬프트하여 출력하는 쉬프트 레지스터(8)와, 상기 쉬프트 레지스터(8)의 출력이 CRT에 출력되도록 버퍼링하는 비디오 출력부(9)와, 상기 중앙처리장치(CPU)의 데이타 출력과 CRT제어기 (70)에서 발생하는 리플레쉬 어드레스 신호를 선택출력 하는 멀티플렉서 (3)와, 상기 영문·한글문자 발생기(50,60)로 어드레스신호를 공급함과 동시에 CRT로 수직/수평 동기신호를 공급하는 CRT제어기(70)로 구성한다.1 is a block diagram according to the present invention, which checks the Hangul and English modes, and processes the input data according to the check mode according to the program and controls each unit to be output to the CRT apparatus, and the central The
상기한 제1도에서 중앙처리장치(CPU),멀티플렉서(3), 비디오출력부(9), CRT블럭의 구성은 종래기술로 제시된 제5도의 구성과 동일하며, 비디오램부(10)도 제5도에서 리플레쉬 메모리(4)와 동일기능을 가진다. 따라서 중처리장치(CPU)의 라인(701)은 중앙처리장치(CPU)에서CRTC(70)로 어드레스 및 데이타가 공급 되도록 연결되고, CRTC(70)의 라인(705)은 CRT로 수직/동기신호(Vsync/Hsync)가 공급되도록 연결되며, CRTC(70)의 라인(702)는 멀티플렉서(3)로 리플레쉬 어드레스 신호가 공급되도록 연결되고, 중앙처리장치(CPU)의 라인(301)은 멀티플렉서(3)를 통해 비디오램(10)으로 한글/영문문자 발생은 코드데이타와 영문/한글 모드선택 플렉데이타 및 상기 데이타를 처리하기 위한 제어신호가 출력되도록 연결되며, CRTC(70)의 라인(703)은 한글/영문문자 발생기(50, 60)이 로우 어드레스(Row Address)신호 공급단이다.In FIG. 1, the configuration of the CPU, the multiplexer 3, the video output unit 9, and the CRT block are the same as those of FIG. 5 shown in the related art, and the
제2도는 "한"자에 대한 한글 80자 모드와 40자 모드를 표시한 예이다.FIG. 2 is an example of displaying the Korean 80-character mode and the 40-character mode for "Han".
따라서 본 발명의 일 실시예를 상술한 구성에 의거하여 간략히 기술하면, 사용자의 선택에 따라 중앙처리장치(CPU)에서 한글 또는 영문을 선택하고, 한글에서 80자 및 40자모드를 선택하여 상기 선택된 선택플랙 정보를 표시시킬 문자코드와 같이 비디오램부(10)으로 전송한다. 비디오램부(10)에서 한글 또는 영문데이타와 모드 플랙 데이타를 버퍼부(20)로 입력시켜 버퍼링 시킨다. 영문시 버퍼부(20)의 출력된 데이타가 선택부(30) 에서 영문을 발생하도록 인에이블신호가 발생된다.Therefore, if one embodiment of the present invention is briefly described on the basis of the above-described configuration, according to the user's selection, Korean or English is selected by the central processing unit (CPU), and 80 and 40 character modes are selected by the Korean. The selected flag information is transmitted to the
또는 중앙처리장치(CPU)는 영문처리에 따른 제어신호를 CRTC(70)에 입력 하면 CRTC(70)는 로우 어드레스를 발생하여 영문문자 발생기(40)에 입력한다. 이때 영문문자 발생기(40)에서는 영문문자 데이타를 발생시켜 쉬프트레지스터(70)에 입력할시 CRTC(70)에서 발생하는 쉬프트를럭에 따라 쉬프트레지스터(8)에서 리프트되어 비디오 출력부(9)를 통해 CRT로 입력하면 영문문자가 CRT상에 표시된다.Alternatively, the central processing unit (CPU) inputs a control signal according to the English processing to the
한편 한글문자 처리시는 중앙처리장치(CPU)가 한글모드를 인식하고 난후 80자 모드인지 40자 모드인지를 체킹한다. 상기 80자 모드 및 40자 모드에 따라 CRTC(70)로 제어신호를 인가하여 CRT로 공급되는 수직/수평 동기신호의 주파수를 변환시켜 한글문자 표시에 따른 동기를 맞춘다. 그리고 중앙처리장치(CPU)는 멀티플렉서(3)를 통해 비디오램부(10)으로 한글문자 표시를 위한 데이타 코드와 모드설정용 플랙정보와 함께 비디오램부(10)에 저 장한다.On the other hand, when processing Hangul characters, the CPU recognizes the Hangul mode and checks whether it is in 80 or 40 character mode. The control signal is applied to the
예를들어, 한글 40자 모드시 비디오램부(10)에서 저장된 데이타 및 모드설정용 플랙 데이타가 버퍼부(20)에서 버퍼링된다. 상기 버퍼(20)에서 출력된 데이타중 최상위비트가 "로우"일때 제2(b)도의 왼쪽의 반쪽 글자에 해당하는 글자의 폰트(Font)를 구성하게 되고, 최상위 비트가 "하이"일때 나머지 반쪽 글자에 해당하는 글자의 폰트를 구성하여 한글을 디스플레이 하는데, 이를 위하여 선택부(30)에서 먼저 한글 인에이블 신호를 출력하여, 한글 초성, 종성 결정을 자음자소를 선택하고, 중앙처리장치(CPU)에서 공급되는 제어신호에 의해 CRTC(70)에서는 CRT로 공급하는 수직/수평 동기신호를 제어하여 40자 모드에 따른 동기를 맞추는 한편, 한글문자 발생기(50)에 로우어드레스 신호를 인가하여 버퍼부(20)에서 출력되는 한글코드 데이타에 따라 한글문자 발생기(50)에서 해당 한글자소 문자데이타가 발생된다.For example, in the 40-character Korean mode, the data stored in the
이때 이 데이타가 라인 버퍼부(60)를 통해 원하는 한글로 조합되어 쉬프트 레지스터(8)에 입력할시 CRTC (70)에서 발생하는 쉬프트 클럭에 의해 쉬프트되어 비디오 출력부(9)를 통해 CRT에 입력하면 40자 모드에 맞도록 동기되어 CRT상에 표시된다.At this time, when the data is combined into the desired Hangul through the line buffer unit 60 and input to the
제3도는 본 발명에 따른 제 1도의 구체회로도로서, 제3도중 VRAM1-VRAM2는 비디오램, BUF1-BUF2는 버퍼, NA1-NA3는 낸드(NAND)게이트, AN1은 앤드(AND)게이트, MUX1-MUX2는 멀티플렉서, OR-ORl7은 오아(OR)게이트, CG1, CG3은 한글 자음캐릭터 제네레이터, CG2, CG4은 한글모음 캐릭터 제네레이터, CG5-CG6은 알파벨문자(영문) 캐릭터 제네레이터, CRTC는 CRT제어기(CRT Controller), "BL1-BL2는 버퍼 라인드라이버이며, 상기 비디오램(VRAMI-VRAM2)은 일반적으로 많이 제공되고 있는 DRAM이며 충분하고, 버퍼(BUF1-BUF2)은 일반 라인버퍼이면 가능하다.FIG. 3 is a detailed circuit diagram of FIG. 1 according to the present invention, in which VRAM1-VRAM2 is a video RAM, BUF1-BUF2 is a buffer, NA1-NA3 is a NAND gate, AN1 is an AND gate, and MUX1-. MUX2 is multiplexer, OR-ORl7 is OR gate, CG1, CG3 is Hangul consonant character generator, CG2, CG4 is Hangul vowel character generator, CG5-CG6 is Alpha Bell character generator, CRTC is CRT controller CRT Controller) " BL1-BL2 is a buffer line driver. The video RAM VRAMI-VRAM2 is a DRAM that is generally provided and sufficient, and the buffers BUF1-BUF2 can be a general line buffer.
그리고 멀티플렉서(MUX1)는 74LS139이고, CG2,CG4,CG5-CG6#2764이고, CG1,CG3 #27128이다. 버퍼라인 드라이버(BL1-BL2)는 74LS244이면 충분하다. 비디오램(VRAM1, VRAM2)으로 구성된 부분이 제1도의 비디오램부(10)에 대응하고, 버퍼(BUF1, BUF2)로 구성된 부분이 버퍼부(20)에 대응하며, 낸드게이트(NA1-NA3), 오아게이트(OR1), 앤드게이트(AN1), 멀티플렉서(MUX1-MUX2)로 구성된 부분이 선택부(30)에 대응하고, 알파벳(영문) 캐릭터 제네레이터(CG5,CG6)로 구성된 부분이 제1도의 영문문자 발생기(40)에 대응하며, 한글자음 캐릭터 제네레이터(CG1,CG3). 한글모드 캐릭터 제네레이터(CG2,CG4)로 구성된 부분이 한글문자 발생기(50)에 대응하고 오아게이트(OR2-ORl7), 버퍼라인(BL1-BL2)로 구성된 부분이 라인버퍼부(60)에 대응하고, CRTC는 제1도와 동일하다.The multiplexer MUX1 is 74LS139, CG2, CG4, CG5-CG6 # 2764, and CG1, CG3 # 27128. 74LS244 is sufficient for the buffer line drivers BL1-BL2. The portion composed of the video RAMs VRAM1 and VRAM2 corresponds to the
따라서 CRTC(70)의 로우어드레스라인(RA0-RA3)이 한글/영문캐릭터 제네레이터(CG1-CG6)의 어드레스라인과 연결되고, 상기 CRTC(70)의 로우어드레스라인(RA3)이 상기 선택부(30)의 앤드게이트(AN1)의 입력단에 연결된다. 선택부(30)의 멀티플렉서(MUX1)의 출력단(Q1)이 영문 캐릭터 제네레이트(CG5,CG6)의 출력인에이블단(OE)에 연결되며, 버퍼(BUF1)은 최상위 비트 출력단(Dl5)이 한글 자/모음 캐릭터 제네레이터(CG1-CG4)의 최상위 어드레스라인(A11,Al3)에 각각 연결된다. 그리고 상기 버퍼(BUF1-8UF2)의 출력단이 멀티플렉서 (MUX2)의 입력단에 연결되며, 상기 버퍼(BUF2)의 출력단이 영문 캐릭터 제네레이터(CG5-CG6)의 어드레스단에 연결된다.Therefore, the low address line RA0-RA3 of the
상기 버퍼(BUF2)의 출력을 받은 오아게이트(OR1)의 출력단이 앤드게이트(AN1)의 입력단에 연결되며, 상기 앤드게이트(AN1)는 상기 오아게이트(OR1)의 출력과 상기 CRTC(7D)의 로우어드레스라인(RA3)의 출력을 받아 멀티플렉서(MUX2)의 선택단(5)을 제어하여 양입력을 선택출력 하도록 되어 있다. 그리고 버퍼(BUF1)를 통해 출력되는 데이타에 따라 한글과 영문에 따른 모드를 결정하는데, 우선 제1도에 도시된 바와 같이 중앙처리장치(CPU)로부터 모드설정용 플랙데이타를 비디오램부(10)를 통해 버퍼(BUF1)에 입력하면 버퍼(BUF1)에서 모드선택 데이타가 발생된다. 이때 버퍼(BUF1)의 출력단에 연결된 전드게이트(NAI,NA2)로 부터 출력되는 출력신호에 따라 결정되는데. 낸드게이트(NA1,NA2)의 출력단이 멀티플렉서(MUX1)의 입력단(A0,A1)에 연결되고, 상기 멀티플렉서(MUX1)의 출력단()이 "로우"일때 인에이블단()이 "로우"가 되어 인에이블되면 상기 멀티플렉서(MUX1)의 출력단(Q1)이 "로우'가 되어 영문 캐릭터 제네레이터(CG5,CG6)의 출력 인에이블단()을 인에이블 한다. 이때 영문문자가 발생하도록 선택한다. 상기 버퍼(BUF1)의 출력단(Dl4,Dl3)이 모두 "로우"일때 낸드게이트(NA1)의 출력은 "하이"이므로 저항(Rl)을 통한 낸드게이트 (NA3)의 타입력단이 "하이"이므로 저항(Rl)을 통한 낸드게이트(NA3)의 타입력단이 "하이"이므로 낸드게이트(NA3)의 출력은 "로우"가 되어 버퍼라인 드라이버(BL1-BL2)의 출력 인에이블단()을 인에이블하므로 한글 자/모음 캐릭터 제네레이터(CG1-CG4)에서 발생된 한글이 오아게이트(OR2-OR17)을 통해 원하는 한글형태로 조합되어 버퍼 라인드라이버(BL1-BL2)을 통해 버퍼링 된 후 제1도의 쉬프트레지스터(8)로 출력 되도록 구성되어 있다.An output terminal of the OR gate OR1 receiving the output of the buffer BUF2 is connected to an input terminal of the AND gate AN1, and the AND gate AN1 is connected to the output of the OR gate OR1 and the CRTC 7D. The output of the low address line RA3 is controlled to control the
제4도는 본 발명에 따른 흐름도로서, 지정된 한글·영문모드와 한글의 40자 및 80자 모드를 체크하는 제1단계와, 상기 제1단계로부터 한글의 자수(80/40자)모드에 따라 상기 디스플레이시킬 데이타의 최상위 비트간을 산출하는 제2단계와, 상기 제2단제로부터 40자 모드시 산출되는 최상위 비트의 결정논리에 따라 한글캐릭터의 자·우 폰트를 결정하는 제3단계와, 제2단계로부터 80자 모드시 산출되는 최상위 비트의 결정 논리에 따라 현재 커서위치에 한글폰트를 결정하는 제4단계와, 상기 제3,4단계에서 결정한 한글문자의 데이타를 출력하는 제5단계로 이루어져 있다.4 is a flow chart according to the present invention, the first step of checking the specified Hangul, English mode and 40-character and 80-character mode of Hangul, and according to the embroidery (80/40 characters) mode of Hangul from the first step A second step of calculating the most significant bit of data to be displayed; a third step of determining a Korean character font according to the decision logic of the most significant bit calculated in the 40-character mode from the second stage; A fourth step of determining the Korean font at the current cursor position according to the decision logic of the most significant bit calculated in the 80 character mode from the second step, and a fifth step of outputting data of the Hangul characters determined in the third and fourth steps; have.
따라서 본 발명의 구체적 일 실시예를 제1-3도의 구성과 제4도의 흐름도에 의거하여 상세히 설명하면, 사용자(USER)가 키보드를 통해 한글과 영문을 선택하고, 한글에서 40자와 80자 모드를 지정할시 지정명령어가 중앙처리장치(CPU)로 입력되어 영문/한글 및 80/40자 모드에 해당하는 정보플랙 및 문자코드 데이타가 멀티플렉서(3)를 통해 비디오램부(10)에 데이타와 함께 저장됨과 동시에 중앙처리장치(CPU)가 CRTC(70)를 제어하여 모드에 맞는 동기신호를 발생하도록 제어한다. 즉, 중앙처리장치(CPU)는 제4도 본 발명의 흐름도의 (ㄴ)과정에서 영문인지 한글인지를 체크하고, (ㄹ)과정에서 40자 모드인지 80자 모드인지를 체크한다. 상기 (ㄴ)과정에서 영문일 경우 중앙처리장치(CPU)는 영문처리를 위해 모드선택 플랙신호를 멀티플렉서(3)를 통해 비디오램부(10)의 제3도의 비디오램(VRAM1)의 소정영역에 저장한다. 상기 비디오램(VRAM1)에 저장되면 버퍼(BUF1)의 출력단(Dl3,Dl4)이 "하이"가 되어 낸드게이트(NA1)의 출력은 "로우"가 되고 멀티플럭서 (MUX1)의 출력단()으로 "로우"가 출력되어 영문캐릭터 제네레이터 (CG5,CG6)의 출력 인에이블단(OE)을 인에이볼 시킨다.Therefore, a specific embodiment of the present invention will be described in detail with reference to the configuration of FIGS. 1-3 and the flowchart of FIG. Designation command is inputted to the central processing unit (CPU), and information flags and character code data corresponding to English / Korean and 80/40 character modes are stored in the
그리고 낸드게이트(NA3)의 출력은 "하이"가 되어 버퍼라인드라이버(BL1-BL2)의 출력 인에이블단(OE)을 디스에이블 시킨다. 이에 따라 상기 한글 자/모음 캐릭터 제네레이터(CG1-CG4)에서 혹시 문자데이타가 되더라도 출력되지 않는다. 따라서 상기와 같이 중앙처리장치(CPU)에서 처리되어 저장된 비디오램(VRAM2)의 출력데이타가 버퍼(BUF2)에서 버퍼링되어 출력단(D0-D7)을 통해 영문캐릭터 제네레이터(CG5-CG6)의 어드레스라인(A5-Al2)으로 입력되고, 또 한편 CRTC(70)에서 발생하는 로우어드레스신호(RA0-RA3)가 상기 영문캐릭터 제네레이터(CG5-CG6)의 어드레스라인(A0-A3)으로 입력될때 이때 영문문자 캐릭터 제네레이터(CG5,CG6)의 어드레스를 지정함으로써 영문문자가 발생된다.The output of the NAND gate NA3 is " high " to disable the output enable end OE of the buffer line drivers BL1-BL2. Accordingly, even if the character data in the Hangul / vowel character generators CG1-CG4 is not outputted. Therefore, as described above, the output data of the video RAM VRAM2 processed and stored in the CPU is buffered in the buffer BUF2 and the address line of the English character generator CG5-CG6 through the output terminals D0-D7. A5-Al2), and when the low address signal RA0-RA3 generated by the
상기 영문문자 캐릭터 제네레이터(CG5,CG6)의 출력단(DD0-DDl5)에서 발생된 영문문자는 제1도의 쉬프트레지스터(8)에 입력되어 CRTC(70)에서 제공되는 쉬프트 플럭에 따라 쉬프트되어 출력된다. 상기 쉬프트된 영문문자 신호는 비디오출력부(9)를 통해 CRT에 표시되는데, 상기 CRT는 상기 CRTC(70)로부터 공급되는 동기신호에 따라 CRT상에 영문문자가 디스플레이 된다. 그러나 (ㄴ)과정에서 한글일시 중앙처리장치(CPU)는 멀티플에서(3)을 통해 비디오램부(10)의 제3도의 비디오램(VRAM1)에 한글문자 처리에 따른 지정 플랙 세팅하고, (ㄹ)과정에서 40자 모드인지 80자 모드인지를 체크한다. 상기 (ㄹ)과정에서 40자 모드시 중앙처리장치(CPU)는 멀티플렉서(3)를 통해 비디오램(10)로(ㅁ)과정에서 제2(b)도와 같은 형태로 디스플레이 시키기 위해 커서의 위치를 중앙처리장치(CPU)에서 계산하여 지정데이타를 멀티플렉서(3), 비디오램(VRAM1, VRAM2)으로 출력한다. 그러나, 실제 일어나는 동작은 데이타의 출력과 거의 동시에 일어난다. 왜냐하면, 한글 40자 모드로 동작될 경우 한글의 한문자를 화면에 디스플레이 시키기 위해서는 화면에 디스플레이 시킬 한글표시용 데이타가 2개의 워드(4byte)로써 구성되어 있으므로 제1데이타(1워드)는 제 2(b)도의 왼쪽부분에 대한 데이타가 되고, 제 2데이타(2워드)는 제2(b)도의 오른쪽 부분에 데이타가 되며, 제2(b)도와 같은 40자 모드시 2워드 구성한 한글문자의 좌·우데이타에 대해 지정이 필요하게 된다.The English characters generated at the output terminals DD0-DDl5 of the English character generators CG5 and CG6 are inputted to the
상기 제1데이타를 디스플레이 데이타 1이고, 제2데이타를 디스플레이 데이타 2라고 할때 중앙처리장치(CPU)는(ㅁ)과정에서 상기 디스플레이 데이타 1의 2바이트 데이타(A)에다 7FFFH를 곱한다. (A and 7FFF) 상기 (ㅁ)과정에서 곱한 값으로부터 최상위비트(MSB)를 "0"로 하고, 이어서 (ㅂ)과정에서 상기 디스플레이 데이타 2의 계산한다.When the first data is the
여기서는 커셔위치의 한글 2바이트 데이터 (B)에 8000H를 더하여 (B·OR· 8000H)를 더한다. 상기 (ㅂ)과정의 처리한 더한 값으로부터 최상위비트(MSB) "1"로 한다.In this example, 8000H is added to Hangul two-byte data (B) at the cursor position, and (B, OR, 8000H) is added. The most significant bit MSB is " 1 "
따라서 중앙처리장치(CPU)는 상기 (ㅁ, ㅂ)과정에서 연산한 디스플레이 데이타 1,2의 값을 멀티플렉서(3)을 통해 비디오램부(10)의 비디오램(VRAM1,VRAM2)에 저장한다. 그리고 상기 (ㄹ)과정에서 중앙처리장치(CPU)가 80자 모드를 인식했다면 제2(a)도와 같은 문자를 디스플레이 시키기 위해서는 한글 표시용 데이타를 (o)과정에서 현재 커셔 위치의 한글 2바이트 (A)에 8000H를 더한다. 상기 (o)과정에서 더한 값으로부터 최상위 비트(MSB)를 1로 하여 멀티플렉서(3)을 통해 비디오램부(10)의 비디오램(VRAM1,VRAM2)에 저장된다. 상기 비디오램(10)의 비디오램(VRAM1)에는 영문/한글 지정 및 80/40모드설정 플랙정보비트가 저장된다. 그리고 비디오램(VRAM1)외 남은 부분과 비디오램(VRAM2)에 디스플레이용 영문/한글 표시용 코드데이타가 저장된다.Therefore, the central processing unit (CPU) stores the values of the
따라서 상기 비디오램(VRAM1-VRAM2)에 저장된 데이타와 해당모드의 데이타가 CRT로 출력되는데, 한글모드중 40자 모드시 비디오램(VRMA1)이 출력을 버퍼링한 버퍼(BUF1)이 출력단(Dl5)이 "1" 또는 "0'에 따라 제 2(b)도의 좌·우측이 표시용 데이타를 지정하구 버퍼(BUF1)이 출력단(Dl4)의 값이 "로우"일때 낸드게이트(NA1)의 출력은 "하이"가 되어 낸드게이트(NA3)의 출력은 "로우'가 된다. 이때 버퍼 라인드라이버(BL1-BL2)는 출력을 내는 인에이블 상태로 되며, 상기 낸드게이트(NA1)의 출력이 "하이"가 되어 얼티 플렉서(MUX1)에 입력되면 멀티플렉서(MUX1)의 출력단()이 "하이"된다. 이때 영문 캐릭터 제네레이터(CG5,CG6)의 출력 인에이블단()이 디스에이블 상태로되어 영문문자 발생이 차단된다.Accordingly, the data stored in the video RAMs VRAM1 to VRAM2 and the data of the corresponding mode are output to the CRT. In the 40-character mode of the Hangul mode, the buffer BUF1 buffered the output of the video RAM VRMA1 is output to the output terminal D5. According to " 1 " or " 0 ", the left and right sides of the second (b) designate display data, and when the buffer BUF1 has the value of the output terminal Dl4 as "low", the output of the NAND gate NA1 is " High ", and the output of the NAND gate NA3 is" low ". In this case, the buffer line drivers BL1-BL2 are enabled to output an output. When the output of the NAND gate NA1 becomes “high” and is input to the multiplexer MUX1, the output terminal of the multiplexer MUX1 ( ) Is "high". At this time, the output enable stage of the English character generator (CG5, CG6) ) Is disabled and English characters are blocked.
그리고 상기 버퍼 (BUF1,BUF2)의 출력단(DO-D4,D10-Dl4)의 출력이 멀티플렉서(MUX2)에 입력되어 선택됨과 동시에 상기 버퍼(BUF2)의 출력단(D0-D4)의 출력을 오아게이트(ORI)에 논리 합하여 한글자음 캐릭터 제네레이터(CGI,CG3)의 어드레스신호(Al2,Al3)로 입력되어 한글자음중 초성자음과 종성자음을 지정함과 동시에 한글모음 캐릭터 제네레이터(CG2,CG4)의 어드레스신호(A10)로 입력된다. 그리고 상기 오아게이트(OR1)의 출력신호가 앤드게이트(AN1)에 입력되어 상기 CRTC(70)에서 발생되는 로우 어드레스신호(RA3)의 출력에 따라 멀딕플렉서(MUX2)에 상기 버퍼 (BUFI,BUF2)의 출력단(D0-D4,D10-Dl4)의 출력을 선택한다. 따라서 상기 어드레스 신호가 상기 한글 자음 캐릭터 제네레이터(CG1,CG3)이 어드레스신호로 공급되어질시 한글의 자소중 자음에 대해 같은 자음이라도 초성자음과 종성자음이 다르게 발생되도록 한다. 그리고 상기 버퍼(BUF1,BUF2)의 출력단(B5-D7,D8-D9)의 출력이 상기 한글 자음/모음 캐릭터 제네레이트(CG1-CG4)에 각각 입력될때 상기 이미 멀티플렉서(MUX2), 오아게이트(OR1)로부터 받은 출력과 같이 상기 한글캐릭터 제네레이터(CG1-CG4)의 어드레스신호에 의해 지정된 신호에 따라 한글 문자가 발생되어 오아게이트(OR2-ORl3)에서 조합된다. 상기 조합된 한글문자 데이타가 버퍼 라인드라버(BL1-BL2)에 드라이빙되어 쉬프트레지스터(8)에 입력된다.The outputs of the output terminals DO-D4 and D10-Dl4 of the buffers BUF1 and BUF2 are input to the multiplexer MUX2 and are selected. ORI) is input to the address signal (Al2, Al3) of the Hangul consonant character generator (CGI, CG3) to designate the initial consonant and the final consonant among Hangul consonants, and at the same time the address signal of the Hangul vowel character generator (CG2, CG4) It is inputted as (A10). In addition, the output signal of the OR gate OR1 is input to the AND gate AN1, and the buffers BUFI and BUF2 are supplied to the muldiplexer MUX2 according to the output of the row address signal RA3 generated by the
상기 쉬프트레지스터(8)에서는 CRTC(70)에서 발생되는 쉬프트클럭에 위해 쉬프트되어 비디오출력부(9)를 지나CRT에 디스플레이 된다. 그런데 중앙처리장치(CPU)는 상기와 같이 80/40자 모드에 따라 디스플레이 할 데이타에 따라 비트를 세팅하지만 CRTC(70)로 제어신호를 보내어 CRTC(70) 내부의 소정의 레지스터에 모드에 따라 알맞은 CRT이 수직/수평동기 주파수를 발생하도록 지정값을 세팅한다. 상기한 표시할 문자의 크기 및 모드에 따라 수직/수평동기 주파수 달라져야 함을 널리 알려진 공지의 사실로 여기서도 CRTC(70)는 중앙처리장치(CPU)에서 지정하는 80자 및 40자 모드에 따라 수직/수평의 동기가 다른 주파수가 발생되어 CRT 에 공급된다.In the
한편 제2(a)도와 같은 80자 모드인 경우 한글 2바이트 모드의 취상위 비트가 "1"이므로 버퍼(BUF1)의 출력단(Dl5)의 상태가 "1"의 상태로 계속 출력되며, 중앙처리장치(CPU)의 제어에 의해 CRTC(70)에서 발생되는 수직/수평동기 주파수가 다르게 CRT에 공급된다. 그리고 80자 모드의 한글문자 발생은 상기 40자 모드와 동일한 방법으로 랜드게이트(NA3)의 출력에 의해 버퍼 라인드라이버(BL1-BL2)을 인에이블하고 멀티플렉서(MUX1)의 출력단(Q1))의 출력에 의해 영문 캐릭터 제네레이터(CG5,CG6)을 디스에이블 한후, 멀티플렉서(MUX2)의 출력에 의해 한글 캐릭터 제네레이터 (CG1,CG3)에서 초성 종성 자소에 대한 문자를 선택하여 버퍼(BUF1,BUF2)로부터 출력되는 데이타에 따라 상기 한글 캐릭터 제네레이터(CG1-CG4)의 어드레스를 지정하므로 해당 한글문자가 발생되어 오아게이트(OR2-OR17)에 조합된다.On the other hand, in the 80-character mode as shown in FIG. 2 (a), since the pseudo-bit of the Hangul 2-byte mode is "1", the state of the output terminal Dl5 of the buffer BUF1 is continuously output with the state of "1". Under the control of the device CPU, the vertical / horizontal synchronization frequency generated in the
상기 오아게이트(OR2-OR17)에서 조합된 한글문자 발생데이타가 버퍼라인드라이버(BL1-BL2)에서 드라이빙 되어 쉬프트레지스터(8)에 입력되는 CRTC(70)에서 발생되는 쉬프트클럭에 따라 쉬프트되어 비디오 출력부(9)를 통해 CRT로 공급되는 수직/수평 동기클럭에 따라 동기되어 현재 커서위치에 제2(a)도와 같이 80자 모드의 한글문자가 디스플레이 된다.상술한 바와같이 한글 80자 모드를 이용하는 기준 하드웨어를 변경하지 않고 단지 문자발생기만을 이용하여 한글 40자, 한글 80자를 각각 선택하여 쓸 수 있는 이점이 있다.The Hangul character generation data combined in the OA gate (OR2-OR17) is driven by the shift clock generated by the
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019860005402A KR890004056B1 (en) | 1986-07-04 | 1986-07-04 | Mode conversion method and circuits for hangeul character display |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019860005402A KR890004056B1 (en) | 1986-07-04 | 1986-07-04 | Mode conversion method and circuits for hangeul character display |
Publications (2)
Publication Number | Publication Date |
---|---|
KR880002070A KR880002070A (en) | 1988-04-28 |
KR890004056B1 true KR890004056B1 (en) | 1989-10-18 |
Family
ID=19250935
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019860005402A KR890004056B1 (en) | 1986-07-04 | 1986-07-04 | Mode conversion method and circuits for hangeul character display |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR890004056B1 (en) |
-
1986
- 1986-07-04 KR KR1019860005402A patent/KR890004056B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR880002070A (en) | 1988-04-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4203107A (en) | Microcomputer terminal system having a list mode operation for the video refresh circuit | |
EP0071725A2 (en) | Method for scrolling text and graphic data in selected windows of a graphic display | |
KR880008124A (en) | Method and apparatus for selecting, memorizing, and displaying Chinese characters | |
US5539428A (en) | Video font cache | |
JP2797435B2 (en) | Display controller | |
EP0349145B1 (en) | Flat panel display attribute generator | |
KR890004056B1 (en) | Mode conversion method and circuits for hangeul character display | |
EP0251811A2 (en) | Flat panel display control apparatus | |
EP0258825A2 (en) | Display control apparatus with improved attribute function | |
US5357264A (en) | Display controller for dot matrix display | |
US5699498A (en) | Technique and apparatus for color expansion into a non-aligned 24 bit RGB color-space format | |
JP3017882B2 (en) | Display control system | |
JPH07234773A (en) | Display controller | |
KR880002118B1 (en) | Letter processor | |
US4931958A (en) | Display system with fewer display memory chips | |
KR890002284B1 (en) | Hangeul character code conversion method and the apparatus | |
JP2625221B2 (en) | Image display device | |
EP0128289A2 (en) | Display of graphics using a non-all points addressable display | |
JP3319031B2 (en) | Display device | |
JPH07281634A (en) | Liquid crystal display | |
JPH023099A (en) | Display device | |
JP3074378B2 (en) | Display control method and device | |
EP0177889A2 (en) | CRT display control apparatus | |
KR940011657B1 (en) | Image synthesizer and method thereof | |
KR900008816B1 (en) | Up/down and right/left moving circuit at image apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
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: 20020930 Year of fee payment: 14 |
|
LAPS | Lapse due to unpaid annual fee |