crt/plasma display controller

Abstract: According to this invention, in a display system having a CRT controller for arbitrarily and selectively display-driving a plasma display (23) and a CRT display (25), display fonts inherent to the displays are pre­ pared, and a display font corresponding to the display is selectively used and displayed in accordance with a display to be display-driven. The fonts include a plurality of types of graphics and text fonts, and are selectively used. As the text font, a single font and a double font are selectively used. When a display mode of the plasma display having a ratio of the number of dots in the vertical direction to that in the horizontal direction different from that of the CRT display is set, a specific raster of the display screen is scanned twice to stretch an image.

Description: The present invention relates to a display controller for CRT and plasma display apparatuses. Along with the development of microcomputers, a variety of personal computers have been developed. Some microcomputers employ plasma display apparatuses as a display apparatus. The plasma display apparatus is controlled by a controller for a CRT display apparatus (to be referred to as a CRT controller hereinafter). Meanwhile, a cathode ray tube (CRT) display apparatus is widely used as a display apparatus. Therefore, a variety of application programs have been developed for CRT display apparatuses. A demand has arisen for effective use of such software resources. That is, a plasma display apparatus is used as a main display apparatus, and a CRT display apparatus is connected as an option, so that the two types of display apparatuses are selectively used in accordance with application programs. In this case, when an application program for a CRT display apparatus is to be displayed using a plasma display apparatus, an error occurs. The CRT display apparatus can desirably change a dot size. However, the plasma display apparatus has a fixed dot size, and cannot change it. Therefore, when display is made in various display modes of different display resolutions, the CRT display apparatus can cope with this, but the plasma display apparatus cannot do so. For this reason, when a ratio of the number of dots in the vertical direction to that in the horizontal direction of a display screen of the CRT display apparatus is different from that of the plasma display apparatus, an actual image on the display screen of the plasma display apparatus is distorted, resulting in poor visual recognition property. In addition, a display font of the plasma display apparatus is also distorted, resulting in poorer visual recognition property. An apparatus in which a character generator "stretches" individual characters to improve readability is disclosed in DE-A- 2 213 953. It is an object of the present invention to provide a CRT/plasma display controller, which can obtain an optimal display font in either CRT or plasma display apparatus, and is free from distortion of a display screen regardless of different display resolutions. In order to achieve the above object, an apparatus as specified in claim 1 and a method as specified in claim 8 are provided. Preferred embodiments are defined in dependent claims. This invention can be more fully understood from the following detailed description when taken in conjunction with the accompanying drawings, in which: Other objects and features of the present invention will be apparent from the following description taken in connection with the following figures in which: Fig. 1 is a block diagram showing an embodiment of the present invention; Figs. 2A through 2C are flow charts of a display control processing program stored in a ROM shown in Fig. 1; Fig. 3 is a flow chart showing in detail 640 x 350 graphics mode processing shown in Fig. 2B; Fig. 4 is a flow chart showing in detail 640 x 400 graphics mode processing shown in Fig. 2B; Fig. 5 is a flow chart showing in detail a text mode shown in Fig. 2B; Fig. 6 is a flow chart showing in detail double/single switching processing shown in Fig. 2C; Fig. 7 is a flow chart showing in detail PDP key processing shown in Fig. 2C; Fig. 8 is a flow chart showing in detail CRT key processing shown in Fig. 2C; Fig. 9 is a flow chart showing in detail stretch key processing shown in Fig. 2C; Figs. 10A through 10C are views showing display screens of CRT and plasma display apparatuses; Figs. 11A and 11B are views showing detailed stretch processing; Fig. 12 is a view showing a storage example of a display character font in a text mode; and Fig. 13 is a view showing the relationship between various display modes and flags in the embodiment of the present invention. An embodiment of the present invention will now be described with reference to the accompanying drawings. Fig. 1 is a block diagram showing an embodiment of the present invention. Referring to Fig. 1, central processing unit (CPU) 1 is connected to system bus 3, and executes processing as shown in Figs. 2A through 9. Read only memory (ROM) 5 is connected to system bus 3, and stores processing programs as shown in Figs. 2A through 9, executed by CPU 1, such as basic input/output program (BIOS) for a CRT display apparatus, a BIOS for a keyboard, and the like. ROM 5 also stores font pattern data having predetermined matrix arrangements (in this embodiment, 8 × 8 dots, 8 × 14 dots, and 8 × 16 dots). Main memory 7 comprises a random access memory (RAM), and is connected to system bus 3. RAM 7 has registers storing flag data. The flag data are as follows: i) CRT flag (FC) 9 indicating a display mode for a CRT display apparatus (to be referred to as a CRT mode) or for a plasma display apparatus; ii) double flag (FD) 11 indicating whether a display character font in a text mode (to be described later) is a single font of a reference line width (1-dot width; thin line) or a double font of a wider line width (bold) than the single font; iii) graphics flag (FG) 13 indicating a text or graphics mode; iv) stretch flag (FS) 15 indicating whether or not a display character font in the graphics mode is also in a stretch mode; v) stretch enable flag (FE) 17 indicating an enable/disable state of a stretch operation Keyboard (KB) 19 is connected to system bus 3 via keyboard controller (KBC) 21, and supplies data corresponding to a depressed key to CPU 1 via system bus 3. In this embodiment, keyboard 19 includes a double/single switch key for switching a display character font (single font/double font) in a text mode, a PDP switch key for instructing the switching from the CRT mode to a PDP mode, a CRT switch key for instructing the switching from the PDP mode to the CRT mode, a stretch switch key for switching a display mode (stretch mode/normal mode) of plasma display (PDP) 23 to a graphics mode, and the like. PDP 23 displays image data from V-RAM 29 under the control of CRT controller (CRTC) 27 in the same manner as in CRT display apparatus (CRT) 25. Display modes of the PDP include display mode A of 640 (horizontal) × 350 (vertical) dots shown in Fig. 10A, and default display mode B of 640 (horizontal) × 400 (vertical) dots shown in Fig. 10B. In display modes A and B shown in Figs. 10A and 10B, the numbers of dots in the vertical direction are different at a ratio of 350 : 400 = 7 : 8. The ratio of the number of dots in the vertical direction to that of dots in the horizontal direction on the display screen (horizontal × vertical = 640 × 400) of default display mode B coincides with the CRT screen shown in Fig. 10C. Therefore, a figure displayed in default display mode B of Fig. 10B coincides with a figure displayed on the display screen of CRT 25 shown in Fig. 10C. However, in display mode A shown in Fig. 10A, the figure is compressed in the vertical direction at a ratio of 7 : 8. In the embodiment of the present invention, raster stretch by 7th-dot double scan is performed as shown in Figs. 11A and 11B only in display mode A in accordance with stretch display control (to be described later), so that a displayed figure in display mode A is approximated to that on CRT display 25. Fig. 12 shows a storage state of display character fonts used in the text mode. In this embodiment, in the text mode, specific memory plane A (e.g., second plane of first to fourth planes) on V-RAM 29 is used as a display character font storage section for CRT 25, and another specific plane B (e.g., third plane) B is used as a display character font storage section for PDP 23. For PDP 23, two types of fonts, e.g., single and double fonts, are stored in units of blocks. Fig. 13 shows the relationship between various display modes and flags in the embodiment of the present invention. Symbols in Fig. 13 have the following meanings: TEXT-PDP-S: representing a case wherein the text mode and the single-font display mode are selected in the PDP. TEXT-PDP-D: representing a case wherein the text mode and the double-font display mode are selected in the PDP. TEXT-CRT: representing a case wherein the text mode is selected in the CRT. GRAPH-PDP-400: representing a case wherein the graphics mode and a display screen (default screen) in display mode B (640 × 400) are selected in the PDP. GRAPH-CRT-400: representing a case wherein the graphics mode and a display screen (default screen) in display mode B (640 × 400) are selected in the CRT. GRAPH-PDP-350: representing a case wherein the graphics mode and a display screen (default screen) in display mode A (640 × 350) are selected in the PDP. GRAPH-CRT-350: representing a case wherein the graphics mode and a display screen (default screen) in display mode A (640 × 350) are selected in the CRT. The embodiment of the present invention will be described hereinafter with reference to Figs. 1 through 13. Fig. 2 is a flow chart showing processing of the PDP/CRT controller of the present invention. In step 41 in Fig. 2, CPU 1 reads out the content of RAM 7. CPU 1 checks in step 43 if the content read out from RAM 7 corresponds to the CRT mode or plasma display (PDP) mode. If YES in step 43, CPU 1 sets "1" representing the CRT mode in FC 9 in step 45. In step 47, CPU 1 selects a CRT font. However, if NO in step 43, CPU 1 sets "0" in FC 9 in step 49, and the flow advances to step 51. In step 51, CPU 1 refers to RAM 7 to check if a display character font in use is a single or double font. If a single font is used in step 51, CPU 1 selects one of blocks 4 through 7 in Fig. 12. However, if a double font is used in step 51, CPU 1 selects one of blocks 8 through 11 in Fig. 12. In this embodiment, assume that the PDP mode is selected as a display mode for a display, and a single font is selected as a display character font. Since the display mode and the display character font are respectively the PDP mode and the single font, FG 13, FE 17, and FS 15 are set to be "0". CPU 1 selects a default display mode as the PDP display mode (in this embodiment, 640 × 400 dot matrix shown in Fig. 10B) based on a CRT.BIOS stored in ROM 5 in step 59. CPU 1 then executes an application program in step 61. CPU 1 checks in step 63 if a BIOS mode set command is generated during execution of the application program. If YES in step 63, the flow advances to step 65, and CPU 1 executes a BIOS mode set routine. CPU 1 checks in step 67 if an alteration request of a display mode is input. If NO in step 67, CPU 1 executes text mode processing in step 69. If YES in step 67, however, CPU 1 checks in step 71 if the display screen (640 × 350 dots) in display mode A shown in Fig. 10A is set. If YES in step 71, CPU 1 executes 640 × 350 graphics mode processing in step 73. However, if NO in step 71, CPU 1 checks in step 75 if a 100 × 400 graphics mode is set. If YES in step 75, CPU 1 executes 640 × 400 graphics mode processing in step 77. On the other hand, if NO in step 63, it is checked in step 78 if a key input at keyboard 19 is made. If YES in step 78, it is checked In step 79 shown in Fig. 2C if the double font/single font switch key is depressed. If YES in step 79, double font/single font switching processing is executed in step 81. However, if NO in step 79, CPU 1 checks in step 83 if a key operated at keyboard 19 is the PDP key instructing switching from the CRT mode to the PDP mode. If YES in step 83, CPU 1 executes a PDP key processing subroutine in step 85. However, if NO in step 83, it is checked in step 87 if the operated key is the CRT key for instructing switching from the PDP mode to the CRT mode. If YES in step 87, CPU 1 executes a CRT key processing subroutine in step 89. However, if NO in step 87, CPU 1 checks in step 91 if the operated key is the stretch key for switching the display mode (stretch mode/normal mode) of PDP 23. If YES in step 91, CPU 1 executes a stretch key processing subroutine in step 93. On the other hand, if NO in step 91, CPU 1 executes processing for other input keys in step 95. The above-mentioned processing subroutines will be described below in detail with reference to Figs. 3 through 9. Fig. 3 shows a subroutine of processing of the display screen in display mode A. If CPU 1 determines in step 71 in Fig. 2B that the 640 × 350 graphics mode is set, it alters the display screen (640 × 400 dots) in default display mode B shown in Fig. 10B to the display screen (640 × 350 dots) in display mode A shown in Fig. 10A. More specifically, in step 97 in Fig. 3, CPU 1 sets "1" representing the graphics mode in FG 13, and thereafter, refers to FC 9 in step 99. If it is determined in step 99 that "1" representing the display mode of CRT 25 (CRT mode) is set in FC 9, CPU 1 sets "0" indicating a stretch disable mode in FE 17 in step 109. As a result, CPU 1 performs CRT display control in the normal mode for CRT 25. Fig. 10C shows a display screen format on CRT 25 in this case, and Fig. 13 shows the states of flags. However, if it is determined in step 99 that "0" indicating the display mode for PDP 23 is set in FC 9, CPU 1 sets "1" indicating a stretch enable mode in FE 17 in step 101. In step 103, CPU 1 refers to FS 15. If it determined in step 103 that "0" indicating the normal mode is set in FS 15, CPU 1 performs display control in the normal mode for PDP 23 in step 107. Fig. 10A shows a display screen format on PDP 23 in this case, and Fig. 13 shows states of flags. (In this case, FS = "0" in M6.) In this case, since "0" is set in FS 15, stretch processing is not performed, and an image is displayed on PDP 23 using the display screen (640 × 350 dots) in display mode A shown in Fig. 10A. The display screen (640 × 350 dots) in display mode A shown in Fig. 10A has no correspondence in real image with CRT 25, but can clearly display a font. If it is determined in step 103 that "1" indicating the stretch mode (raster stretch mode) is set in FS 15, CPU 1 performs PDP display control in the stretch mode for PDP 23. Fig. 10B shows a display screen format on PDP 23 in this case, and Fig. 13 shows states of flags. (In this case, FS = "1" in M6.) That is, a 7th dot of display image data (Fig. 11A) read out from V-RAM 29 and displayed on PDP 23 is scanned twice to achieve raster stretch processing. As a result, an image is expanded and displayed in the same dot matrix as in the display screen format (640 × 400 dots) in the default display mode shown in Fig. 10B. (350 dots in the vertical direction are expanded to 400 dots.) With the PDP stretch function described above, in a system which can arbitrarily and selectively display-drive the PDP and CRT mechanisms, if a display screen format of PDP 23 is different from that of CRT 25, correspondence between PDP 23 and CRT 25 can be arbitrarily and selectively taken by means of a real image. If it is determined in step 75 in Fig. 2B that the display screen (640 × 400 dots) in display mode B is set, CPU 1 then executes a 640 × 400 graphics mode processing subroutine shown in Fig. 4. More specifically, in step 113 in Fig. 4, CPU 1 sets "1" indicating the graphics mode in FG 13, and sets "0" indicating the stretch disable mode in FE 17. In step 115, CPU 1 performs PDP display control in the normal mode. Fig. 10B shows the display screen format on PDP 23 in this case, and M4 in Fig. 13 shows the flag states. In this case, FE 17 is set to be "0" indicating the stretch disable mode, and stretch processing is disabled. Therefore, an image is displayed on PDP 23 using the display screen (640 × 400 dots) in display mode A shown in Fig. 10B. If it is determined in step 67 in Fig. 2B that no alteration of the display mode is made, CPU 1 executes a text mode processing subroutine in step 69. More specifically, in step 117 in Fig. 5, CPU 1 sets "0" in FG 13 and FE 17. In step 119, CPU 1 refers to FC 9. If FC 9 is set to be "1" indicating the CRT mode, a CRT font (blocks 0 through 3 in Fig. 12) is selected as a display character font in step 123. Fig. 10C shows the display screen format on CRT 25 in this case, and M3 in Fig. 13 shows the flag states. If it is determined in step 119 that the CRT flag is set to be "0"' CPU 1 determines that the PDP mode is CPU 1 then refers to FD 11 in step 121. If FD 11 is set to be "1" indicating a double font, CPU 1 selects the double font (blocks 8 through 11 in Fig. 12) as a display character font in step 125. If it is determined in step 121 that FD 11 is set to be "0"' CPU 1 determines that the single font is set, and selects a single font (blocks 4 through 7 in Fig. 12) as a display character font in step 127. Fig. 10B shows the display screen format on PDP 23 in this case, and M2 (double font) and M1 (single font) in Fig. 13 show flag states. In step 129, CPU 1 sets a normal scan mode. Upon selection of single font/double font, a display character font with a good visual recognition property corresponding to use environment, an object to be processed, and the like, can be arbitrarily used. As described above, the display mode (graphics mode/text mode) is set and altered. If it is determined in step 79 in Fig. 2C that the operated key is the double/single switch key for switching the display character font (single font/double font) in the text mode, double/single switching processing shown in Fig. 6 is executed. That is, it is checked in step 131 if FG 13 is set to be "0" indicating the text mode. If "0", it is checked in step 133 if FC 9 is set to be "0" indicating the PDP mode. If "0", the flow advances to step 135, and CPU 1 refers to FD 11. If it is determined in step 135 that FD 11 is set to be "1" indicating a double font, CPU 1 sets "0" in FD 11 in step 137, and selects a single font as a display character font in accordance with the content of FD 11 in step 139. If it is determined in step 135 that FD 11 is set to be "0" indicating a single font, CPU 1 rewrites FD 11 to be "1" in step 141, and selects blocks 8 through 11 in Fig. 12 based on the content of FD 11 in step 143. In this manner, each time the double/single switch key is operated, the display character fonts are alternately switched. If it is determined in step 83 in Fig. 2C that the PDP key for instructing switching from the CRT mode to the PDP mode is operated, processing shown in Fig. 7 is executed. More specifically, if it is determined in step 145 in Fig. 7 that FC 9 is set to be "1" indicating the CRT mode, display switching processing from the CRT to the PDP including timing switching processing of CRTC 27 is executed in step 147. In step 149, CPU 1 refers to FG 13. If it is determined in step 149 that FG 13 is set to be "1", CPU 1 refers to FS 15 in step 151. If it is determined in step 151 that FS 15 is set to be "1" indicating the stretch mode (raster stretch mode), PDP display control in the stretch mode for PDP 23 is performed in step 155. If it is determined in step 151 that FS 15 is set to be "0" indicating the normal mode, PDP display control in the normal mode for PDP 23 is performed in step 153. If it is determined in step 149 that FG 13 is set to be "0" indicating the text mode, CPU 1 refers to FD 11 in step 157. If it is determined in step 157 that FD 11 is set to be "0" indicating a single font, CPU 1 selects a single font (blocks 4 through 7 in Fig. 12) as a display character font of PDP 23 in step 159. If it is determined in step 157 that FD 11 is set to be "1" indicating a double font, CPU 1 selects a double font (blocks 8 through 11 in Fig. 12) as a display character font of PDP 23 in step 161. If it is determined in step 97 in Fig. 2C that the CRT key for instructing switching from the PDP mode to the CRT mode is operated, CPU 1 executes a CRT key processing routine shown in Fig. 8. More specifically, if it is determined in step 163 in Fig. 8 that FC 9 is set to be "0" indicating the PDP mode, the flow advances to step 165, and display switching processing from the PDP to CRT including timing switching processing of CRTC 27 is executed. In step 167, CPU 1 refers to FG 13 in step 167. If it is determined in step 167 that FG 13 is set to be "1" indicating the graphics mode, CRT graphics display control in the normal mode for CRT 25 is executed in step 169. However, if it is determined in step 167 that FG is set to be "0" indicating the text mode, a CRT font (blocks 0 through 3 in Fig. 12) is selected as a text display character font of CRT 25 in step 171. If it is determined in step 91 in Fig. 2C that the stretch key is operated, stretch key processing shown in Fig. 9 is executed. More specifically, if it is determined in step 173 in Fig. 9 that FC 9 is set to be "0" indicating the PDP mode and in step 175 that FE 17 is set to be "1" indicating the stretch enable mode, the flow advances to step 177. If CPU 1 determines in step 177 that FS 15 is set to be "0" indicating the normal mode, it rewrites FS 15 to be "1" indicating the stretch (raster stretch) mode in step 179. In step 181, CPU 1 double-scans a 7th dot, thereby performing raster stretch processing. As a result, PDP display control in the stretch mode for PDP 23 is executed. However, if it is determined in step 177 that FS 15 is set to be "1", CPU 1 rewrites FS 15 to be "0" in step 183. In step 185, CPU 1 performs display control in the normal mode based on the content of FS 15. In this manner, various display switching processing operations can be executed in response to key inputs. In the above embodiment, the PDP can switch two types of display screen formats, and stretch processing from 8 dots to 9 dots is performed by 7th-dot double scan. However, the present invention is not limited to this. For example, three or more display modes, three or more display screen formats, or another stretch means be employed.

Claims: A display control system for a computer system including a flat panel display apparatus (23) and an optional cathode ray tube (CRT) display apparatus (25) each having a display screen with the capability to selectively generate a display image including a plurality of raster lines and wherein said display control system is coupled to a V-RAM (video-RAM) (29) and a display controller (1, 5) for retrieving line data from the V-RAM (29) and for selectively driving either the flat panel display apparatus (23) or the CRT display apparatus (25) for displaying the line data on the display screen of the selected display apparatus, the display control system having a current display mode selectable between a plurality of display modes, said display controller (1, 5) comprising: stretch designation means for selectively generating a stretch instruction to cause the display image of the flat panel display apparatus (23) to be stretched; first storage means (15) for storing first data in response to said stretch instruction; second storage means (17) for storing second data representing the current display mode for use in determining whether the display image can be stretched; discriminating means (1, 5, 7) for discriminating, based on the first data stored in the first storage means and the second data stored in said second storage means (17), whether or not the display image of said flat panel display apparatus (23) can be stretched when the display image is to be generated on said display screen of said flat panel display apparatus; and image stretch means (1, 5, 15) for, when the discriminating means (1, 5, 7) discriminates that the display image can be stretched, repeatedly retrieving and displaying from the V-RAM, at evenly distributed intervals, line data corresponding to a specific raster line of the display screen of the flat panel display apparatus so as to add at least one extra line to said display image of said display screen, thereby stretching the display image. A system according to claim 1, characterized in that the discriminating means (1, 5, 7) further includes means for determining whether a resolution of a display image type of said flat panel display apparatus (23) is not a full display screen when an application program for a CRT display apparatus (25) is being executed using said flat panel display apparatus (23). A system according to claim 1, characterized in that the computer system further includes a keyboard (19) including a stretch key, and characterized by further comprising means for inputting by the tretch key, said stretch designation causing stretching of the image displayed by said flat panel display apparatus (23). A system according to claim 3, characterized in that said discriminating means (1, 5, 7) further includes means for determining whether the display image of said flat panel display apparatus (23) can be stretched when the stretch key is depressed. A method of generating a display screen having a plurality of raster lines by a computer system including a V-RAM (video-RAM) (29) capable of holding display data, a flat panel display apparatus (23), and an optional cathode ray tube (CRT) apparatus (25), said computer system operating in a current display mode consisting of a selected one of a plurality of display modes, and the computer system including a display controller (1, 5) for selectively driving either the flat panel display apparatus (23) or the CRT display apparatus (25), said method comprising the steps of: generating a stretch instruction in response to a received request that a display image of the flat panel display apparatus (23) be stretched and storing first data in first storage means (15) in response to the generated stretch instruction; storing second data representing the current display mode in second storage means (17), for use in determining whether the display image can be stretched, discriminating, based on the first and second data stored in the first and second storage means (15, 17), whether or not the display image of said flat panel display apparatus (23) can be stretched when the display image is to be generated on said display screen of said flat panel display apparatus (23); and reading and displaying display data corresponding to a specific raster line of the display screen of the flat panel display apparatus from the V-RAM (29) a plurality of times at evenly distributed intervals so as to add at least one extra raster line to said display image, thereby stretching said display image, if the discriminating step discriminates that the display image can be stretched. A method according to claim 5, characterized in that the discriminating step further includes the step of determining whether a resolution of a display image type of said flat panel display apparatus (239 is not a full display screen when an application program for a CRT display apparatus (25) is being executed using said flat panel display apparatus (23). A method according to claim 5, characterized in that the computer system further includes a keyboard (19) including a stretch key, and characterized by further comprising the step of inputting by the stretch key a request for stretching the display image of said flat panel display apparatus (23). A method according to claim 7, characterized in that the discriminating step further includes the step of determining whether the display image of said flat panel display apparatus (23) can be stretched when the stretch key is depressed.

Inventors: ZENDA HIROKI C O PATENT DIVISI, ZENDA, HIROKI C/O PATENT DIVISION K.K. TOSHIBA
Applicants: TOSHIBA KK, KABUSHIKI KAISHA TOSHIBA
Application year: 1988
Main classification: G09G3
IPC codes: G09G3, G06F3, G09G5