A display control method with data under run self-recovery function, characterized in that, said method comprises:
- display control by an image processor and a timing controller (TCON),
- wherein the image processor further comprises a direct memory access (DMA);
- controller, an image data processor, an image layer combiner, and a first-in-first-out (FIFO, memory;
- wherein DMA controller is directly coupled to the image data processor, the image data processor is directly coupled to the image layer combiner, the image layer combiner is directly coupled to the FIFO memory, the DTC is directly coupled to the FIFO memory, the DTC is directly coupled to an external display device, and the under run state machine is directly coupled to each of the DTC, the under run data counter, the direct memory access DMA controller, the image layer combiner and the FIFO memory respectively,
- the DTC is configured to perform the steps of:
- accessing the FIFO memory, to acquire the image data stored in the FIFO memory;
- the DTC receiving a display trigger signal from the external display device and generating four types of control signals according to the image data stored in the FIFO memory, including a frame synchronization signal VSYNC, a data enable signal (DE), a line synchronization signal (HSYNC) and a display clock signal (PCLK);
- the DTC converting the image data into display data (PDATA), according to the VSYNC and the HSYNC;
- when the DE is valid, the DTC sending the PDATA to the external display device for image display according to the PCLK;
- the DTC sending the VSYNC and HSYNC and receiving an FIFO empty signal (FIFO_EMPTY) from the FIFO memory;
- while the DE remains valid, determining by the DTC if the FIFO_EMPTY is valid to indicate that the TCON has encountered a data under run problem when reading the FIFO memory;
- determining by the DTC that a data under run problem in the first state or the second sate has occurred through comparison between the data under run time length and a preset time length value;
- the DTC carrying out corresponding under run processing according to the judgment result,
- wherein, the under run state machine executes the following steps when the DTC determines a first under run state;
- the under run state machine sends a count increment instruction to the under run data counter if the FIFO_EMPTY is valid and a FIFO read request is valid,
- according to the value of the under run data logged by the under run data counter, when the DE is invalid in a line blanking or frame blanking region, the under run state machine sends a FIFO read request instruction to the FIFO memory to read data equal to the value of the under run data,
- the under run state machine sending a count decrement instruction to the under run data counter whenever a data item is read,
- the under state machine exiting the first run state and moving to a normal state when the under run counter is zero.