Summary of the invention
The purpose of the present invention is to provide a kind of programmable initial methods for display driver chip, it is intended in solution
The technical issues of stating.
The invention is realized in this way a kind of programmable initial method for display driver chip, described for showing
Show the programmable initial method of driving chip the following steps are included:
S1, the initialization directive in load piece external memory storage unit are simultaneously verified;
S2, after being parsed the instruction of verification and initialization directive is executed;
S3, judge that all initialization directive data execute and verification is all to pass through, if so, then performing the next step, if it is not, then
Return step S1;
S4, initialization successfully start up the colorful data of display driver chip progress and show.
A further technical solution of the present invention is: further comprising the steps of in the step S1:
S11, verification, which passes through, to be judged whether to every initialization directive of load, if passing through, S2 is thened follow the steps, if obstructed
It crosses, then unacceptable initialization directive is reloaded and executes step S1.
A further technical solution of the present invention is: further comprising the steps of in the step S2:
S21, judge pass through to whether every initialization directive of load executes, pass through if executing, then follow the steps S3, if
It is not carried out and passes through, then follow the steps S1, reload and do not pass through initialization directive and execute.
A further technical solution of the present invention is: further comprising the steps of before the step S1:
S0, reset initialization control unit start display driver chip initialization program.
A further technical solution of the present invention is: described external memory storage unit, for storing initialization directive and initialization
Data, described external memory storage unit using Nor Flash or Nand Flash or eMMC Flash or EEPROM or
Person's SD card etc., the access interface of described external memory storage unit be SPI interface or I2C interface or Uart interface or GPIO or
SDIO or USB etc..
A further technical solution of the present invention is: including initialization data, the initialization number in the initialization directive
According to data type include the initialization data of the various Memory of register configuration data, on piece of functional module in piece and initial
Change data check position data.
Another object of the present invention is to provide a kind of programmable initialization system for display driver chip, the use
Include in the programmable initialization system of display driver chip
Correction verification module is loaded, for loading the initialization directive in piece external memory storage unit and being verified;
Execution module is parsed, for after being parsed the instruction of verification and executing initialization directive;
Judgment module, for judging that all initialization directive data checks are all to pass through, if so, then executing chip starting mould
Block, if it is not, then returning to load correction verification module;
Chip starting module successfully starts up the colorful data of display driver chip progress for initialization and shows.
A further technical solution of the present invention is: further including in the load correction verification module
Judging unit is instructed, for judging whether that verification passes through to every initialization directive of load, if passing through, is executed
Parsing execution module reloads unacceptable initialization directive and executes load correction verification module if not passing through.
A further technical solution of the present invention is: further including in the parsing execution module
Judge execution unit, whether every initialization directive for judging to load, which executes, passes through, pass through if executing,
Judgment module is executed, is passed through if being not carried out, load correction verification module is executed and reloads not by initialization directive and executing.
A further technical solution of the present invention is: further including before the load correction verification module
Reset unit is used for reset initialization control unit, starts display driver chip initialization program;
Described external memory storage unit, for storing initialization directive and initialization data, described external memory storage unit is used
Be Nor Flash or Nand Flash or eMMC Flash or EEPROM or SD card etc., described external memory storage unit
Access interface be SPI interface or I2C interface or Uart interface or GPIO or SDIO or USB etc.;
It include initialization data in the initialization directive, the data type of the initialization data includes function mould in piece
The initialization data and initialization data check bit data of the various Memory of register configuration data, on piece of block.
OTP/MTP is not used substantially the beneficial effects of the present invention are: can do and reach display driver chip, is reduced into
This;It can be with each operation content of accuracy-control system initialization and time point;The initialization of each intermodule of adjustment system is first
The initialization sequencing and initialization in sequence and initialization operation interval and same inside modules difference initialization space afterwards
Operating interval.
Specific embodiment
As shown in Figs 1-4, it provided by the present invention for the programmable initial method of display driver chip, is described in detail such as
Under:
Step S0, initialization control unit reset starting display driver chip initialization program;Upon power-up of the system, internal
System can reset, initialization control unit also resets, and initialization control unit starts starting initialization display driver chip
Operation.Firstly, ID data in load piece external memory storage unit and being verified, it is ensured that access is and display driver chip system
Matched external storage space.If so, S1 is thened follow the steps, if it is not, then stopping initializing.It is stored in the ID in piece external storage space
Data will match with the ID demand of display driver chip system.
Step S1 loads the initialization directive in piece external memory storage unit and is verified;Initialization unit adds
The initialization directive stored in slide glass external memory, and the initialization directive being loaded into is verified, in the mistake of checking command
Cheng Zhong judges whether that verification passes through to every initialization directive of load, if passing through, thens follow the steps S2, right if not passing through
Unacceptable initialization directive is reloaded and executes step S1.
Step S2, after being parsed the instruction of verification and initialization directive is executed;After instruction check, instruction is issued
Into another implementation procedure, instruction is parsed in this process, instruction is executed after parsing, in instruction execution mistake
Cheng Zhong judges pass through to whether every initialization directive of load executes, and passes through if executing, S3 is thened follow the steps, if being not carried out
Pass through, then reloads and do not pass through initialization directive and execute step S1.
Step S3, judge that all initialization directive data execute and verification is all to pass through, if so, then perform the next step, if
No, then return step S1, loads next initialization directive, and verified and executed.
Step S4, initialization successfully starts up the colorful data of display driver chip progress and shows.It initializes successfully, display driving
Chip is in normal operating conditions, and the colorful data of receiving host transmission is waited to be shown or executed the life of host transmission
It enables, for example enters sleep state, completes user's display setting, adjustment display brightness etc..Here host includes that mobile terminal is answered
With processor, computer and game host processor etc..
Display driver chip initialization process are as follows: system electrification, system reset, initialization unit load outside piece
First instruction inside storage unit, executes instruction, judges whether all instructions is completed, if do not completed, continue to load
Next instruction, so circulation execute completion until all instructions, and so far entire chip initiation is completed.
Piece external storage chip stores all initialization directives and relevant initialization data.Initialization directive according to
Action type classification includes but is not limited to following:
Initial configuration short instruction, the shorter initialization data for including by the instruction internal are write chip interior configuration and are posted
Storage;
Initial configuration long instruction loads the initialization data in the specified piece external storage spatial position of the instruction, and writes
The memory space for the chip interior specified to the instruction;
Jump instruction jumps to next-hop initialization directive, loads and executes;
Time delay command, time delays adjust the operating interval of two initialization directives before and after the instruction;
Command for stopping is initialized, judges whether current initialization instruction is the last item initialization directive.
Initialization directive is different according to instruction action type, and included content is not also identical, and basic format is as follows:
Data type included by initialization data includes but is not limited to:
The register configuration data of functional module in piece;
The initialization data of the various Memory of on piece, the execution of the processor units such as including but not limited to CPU/MCU/DSP
Code (Code), Gamma Table Data, Demura Table Data etc..
Initialization data check bit data;
The format of initialization data is defined as follows:
The length of initialization directive can be unified regular length, be also possible to variable-length;Initialization data is variable
Length.Between instruction, between data, between instruction and data, not any position and space length limitation.Such as Fig. 4 institute
Show, initialization directive can be placed on the front in piece external storage space, initialization data is placed on behind initialization directive;It can also be with
Piece external storage space is sequentially stored according to corresponding according to actual demand.
Initialization directive executes sequence, can define and change by following two method:
One, it instructs comprising next in the initial position in piece external storage space in instruction definition, is executed in present instruction
After complete, go to the address to load next and instruct and execute.
It two, does not include the location information of next instruction in instruction definition, default refers in piece external storage space from currently
Next memory space address of end position is enabled to start to load next initialization directive.Other ground are jumped to if necessary
Location load is instructed and is executed, and the mode of jump instruction can be added behind present instruction to realize, wherein jump instruction is specified
The starting memory space position of next initialization directive.
Another object of the present invention is to provide a kind of programmable initialization system for display driver chip, the use
Include in the programmable initialization system of display driver chip
Correction verification module is loaded, for loading the initialization directive in piece external memory storage unit and being verified;
Execution module is parsed, for after being parsed the instruction of verification and executing initialization directive;
Judgment module, for judging that all initialization directive data checks are all to pass through, if so, then executing chip starting mould
Block, if it is not, then returning to load correction verification module;
Chip starting module successfully starts up the colorful data of display driver chip progress for initialization and shows.
Further include in the load correction verification module
Judging unit is instructed, for judging whether that verification passes through to every initialization directive of load, if passing through, is executed
Parsing execution module reloads unacceptable initialization directive and executes load correction verification module if not passing through.
Further include in the parsing execution module
Judge execution unit, whether every initialization directive for judging to load, which executes, passes through, pass through if executing,
Judgment module is executed, is passed through if being not carried out, load correction verification module is executed and reloads not by initialization directive and executing.
Further include before the load correction verification module
Reset unit resets starting display driver chip initialization program for initialization control unit;
Described external memory storage unit, for storing instruction and initialization data, described external memory storage unit is using Nor
Flash or Nand Flash or eMMC Flash or EEPROM or SD card etc., the access of described external memory storage unit connects
Mouth is SPI interface or I2C interface or Uart interface or GPIO or SDIO or USB etc..
The initialization directive includes specific initialization operation and shorter initialization data, such as several Byte
Deng the data type of the initialization data includes that the register configuration data, on piece of longer interior functional module are various
The initialization data and initialization data check bit data of Memory.
Display driver chip can be reached and do not use OTP/MTP substantially, reduce research and development and production cost;It can accurately control
Each operation content of system initialization processed and time point;The initialization that can according to need each intermodule of adjustment system is successive
The initialization sequencing and initialization behaviour in sequence and initialization operation interval and same inside modules difference initialization space
It is spaced.
The above is a preferred embodiment of the present invention in the initial method in display driver chip field, this
Invention is equally applicable to the initialization of other field chip.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.