1. Field of the Invention
The present invention relates to an apparatus for controlling a memory device and a related method, and more particularly, to a memory controlling system for writing pixel data of pixels in a display screen into a memory device and a method thereof.
2. Description of the Prior Art
An interlacing method is always used in a memory controlling system to increase the accessing rate of a memory block. Conventionally, in an interlace system, the memory block is divided into a predetermined number of sub-memory units, and a memory controller sequentially stores the pixel data of pixels in a panel to the predetermined number of sub-memory units to increase the performance. In some applications, however, such as a mobile phone memory controller, the storing vector of the panel may not be limited to one direction, i.e., the memory controller may store the pixel data of pixels in the panel in various directions, such as from left to right, right to left, top to bottom, bottom to top, etc. Therefore, a shortcoming may emerge in the conventional interlace system when the storing procedure reaches the end of a line and the pixel data of a next line is going to be stored to the sub-memory units. More specifically, the pixel data of the first pixel in a next line may be stored into the same sub-memory unit as the pixel data of the last pixel in the previous line. When this happens, the performance will decrease.
A similar problem will occur when an active window is set to the panel. More specifically, when the pixel data of the last pixel in the active window is stored to one sub-memory unit and the pixel data of the first pixel in the active window is the next pixel data being stored to the sub-memory units, the pixel data of the first pixel in the active window may be stored to the same sub-memory unit of the pixel data of the last pixel in the active window. When this happens, the performance of storing the pixel data in the active window into the memory block will be decreased. Therefore, providing an efficient way for interlacing the memory block to solve the above-mentioned problems is a significant concern in the memory controller field.
One of the objectives of the present invention is to provide a memory controlling system for writing pixel data of pixels in a display screen into a memory device and a method thereof.
According to an embodiment of the present invention, a method for controlling a memory device is disclosed. The method comprises the steps of: categorizing a plurality of sub-memory units of the memory device into a first group of sub-memory units and a second group of sub-memory units, wherein the first group of sub-memory units is different from the second group of sub-memory units; starting from a first selected sub-memory unit in the first group of sub-memory units, sequentially storing pixel data of a plurality of pixels being displayed on a first line of a display screen into the sub-memory units of the first group of sub-memory units until all the pixel data of the plurality of pixels being displayed on the first line are stored into the sub-memory units of the first group of sub-memory units; starting from a second selected sub-memory unit in the second group of sub-memory units, sequentially storing the pixel data of a plurality of pixels being displayed on a second line next to the first line of the display screen into the sub-memory units of the second group of sub-memory units until all the pixel data of the plurality of pixels being displayed on the second line are stored into the sub-memory units of the second group of sub-memory units; and starting from a next but one sub-memory unit to the first selected sub-memory unit in the first group of sub-memory units, sequentially storing the pixel data of a plurality of pixels being displayed on a third line next to the second line of the display screen into the sub-memory units of the first group of sub-memory units until all the pixel data of the plurality of pixels being displayed on the third line are stored into the sub-memory units of the first group of sub-memory units.
According to a second embodiment of the present invention, an apparatus for controlling a memory device is disclosed, wherein the memory device comprises a plurality of sub-memory units. The apparatus comprises a plurality of first connecting circuit, a plurality of second connecting circuit, and a memory controller. The plurality of first connecting circuits are coupled to a first group of sub-memory units of the memory device. The plurality of second connecting circuit are coupled to a second group of sub-memory units of the memory device, wherein the plurality of sub-memory units are categorized into the first group of sub-memory units and the second group of sub-memory units, and the first group of sub-memory units is different from the second group of sub-memory units. The memory controller is coupled to the first connecting circuit and the second connecting circuit, for, starting from a first selected sub-memory unit in the first group of sub-memory units, sequentially storing pixel data of a plurality of pixels being displayed on a first line of a display screen into the sub-memory units of the first group of sub-memory units via the plurality of first connecting circuits until all the pixel data of the plurality of pixels being displayed on the first line are stored into the sub-memory units of the first group of sub-memory units, for, starting from a second selected sub-memory unit in the second group of sub-memory units, sequentially storing the pixel data of a plurality of pixels being displayed on a second line next to the first line of the display screen into the sub-memory units of the second group of sub-memory units via the plurality of second connecting circuits until all the pixel data of the plurality of pixels being displayed on the second line are stored into the sub-memory units of the second group of sub-memory units, and for, starting from a next but one sub-memory unit to the first selected sub-memory unit in the first group of sub-memory units, sequentially storing the pixel data of a plurality of pixels being displayed on a third line next to the second line of the display screen into the sub-memory units of the first group of sub-memory units via the plurality of first connecting circuits until all the pixel data of the plurality of pixels being displayed on the third line are stored into the sub-memory units of the first group of sub-memory units.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Certain terms are used throughout the description and following claims to refer to particular components. As one skilled in the art will appreciate, electronic equipment manufacturers may refer to a component by different names. This document does not intend to distinguish between components that differ in name but not function. In the following description and in the claims, the terms “include” and “comprise” are used in an open-ended fashion, and thus should be interpreted to mean “include, but not limited to . . . ”. Also, the term “couple” is intended to mean either an indirect or direct electrical connection. Accordingly, if one device is coupled to another device, that connection may be through a direct electrical connection, or through an indirect electrical connection via other devices and connections.
Please refer to
Step 202: Arrange the plurality of sub-memory units 1022 divided from the memory device 102 to store the pixel data being displayed on the display screen 104 according to the equation (1): Y=X*P, and the equation (2): M=Q*P, and Y is the target memory access rate Y of the memory device 102 after divided into the plurality of sub-memory units 1022, X is the original memory access rate of the memory device 102 before divided into the plurality of sub-memory units 1022, P is an integer factor, M is the number of the plurality of sub-memory units 1022, and Q is another integer factor Q not less than two;
Step 204: Categorize the plurality of sub-memory units 1022 of the memory device 102 into a first group of sub-memory units 1022a and a second group of sub-memory units 1022b, wherein the first group of sub-memory units 1022a is different from the second group of sub-memory units 1022b (For brevity, the plurality sub-memory units in the first group of sub-memory units 1022a are labeled as 1022_1, 1022_3, 1022_5, . . . , 1022_(M−1) and the plurality sub-memory units in the second group of sub-memory units 1022b are labeled as 1022_2, 1022_4, 1022_6, . . . , 1022_M);
Step 206: Starting from one of the sub-memory units, e.g., the sub-memory unit 1022_A, in the first group of sub-memory units 1022a, sequentially store the pixel data of pixels being displayed on the current line, i.e., the first line, of the display screen 104 into the sub-memory units 1022_A, 1022_(A+2), 1022_(A+4), . . . , 1022_(M−1), 1022_1, 1022_3, . . . , 1022_(A−2) of the first group of sub-memory units 1022a, and after storing a pixel data of a pixel into the sub-memory unit 1022_(A−2), go to the sub-memory unit 1022_A to repeatedly store the pixel data of pixels into the sub-memory units 1022_A, 1022_(A+2), 1022_(A+4), . . . , 1022_(M−1), 1022_1, 1022_3, . . . , 1022_(A−2) until all the pixel data of pixels being displayed on the first line of the display screen 104 are stored into the sub-memory units 1022_A, 1022_(A+2), 1022_(A+4), . . . , 1022_(M−1), 1022_1, 1022_3, . . . , 1022_(A−2) of the first group of sub-memory units 1022a;
Step 208: When the pixel data of pixels being displayed on the first line of the display screen 104 are all sequentially stored into the sub-memory units 1022_1, 1022_3, 1022_5, . . . , 1022_(M−1) of the first group of sub-memory units 1022a, go to the next line, i.e., the second line, of the display screen 104 and the second group of sub-memory units 1022b;
Step 210: Starting from one of the sub-memory units, e.g., the sub-memory unit 1022_B, in the second group of sub-memory units 1022b, sequentially store the pixel data of pixels being displayed on the second line of the display screen 104 into the sub-memory units 1022_B, 1022_(B+2), 1022_(B+4), . . . , 1022_M, 1022_2, 1022_4, . . . , 1022_(B−2) of the second group of sub-memory units 1022b, and after storing a pixel data of a pixel into the sub-memory unit 1022_(B−2), go to the sub-memory unit 1022_B to repeatedly store the pixel data of pixels into the sub-memory units 1022_B, 1022_(B+2), 1022_(B+4), . . . , 1022_M, 1022_2, 1022_4, . . . , 1022_(B−2) until all the pixel data of pixels being displayed on the second line of the display screen 104 are stored into the sub-memory units 1022_B, 1022_(B+2), 1022_(B+4), . . . , 1022_M, 1022_2, 1022_4, . . . , 1022_(B−2) of the second group of sub-memory units 1022b;
Step 212: When the pixel data of pixels being displayed on the second line of the display screen 104 are all sequentially stored into the sub-memory units 1022_2, 1022_4, 1022_6, . . . , 1022_M of the second group of sub-memory units 1022b, go to the next line, i.e., the third line, of the display screen 104 and the first group of sub-memory units 1022a;
Step 214: Starting from the next but one sub-memory unit to the sub-memory unit 1022_A, i.e., the sub-memory unit 1022_(A+2) or the sub-memory unit 1022_(A−2) (In this embodiment, the next but one sub-memory unit to the sub-memory unit 1022_A is chosen as the sub-memory unit 1022_(A+2) for brevity), in the first group of sub-memory units 1022a, sequentially store the pixel data of pixels being displayed on the third line of the display screen 104 into the sub-memory units 1022_(A+2), 1022_(A+4), 1022_(A+6), . . . , 1022_(M−1), 1022_1, 1022_3, . . . , 1022_(A−2), 1022_A of the first group of sub-memory units 1022a, and after storing a pixel data of a pixel into the sub-memory unit 1022_A, go to the sub-memory unit 1022_(A+2) to repeatedly store the pixel data of pixels into the sub-memory units 1022_(A+2), 1022_(A+4), 1022_(A+6), . . . , 1022_(M−1), 1022_1, 1022_3, . . . , 1022_(A−2), 1022_A until all the pixel data of pixels being displayed on the third line of the display screen 104 are stored into the sub-memory units 1022_(A+2), 1022_(A+4), 1022_(A+6), . . . , 1022_(M−1), 1022_1, 1022_3, . . . , 1022_(A−2), 1022_A of the first group of sub-memory units 1022a;
Step 216: When the pixel data of pixels being displayed on the third line of the display screen 104 are all sequentially stored into the sub-memory units 1022_1, 1022_3, 1022_5, . . . , 1022_(M−1) of the first group of sub-memory units 1022a, go to the next line, i.e., the fourth line, of the display screen 104 and the second group of sub-memory units 1022b;
Step 218: Starting from the next but one sub-memory unit to the sub-memory unit 1022_B, i.e., the sub-memory unit 1022_(B+2) or the sub-memory unit 1022_(B−2) (In this embodiment, the next but one sub-memory unit to the sub-memory unit 1022_B is chosen as the sub-memory unit 1022_(B+2) for brevity), in the second group of sub-memory units 1022b, sequentially store the pixel data of pixels being displayed on the fourth line of the display screen 104 into the sub-memory units 1022_(B+2), 1022_(B+4), 1022_(B+6), . . . , 1022_M, 1022_2, 1022_4, . . . , 1022_(B−2), 1022_B of the second group of sub-memory units 1022b, and after storing a pixel data of a pixel into the sub-memory unit 1022_B, go to the sub-memory unit 1022_(B+2) to repeatedly store the pixel data of pixels into the sub-memory units 1022_(B+2), 1022_(B+4), 1022_(B+6), . . . , 1022_M, 1022_2, 1022_4, . . . , 1022_(B−2), 1022_B until all the pixel data of pixels being displayed on the fourth line of the display screen 104 are stored into the sub-memory units 1022_(B+2), 1022_(B+4), 1022_(B+6), . . . , 1022_M, 1022_2, 1022_4, . . . , 1022_(B−2), 1022_B of the second group of sub-memory units 1022b.
For brevity, the above-mentioned lines are referred to the rows of the display screen 104. In other words, according to the present invention, the first group of sub-memory units 1022a are assigned to store the pixel data of pixels being displayed on the odd number rows of the display screen 104, and the second group of sub-memory units 1022b are assigned to store the pixel data of pixels being displayed on the even number rows of the display screen 104. It should be noted that, the above-mentioned lines can also be referred to the columns of the display screen 104. When the above-mentioned lines are referred to the columns of the display screen 104, the first group of sub-memory units 1022a are assigned to store the pixel data of pixels being displayed on the odd number columns of the display screen 104, and the second group of sub-memory units 1022b are assigned to store the pixel data of pixels being displayed on the even number columns of the display screen 104.
Furthermore, the host 105 repeats the above-mentioned steps 212-218 until the pixel data of all of the rows of the display screen 104 are stored into the plurality of sub-memory units 1022. According to the present invention, when the pixel data of all of the rows of the display screen 104 are stored into the plurality of sub-memory units 1022, the pixel data of the first pixel in the next row must not be stored into the same sub-memory unit as the sub-memory unit that the pixel data of the last pixel in the previous row being stored to. This is because the pixel data of pixels being displayed on the previous row are sequentially stored into the first group of sub-memory units 1022a and the pixel data of pixels being displayed on the next row next to the previous row are sequentially stored into the second group of sub-memory units 1022b, wherein the first group of sub-memory units 1022a is different from the second group of sub-memory units 1022b and the previous row is immediately adjacent to the next row.
In addition, when the pixel data of pixels being displayed on the current row, i.e., the second line, are stored into the sub-memory units of the second group of sub-memory units 1022b in Step 210, the host 105 goes to the next line, i.e., the third line, and goes to the next but one sub-memory unit, i.e., the sub-memory unit 1022_(A+2) to the current sub-memory unit of the first group of sub-memory units 1022a in order to sequentially store the pixel data of pixels being displayed on the third line of the display screen 104 into the sub-memory units 1022_1, 1022_3, 1022_5, . . . , 1022_(M−1) of the first group of sub-memory units 1022a (Step 214) Then, when the pixel data of pixels being displayed on the current row, i.e., the third line, are stored into the sub-memory units of the first group of sub-memory units 1022a in Step 214, the host 105 goes to the next line, i.e., the fourth line, and goes to the next but one sub-memory unit, i.e., the sub-memory unit 1022_(B+2) to the current sub-memory unit of the second group of sub-memory units 1022b in order to sequentially store the pixel data of pixels being displayed on the fourth line of the display screen 104 into the sub-memory units 1022_2, 1022_4, 1022_6, . . . , 1022_M of the second group of sub-memory units 1022b (Step 218) Accordingly, by repeating the step 212-218 to store all the pixel data of pixels of the display screen 104 into the plurality of sub-memory units 1022, the pixel data of the first pixel in the next column must not be stored into the same sub-memory unit as the sub-memory unit that the pixel data of the last pixel in the previous column being stored to.
To more clearly illustrate the features of the present method 200, an embodiment 300 is disclosed. In this embodiment 300, the memory device 102 has the original memory access rate of X, the target memory access rate Y is four times the original memory access rate of X (i.e., P=4), and the integer factor Q is two (i.e., Q=2), therefore the number M of the plurality of sub-memory units 1022 of the memory device 102 is eight (i.e., M=8) (Step 202). In other words, the memory device 102 is divided into eight sub-memory units 1022 in order to obtain four times the original memory access rate X as shown in
In this embodiment, when the host needs to updates the pixel data of pixels being displayed on the display screen 104 into the memory device 102, the memory controller 103 (controlled by the host 105) can set the first sub-memory unit 1022_1 in the first group of sub-memory units 1022a as the current sub-memory unit in the first group of sub-memory units 1022a, and set the first row of the display screen 104 as the current row. Then, starting from the first sub-memory unit 1022_1, the memory controller 103 sequentially stores the pixel data of pixels being displayed on the first row of the display screen 104 into the sub-memory units 1022_1, 1022_3, 1022_5, 1022_7, of the first group of sub-memory units 1022a until all the pixel data of pixels being displayed on the first row of the display screen 104 are stored into the sub-memory units 1022_1, 1022_3, 1022_5, 1022_7(Step 206).
Then, when the pixel data of pixels being displayed on the first row of the display screen 104 are all sequentially stored into the sub-memory units 1022_1, 1022_3, 1022_5, 1022_7 of the first group of sub-memory units 1022a, the memory controller 103 goes to the next row of the display screen 104 and the second group of sub-memory units 1022b (Step 208). Then, starting from the second sub-memory unit 1022_4, the memory controller 103 sequentially stores the pixel data of pixels being displayed on the second row of the display screen 104 into the sub-memory units 1022_4, 1022_6, 1022_8, 1022_2, of the second group of sub-memory units 1022b (Step 210).
Then, when the pixel data of pixels being displayed on the second row of the display screen 104 are all sequentially stored into the sub-memory units 1022_2, 1022_4, 1022_6, 1022_8 of the second group of sub-memory units 1022b, the memory controller 103 goes to the next row, i.e., the third row, of the display screen 104 and the first group of sub-memory units 1022a (Step 212). Then, starting from the next but one sub-memory unit to the first sub-memory unit 1022_1, i.e., the third sub-memory unit 1022_5, the memory controller 103 sequentially stores the pixel data of pixels being displayed on the third row of the display screen 104 into the sub-memory units 1022_5, 1022_7, 1022_1, 1022_3, of the first group of sub-memory units 1022a until all the pixel data of pixels being displayed on the third row of the display screen 104 are stored into the sub-memory units 1022_1, 1022_3, 1022_5, 1022_7 of the first group of sub-memory units 1022a (Step 214).
Then, when the pixel data of pixels being displayed on the third row of the display screen 104 are all sequentially stored into the sub-memory units 1022_5, 1022_7, 1022_1, 1022_3 of the first group of sub-memory units 1022a, the memory controller 103 goes to the next row, i.e., the fourth row, of the display screen 104 and the second group of sub-memory units 1022b. Then, starting from the next but one sub-memory unit to the second sub-memory unit 1022_4, i.e., the fourth sub-memory unit 1022_8, the memory controller 103 sequentially stores the pixel data of pixels being displayed on the fourth row of the display screen 104 into the sub-memory units 1022_8, 1022_2, 1022_4, 1022_6, of the second group of sub-memory units 1022b until all the pixel data of pixels being displayed on the fourth row of the display screen 104 are stored into the sub-memory units 1022_8, 1022_2, 1022_4, 1022_6 of the second group of sub-memory units 1022b (Step 218).
Please refer to
In the second row of the display screen 104, the pixel data of the first pixel 21 are stored into the second sub-memory unit of 1022_4 of the second group of sub-memory units 1022b, the pixel data of the second pixel 22 are stored into the third sub-memory unit of 1022_6 of the second group of sub-memory units 1022b, the pixel data of the third pixel 23 are stored into the fourth sub-memory unit of 1022_8 of the second group of sub-memory units 1022b, the pixel data of the fourth pixel 24 are stored into the first sub-memory unit of 1022_2 of the second group of sub-memory units 1022b, and so on (step 210).
In the third row of the display screen 104, the pixel data of the first pixel 31 are stored into the third sub-memory unit of 1022_5 of the first group of sub-memory units 1022a, the pixel data of the second pixel 32 are stored into the fourth sub-memory unit of 1022_7 of the first group of sub-memory units 1022a, the pixel data of the third pixel 33 are stored into the first sub-memory unit of 1022_1 of the first group of sub-memory units 1022a, the pixel data of the fourth pixel 34 are stored into the second sub-memory unit of 1022_3 of the first group of sub-memory units 1022a, and so on (step 214).
In the fourth row of the display screen 104, the pixel data of the first pixel 41 are stored into the fourth sub-memory unit of 1022_8 of the second group of sub-memory units 1022b, the pixel data of the second pixel 42 are stored into the first sub-memory unit of 1022_2 of the second group of sub-memory units 1022b, the pixel data of the third pixel 43 are stored into the second sub-memory unit of 1022_4 of the second group of sub-memory units 1022b, the pixel data of the fourth pixel 44 are stored into the third sub-memory unit of 1022_6 of the second group of sub-memory units 1022b, and so on (step 218).
Please refer to
Therefore, when the pixel data of the pixels in the display screen 104 are written into the memory device 102, no sub-memory unit will be written to twice in four writing cycles, wherein one writing cycle is utilized for writing the pixel data of one pixel into one sub-memory unit. In other words, no matter whether the pixel data of the pixels in the display screen 104 are written into the memory device 102 from the direction of left to right, right to left, top to bottom, bottom to top, horizontally, or vertically, no sub-memory unit in the memory device 102 will be written to twice in four writing cycles. Therefore the writing speed (i.e., the target memory access rate Y) of the pixel data of the pixels in the display screen 104 being written into the memory device 102 can be maintained at exactly four times the original memory access rate X.
Furthermore, when an active window 1042 is set for the display screen 104 and the active window 1042 includes a plurality of selected pixels (e.g., nine pixels as shown in
Therefore, if the above-mentioned situation occurs, pixel data of three leading pixels (e.g., the pixels 23, 24, 25) in the active window 1042 are controlled to be stored into a specific storage device other than the memory device 102 (i.e., the plurality of sub-memory units of 1022_8, 1022_2, and 1022_4) which were originally assigned for the pixels 23, 24, 25 respectively. Please note that, when the pixel data of the pixels 23, 24, 25 in the active window 1042 are stored into the specific storage device, the addresses corresponding to the pixels 23, 24, 25 are also controlled to be stored into the specific storage device. When the processor (i.e., the host 105) in the mobile apparatus needs to access the pixel data of the pixels 23, 24, 25, the processor is controlled to access the pixel data of the pixels 23, 24, 25 from the specific storage device. Please note that the number of leading pixels in the active window 1042 that are controlled to be stored into the specific storage device corresponds to the target memory access rate Y. In this embodiment, when the target memory access rate Y is four times the original memory access rate X, the number of leading pixels in the active window 1042 that are stored into the specific storage device is three. In other words, the number of leading pixels in the active window 1042 that are controlled to be stored into the specific storage device is not larger than the multiple factor of the target memory access rate Y over the original memory access rate X.
In addition, the pixel data of the pixels 23, 24, 25 that are stored into the specific storage device should be restored into the memory device 102 according to the addresses of the pixels 23, 24, 25 stored in the specific storage device when the active window 1042 is adjusted. In other words, when the active window 1042 is adjusted, the pixel data of the pixels 23, 24, 25 that are stored into the specific storage device are controlled to be restored into the sub-memory units of 1022_8, 1022_2, and 1022_4, which were originally assigned for the pixels 23, 24, 25 respectively. Accordingly, since no sub-memory unit in the memory device 102 will be written to twice in four writing cycles in any size of active window 1042, the writing speed (i.e., the target memory access rate Y) of the pixel data of the pixels in the active window 1042 is guaranteed to be four times the original memory access rate X. The specific storage device may also include a plurality of flip-flops for storing the pixel data and the addresses of the plurality of leading pixels in the active window 1042, but this is not meant to be a limitation of the present invention.
Please refer to
In addition, the second connecting circuit 1062 is coupled between the memory controller 103 and the first sub-memory unit 1022_2 in the second group of sub-memory units 1022b. The fourth connecting circuit 1064 is coupled between the memory controller 103 and the second sub-memory unit 1022_4 in the second group of sub-memory units 1022b. The sixth connecting circuit 1066 is coupled between the memory controller 103 and the third sub-memory unit 1022_6 in the second group of sub-memory units 1022b. The eighth connecting circuit 1068 is coupled between the memory controller 103 and the fourth sub-memory unit 1022_8 in the second group of sub-memory units 1022b.
Please refer to
In addition, the memory controller 103 is also coupled to the specific storage device 1031 via another connecting circuit. According to the above description, when the active window 1042 is set for the display screen 104, the memory controller 103 stores the pixel data and the corresponding addresses of the pixels (e.g., the pixels 23, 24, 25) in the active window 1042 into the specific storage device 1031 via the another connecting circuit. In addition, when the active window 1042 is adjusted, the memory controller 103 restores the pixel data of the pixels (e.g., the pixels 23, 24, 25) that are stored into the specific storage device 1031 into the sub-memory units (e.g., the sub-memory units of 1022_8, 1022_2, and 1022_4) from the specific storage device 1031 via the another connecting circuit. Therefore, no sub-memory unit in the memory device 102 will be written to twice in four writing cycles in any size of active window 1042, and the writing speed (i.e., the target memory access rate Y) of the pixel data of the pixels in the active window 1042 is guaranteed to be four times the original memory access rate X. It should be noted that the above-mentioned memory controlling system 100 is just an exemplary embodiment, and is not meant to be a limitation of the present invention.
Briefly, the present invention divides the memory device 102 into M sub-memory units 1022 according to the target memory access rate Y, wherein the target memory access rate Y is a multiple of the original memory access rate X of the memory device 102 by an integer factor P, and the number M is a multiple of the integer factor P by another integer factor Q which is not less than two. The present invention further categorizes the M sub-memory units 1022 into the first group of sub-memory units 1022a and the second group of sub-memory units 1022b, wherein the first group of sub-memory units 1022a is different from the second group of sub-memory units 1022b. The present invention further writes the pixel data being displayed on the odd row and the even row of the display screen 104 into the first group of sub-memory units 1022a and the second group of sub-memory units 1022b, respectively. If the active window 1042 is set for the display screen 104, the present invention further stores the pixel data and the corresponding addresses of the leading pixels in the active window 1042 into the specific storage device 1031 other than the memory device 102. Accordingly, the writing rate of the pixel data from the display screen 104 into the memory device 102 is guaranteed as the target memory access rate Y.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention.