Display data write control device

Abstract: A system memory (34) in the electronic device has a display data memory area (35), and when a CPU (31) accesses directly to the system memory (34), the liquid crystal display control section (LCDC) (36) monitors whether or not address data is directed to the display data memory area (35). In the case where the address data is directed to the display memory area (35), the LCDC (36) transfers display data and address data to the display driving circuit (38a, 38b). The display driving circuit (38a or 38b) comprises a VRAM (40a or 40b), in which the display data is stored in a predetermined memory location in accordance with the received address data, and the stored data is displayed on the LCD (32).

Description: The present invention relates to a control device for writing display data in a memory, which is used, for example, in an electronic device having a liquid crystal display section. FIG. 5 is a diagram showing the structure of a conventional display control device having a display video memory (VRAM) in a system memory. The system memory 13 is connected to a central processing unit (CPU) 11 via data and address bus 12, and also segment display drivers (D/D SEG ) 15a and 15b of a dot matrix liquid crystal display 14 are connected to the CPU 11. The CPU 11 includes a liquid crystal display control section 11a, control signals from which are supplied to the system memory 13, D/D SEG 15a and 15b, as well as to a common display driver (D/D COM ). In the conventional display control device shown in FIG. 5, the VRAM 13a is provided in the system memory 13, and the VRAM 13a in the system memory 13 is directly accessed by the CPU 11 for writing/reading of data to be displayed. Therefore, the software burden can be reduced. However, while data being displayed on the LCD 14, the display data in the VRAM 13a must be transferred at all times to the D/D SEG 15a and 15b, and therefore when the number of display pixels is increased, the data transfer amount, that is, the number of times of data access to the VRAM 13a, is accordingly increased, resulting in consuming a great amount of current. FIG. 6 is a diagram showing the structure of another conventional display control device comprising a display video memory (VRAM) in a display driver chip. As shown in the figure, a system memory 23, a liquid crystal display section 24, and segment display drivers (D/D SEG ) 25a and 25b are connected to a CPU 21 via data and address bus 22. Display data and a write control signal for VRAMs 26a and 26b respectively provided in the D/D SEG 25a and 25b are supplied to the D/D SEG 25a and 25b from the CPU 21, and a display timing signal from a liquid crystal display control section (LCDC) 27 provided in the D/D SEG 25a is supplied to the D/D SEG 25b and a D/D COM (common display driver) 28. More specifically, in the conventional display control device shown in FIG. 6, while data being displayed on the LCD 24, a segment of the LCD 24 is driven directly by the bit pattern data written in the VRAMs 26a and 26b in the D/D SEG 25a and 25b, and therefore even if there are a great number of display pixels, the number of times of data access with respect to the CPU 21 can be kept small. Further, since a multi-bit output memory can be used as a memory for display, the current consumed can be made small. However, when the number of system buses 22 from the CPU 21 to the D/D SEG 25a and 25b is reduced in designing for the purpose of the downsizing of device, the accessing of the CPU 21 to the D/D SEG 25 in terms of processing of command, address and display must be carried out by software control. As a result, this display control device entails the problem of a heavy software designing burden as compared to the conventional display control device comprising the VRAM in the system memory, shown in FIG. 5. In short, one type of the conventional display control devices has the problem of a large consuming current due to the data access to the VRAM 13a in the system memory, and the other type has the problem of a heavy software burden due to the data access with respect to the CPU 21. EP-A-0172055 discloses a system in which a CPU interface interprets data fields provided by a CPU and wherein address fields are selectively interpreted to obtain a direct access by the CPU to a general system memory or in order to constitute instructions for a video display processor. GB-A-2 215 959 discloses a graphics display system having to separate memories, an off-screen memory and a screen refresh memory having independent address generation so as to control window display, wherein only the screen refresh memory can be displayed and the memories are potentially of different sizes. The present invention has been proposed in consideration of the above problems, and the object thereof is to provide a display control device in which the software designing burden in order for storing display data output from the CPU into the display memory, can be reduced. According to the present invention, there is provided an electronic device comprising: a dot matrix type display screen; a display driving circuit for driving the display screen, wherein the display driving circuit includes an image memory for storing display data to be displayed on the display screen; a process unit for controlling operation of the electronic device, comprising judging means for judging the data write operation to the display memory area by decoding the address data supplied to the system memory from the process unit, and a display data write control circuit for transferring the display data to be displayed and the address data to the display driving circuit and to the image memory when said judging means judges the data write operation to the display memory area; and a system memory having a memory area directly address-controllable by the process unit and containing a display memory area. This invention can be more fully understood from the following detailed description when taken in conjunction with the accompanying drawings,in which: FIG. 1 is a block diagram showing the structure of a display control device according to one embodiment of the present invention; FIG. 2 is a block diagram showing details of a liquid crystal display controller shown in FIG. 1; FIG. 3 is a block diagram showing details of a multiplexer of FIG. 2; FIG. 4A is a diagram showing the structure of a VRAM of a system memory shown in FIG. 1; FIG. 4B is a diagram showing the structure of a VRAM of a display driver shown in FIG. 1; and FIGS. 5 and 6 are block diagrams each showing a conventional circuit. An embodiment of the present invention will now be described with reference to drawings. FIG. 1 is a block diagram showing the structure of a display control device of the embodiment according to the present invention. A central processing unit (CPU) 31 serves to generate display data to a liquid crystal dot matrix display section (LCD) 32, and control the operation of each section of the device. To the CPU 31, a system memory 34 is connected via system bus 33 including data bus and address bus. The system memory 34 comprises a video memory (VRAM) 35, in which display data transferred from the CPU 31, which is to be displayed on the LCD 32, is stored. Inside the CPU 31, there is provided a liquid crystal display control section (LCDC) 36 connected to the system bus 33. Display data and the address data thereof output from the LCDC 36 are transferred to segment display drivers (D/D SEG ) 38a and 38b via a liquid crystal display bus (LCDBUS) 37, whereas a display control signal output from the LCDC 36 is supplied to the D/D SEG 38a and 38b and a common display driver (D/D COM ) 39. The D/D SEG 38a and 38b comprise display VRAMs 40a and 40b, respectively, and the LCD 32 is driven in accordance with the display data written in the display VRAMs 40a and 40b as a bit map pattern. FIG. 2 shows a section related to the LCDC 36 in the display control device. The address bus 33a, data bus 33b, and a R/W (read/write) control signal line 41 from a memory interface section 31a of the CPU 31 are connected to the system memory 34 and the LCDC 36 in a similar manner. The LCDC 36 operates such that the display and address data is fetched in the multiplexer 36a when data is written from the CPU 31 to the system memory 34, and it is judged as to whether or not the data is to be written in the VRAM 35 of the system memory 34 on the basis of the address data. When the display data is to be written in the VRAM 35, the display data and the address data thereof fetched in the multiplexer 36a are transferred to the D/D SEG 38a and 38b in order via the LCDBUS 37 in the time divisional manner. FIG. 3 shows the details of the multiplexer 36a. The multiplexer 36a includes an address calculation circuit 52 having a latch-A 51 for temporarily holding address data from the address bus 33a, and a latch-D 53 for temporarily holding the display data from the data bus 33b. In the embodiment, the address bus 33a is made of a 20-bit type, and the data bus 33b is made of an 8-bit bus. The address bus 33a is connected to a decoder 54. The decoder 54 serves to decode the upper 4 bits of address data, and output a signal S when the address data accesses to the VRAM 13a of the system memory 13. Upon reception of the signal S, a selector 55 serves to output address and display data to the LCDBUS 37 in the time divisional manner. The LCDBUS 37 consists of 8-bit bus, and lower 16 bits of the address data is divided into the lower 1 byte data "AX" and the upper 1 byte data "AY". It should be noted that the point of division of the address data determines the point of division in the X direction (the number of bytes in the X direction) of the memory area of the VRAM 35 of the system memory 34 as shown in FIG. 4A, and the significant bit number for the "AX" is not necessary 8 bits. A DXA register 56 and a DYA register 57 serve to store "DXA" and "DYA", respectively, each of which is an amount of displacement resulted from addition to or subtraction from the address data stored in the latch-A 51. The relationship between the LCD 32 and the VRAMs 40a, 40b will now be described. The LCD 32 has a display screen consisting of display pixels arranged such that there are 160 dots in the vertical (Y) direction and 256 dots in the horizontal (X) direction. Each of the VRAMs 40a and 40b provided respectively in the segment drivers (D/D SEG ) 38a and 38b has a memory capacity of 160 x 128 dots, and serves to store display data to be displayed on the screen, in a two-division manner. The lower byte data "AX" of the address data serves to designate the selection of two segment drivers (D/D SEG ) 38a, 38b and the address of the VRAM in the X direction, whereas the upper byte data "AY" serves to designate the address in the Y direction. The VRAM area 35 of the system memory 34 has a capacity larger than the total capacity of the VRAM 40a and VRAM 40b of the segment drivers (D/D SEG ), and includes the display data memory area corresponding to the VRAMs 40a, 40b of the segment drivers (DD SEG ). The LCDC 36 includes a direct memory access circuit (DMA) 58, a display timing control section 36b and read/write control section 36c operating as a data collision avoidance control section. When start address (S), the number of bytes (x) in the X direction and the number of bits (y) in the Y direction are set by the CPU 31, the DMA 58 automatically reads data having a rectangular area of x·y with respect to start address S as the starting point, from the VRAM area 35 of the system memory 34, and write the data into the VRAM 40a or 40b of the segment driver (DD SEG ) 38a or 38b. The display timing control section 36b serves to output a display timing signal necessary to drive the LCD 32 to each of the segment drivers (D/D SEG ) 38a and 38b and the common driver (D/D COM ) 39. In reply to the display timing signal, the common driver (D/D COM ) outputs a common signal, whereas each of the segment drivers (D/D SEG ) 38a and 38b outputs a segment signal in accordance with the display bit map data stored in the VRAMs 40a and 40b. The read/write control section 36c functioning as the data collision avoiding control section serves to avoid the data write timing for the VRAMs 40a, 40b of the segment drivers (D/D SEG ) 38a and 38b overlapping with the data read timing for display on the LCD 32, and output a collision avoiding control signal on the basis of the timing control operation for the LCD 32 by the display timing control section 36b and the data write control signal output from the CPU 31. The operation of the embodiment will now be described. In the case where the CPU 31 operates to write display data to be displayed on the LCD 32 in the VRAM 35 of the system memory 34, a write signal is output to the R/W signal line 41, and the address and display data are output to the address and display buses 33a and 33b, respectively. Then, the display data is written in the system memory 34 in accordance with the address data. In the LCDC 36, the address data is stored in the latch-A 51, whereas the display data is stored in the latch-D 53. At the same time, in the decoder 54, it is judged as to whether or not the address data addresses the VRAM area 35 of the system memory 34. When it is judged that the address data addresses the VRAM area 35 of the system memory 34, the display data and the address data are time-division-output to the LCDBUS 37. More specifically, the selector 55 selectively outputs the lower byte "AX" of the address data, the upper byte "AY" stored in the latch-A 51, and the display data "DD" stored in the latch-D 53 to the LCDBUS 37 in order. The display segment drivers (D/D SEG ) 38a, 38b receives these data, and write the display data to a designated VRAM 40a or 40b. The display data written in the VRAMs 40a and 40b of the segment drivers (D/D SEG ) 38a and 38b are read out based on the display timing signal output from the display timing control section 36b of the LCDC 36, and sent to the segment electrodes in the LCD 32. The display data is then synchronized with the common signal output from the common driver (D/D COM ) 39, and thus the LCD 32 is driven. Next, the case where a window is opened on the display screen of the LCD 32 so as to display other display data in a portion of the background display data, will now be described. Let us suppose the case as shown in FIG. 4B, for example, in which window data is written from the point where the address is displaced by "bx" in the X direction and "by" in the Y direction with respect to the original address (the upper left corner of the screen of FIG. 4B) of the VRAM memory area of the segment driver, which corresponds to the LCD 32. Window display data is written in a memory area other than the area where the display data presently displayed is stored, within the entire area of the VRAM 35 of the system memory 34, by the CPU 31. FIG. 4A illustrates data stored in the VRAM 35 in a visualized form, and the region defined by the broken lines indicates a memory area for display data. Suppose that the window display data is written to the shaded area of FIG. 4A, and the write start address thereof is set at " ax " and " ay ". Then, the CPU 31 determines the values of "DXA" and "DYA" such as to satisfy the following equations: ax + DXA = bx ay + DYA = by and sets the determined values to the DXA register 56 and DYA register 57, respectively. Then, the address calculation circuit 52 calculates out "AX" data by adding the "DXA" and the lower byte of the address data stored in the latch-A 51 and "AY" data by adding the "DYA" and the upper byte, and outputs the obtained "AX" and "AY" data to the segment drivers (D/D SEG ) 38a, 38b via the selector 55. The segment driver 38a or 38b stores the display data into the VRAM 40a or 40b in accordance with the address data received. Consequently, when window data is written in by addressing a certain area in the VRAM 35 of the system memory 34, the address data and display data are transferred to the segment drives 38a and 38b via the LCDC 36, and a window is automatically displayed on the LCD 32 at the designated location. In such an operation, as shown in FIG. 4A, the display data for the background image and that for the window are stored in different areas of the system VRAM 35, and therefore, even if a window is superimposed over a part of of the current image, it is not necessary to save the background image data of the area corresponding to the location of the window. Moreover, by utilizing the function of the DMA 58, the window display data written in the VRAM 35 of the system memory 34 and the portion of the background image data hidden behind the window can be written in the VRAM 40a or 40b of the segment driver 38a or 38b, thereby simplifying the display of a window and the recovering operation of the background image. In the case where the display data is read by the CPU 31, the data is read out directly from the system memory 34, and the LCDC 36 does not operate. With the present invention having the above-described structure, developers of software have to consider only direct access to the VRAM in a system memory as regards the display data write process, and therefore the software designing burden can be reduced.

