The present invention relates to a frame refresh method and circuit, and more particularly to a frame refresh method for use in a handheld electronic device.
Currently, handheld electronic devices such as mobile phones use an external video chip to enhance video performance and reduce power consumption. System pixel data is saved to a random access memory (RAM) providing pixel data updates when the power of the video chip is turned off. Pixel data is copied by the central processing unit (CPU) and sent to a video frame buffer for refreshing pixel data.
The disadvantage of conventional refreshing method is the frequent updating of pixel data of the display by the operating system. The CPU must write the pixel data into RAM and copy the pixel data out of RAM to the video frame buffer for every refresh. The copy procedure consumes excessive CPU resources and power and degrades deteriorate system performance.
An embodiment of the invention provides a frame refresh method applied to a handheld electronic device. First, the operating system instructs a CPU to write a pixel data, and then check the power state of a video chip. The CPU then writes the pixel data into a RAM or a video frame buffer according to the power state.
An embodiment of the invention additionally provides a handheld electronic device, comprising an operating system, a CPU, at least an address lookup tables, a RAM, and a video frame buffer. The central processing unit is instructed by the operating system. The at least one address lookup table is searched by the central processing unit. The random access memory is coupled to the central processing unit. The video frame buffer is installed in a video chip and coupled to the central processing unit and RAM. When the operating system instructs the central processing unit to write a pixel data, the central processing unit checking a power state of a video chip, and the central processing unit write the pixel data into the RAM or a video frame buffer according to the power state.
A detailed description is given in the following with reference to the accompanying drawings.
Embodiments of the present invention can be more fully understood by reading the subsequent detailed description and examples with reference made to the accompanying drawings, wherein:
The CPU 11 is instructed by the operating system 10 to write a pixel data and a virtual address. The address lookup table 20 installed in a memory 2 stores the virtual address and a corresponding physical address, and can be read by the CPU 11 according to a power state of a video chip for searching out the corresponding physical address. The physical address may be a first physical address or a second physical address. The first physical address is inside a RAM 12. The second physical address is inside a video frame buffer 13. The RAM 12 is coupled to the CPU 11 for receiving the pixel data during an off state and receiving pixel data copied from the video frame buffer 13 when the power state of the video chip is turned from an on state to the off state. The video frame buffer 13 is coupled to the CPU 11 and the RAM 12 for receiving the pixel data during an on state and receiving pixel data copied from the RAM 12 when the power state of the video chip is turned from the off state to the on state.
If the power state of the video chip is in an on state, the address lookup table is searched by the CPU for transforming the virtual address to a corresponding second physical address in step S5. The second physical address is inside the video frame buffer. In step S6, the pixel data is written to the second physical address of the video frame buffer by the CPU.
The frame refresh method and circuit of an embodiment of the invention eliminates the need to coping pixel data each time. Additionally, the video chip is turned off when the power of the video chip is in an off state, thus saving more power. Further, the content of the address lookup table can be changed according to the power state. When the power state is in an off state, the pixel data is written to the RAM directly. When the power state is in an on state, the pixel data is written to the video frame buffer directly, thus increasing the frame refresh performance.
While the invention has been described by way of example and in terms of the preferred embodiment, it is to be understood that the invention is not limited to the disclosed embodiment. On the contrary, it is intended to cover various modifications and similar arrangements as would be apparent to those skilled in the art. Therefore, the scope of the appended claims should be accorded the broadest interpretation to encompass all such modifications and similar arrangements.
Number | Date | Country | Kind |
---|---|---|---|
093109205 | Apr 2004 | TW | national |