Claims: An electronic device comprising: a dot matrix type display screen (32); a display driving circuit (38a, 38b, 39) for driving said display screen (32); a process unit (31) for controlling operation of said electronic device; and a system memory (34, 35) addressed by said process unit (31) and containing a display memory area (35); characterized in that said display driving circuit (38a, 38b, 39) includes an image memory (40a, 40b) for storing display data to be displayed on said display screen (32); and that said process unit (31) further comprises judging means (54) for judging the data write operation to the display memory area (35) by decoding the address data supplied to the system memory (34, 35) from the process unit (31), and a display data write control circuit (36) for transferring the display data to be displayed and the address data to the display driving circuit (38a, 38b, 39) and to the image memory (40a, 40b) when said judging means (54) judges the data write operation to the display memory area (35). An electronic device according to claim 1, characterized in that said display screen (32) includes a liquid crystal display device (32), and said display driving circuit (38a, 38b, 39) includes a segment drive circuit (38a, 38b) having said image memory (40a, 40b) and a common signal generating circuit (39). An electronic device according to claim 1 or 2, characterized in that said display data write control circuit (36) includes a direct memory access controller (58) for transferring data in said display memory area (35) of said system memory (34, 35) to said image memory (40a, 40b). An electronic device according to one of the claims 1 to 3, characterized in that said display data write control cirucuit (36) includes means (51, 56, 57) for varying said address data by a predetermined displacement amount and transferring the varied address data to said display driving circuit (38a, 38b, 39). An electronic device accordirig to one of the claims 1 to 4, characterized in that said display data write control circuit (36) comprises: displacement data storage means (56, 57) for storing a displacement amount value of the address data; and address data processing means (52) for adding or subtracting the displacement amount value stored in said displacement data storage means (56, 57) to the address data being transferred. An electronic device according to one of the claims 1 to 5, characterized in that said image memory (40a, 40b) included in the display driving circuit (38a, 38b, 39) is addressed by two kinds of data in the X and Y directions, and that said displacement data storage means (56, 57) stores the displacement amounts in the respective X and Y directions.

Inventors: ISHIKAWA RYO, ISHIKAWA, RYO, Ishikawa, Ryo, Hamura R &amp; D Center
Applicants: CASIO COMPUTER CO LTD, CASIO COMPUTER CO., LTD.
Application year: 1994
Main classification: G09G3
IPC codes: G09G3, G09G5