This application relates to the display field, and in particular, to a device and method for driving a display device.
A thin film transistor-liquid crystal display (TFT-LCD) has advantages of low costs, low power consumption, and high performance, and is widely used in fields such as electronic and digital products. To drive a liquid crystal panel, a timing control integrated circuit (TCON IC) on a control board needs to send data information and control signals to a source driver and a gate driver. Because data in a static read-only memory (SROM) in the TCON IC cannot be stored after a power failure, timing control code (TCON code) of the TCON IC is stored in an external memory.
After being powered on, the TCON IC is initialized, and the TCON code is read from the external memory by using a bus. The external memory is provided with a write protection port WP, and the WP is high by default, and a write operation is forbidden. When a program needs to be updated, the WP is artificially pulled low. A write operation can be performed on the external memory only in this case.
When a program needs to be updated, a write operation is performed on the external memory. If an accidental power failure occurs when a new program is not completely written, and in addition, an original program in an electrically erasable programmable read only memory (EEPROM) or a flash memory is erased before a new program is written, an improved effect of the new program cannot be achieved, and a liquid crystal screen cannot be driven. To ensure correct programming, after programming is completed, a power failure and a power-on usually need to be performed before reading is performed once again. Consequently, the load of programming is increased, and the production efficiency is reduced.
To resolve the foregoing technical problem, an objective of this application is to provide a drive device, comprising: an external memory, comprising: a storage module, storing a program and verification information; a checking module, connected to the storage module; a prompting pin, connected to the checking module; and a prompting module, connected to the prompting pin, where the checking module performs inspection processing on data and the verification information in the storage module, to obtain a result of the inspection processing, the checking module controls the prompting pin to output a level signal corresponding to the result of the inspection processing to the prompting module, and the prompting module sends a corresponding prompt signal.
Another objective of this application is to provide a drive method, comprising: a drive method, comprising: disposing an external memory; disposing a storage module in the external memory, where the storage module stores a program and verification information; disposing a checking module in the external memory; disposing a prompting pin on the external memory; and disposing a prompting module, connected to the prompting pin, where the checking module performs inspection processing on data and the verification information in the storage module, to obtain a result of the inspection processing, the checking module controls the prompting pin to output a level signal corresponding to the result of the inspection processing to the prompting module, and the prompting module sends a corresponding prompt signal.
Still another objective of this application is to provide a drive device, comprising: an external memory, comprising: a storage module, comprising a plurality of registers, and storing a program and verification information; a checking module, connected to the storage module; a prompting pin, connected to the checking module; and a prompting module, connected to the prompting pin, where the checking module performs inspection processing on data and the verification information in the storage module, to obtain a result of the inspection processing, the checking module controls the prompting pin to output a level signal corresponding to the result of the inspection processing to the prompting module, and the prompting module sends a corresponding prompt signal; when performing the inspection processing, the checking module reads the data and the verification information in the storage module, the data in the storage module is values of the plurality of registers, the verification information is data preset in the program, and the checking module performs calculation processing on the data in the storage module, and compares a calculation result with the verification information; and when the calculation result is equal to the verification information and neither of them is zero, the checking module sends an instruction, the prompting pin outputs a first level to the prompting module, and the prompting module sends a first prompt signal; and when the calculation result is not equal to the verification information or at least one of them is zero, the prompting pin outputs a second level to the prompting module, and the prompting module sends a second prompt signal.
According to this application, whether a program is correctly programmed is verified, to avoid reading a programmed program once again to confirm whether the program is correctly programmed after programming each time, thereby improving the production efficiency.
The following embodiments are described with reference to the accompanying drawings, used to exemplify specific embodiments for implementation of this application. Terms about directions mentioned in this application, such as “on”, “below”, “front”, “back”, “left”, “right”, “in”, “out”, and “side surface” merely refer to directions in the accompanying drawings. Therefore, the used terms about directions are used to describe and understand this application, and are not intended to limit this application.
The accompanying drawings and the description are considered to be essentially exemplary, rather than limitative. In the figures, modules with similar structures are represented by using the same reference number. In addition, for understanding and ease of description, the size and the thickness of each component shown in the accompanying drawings are arbitrarily shown, but this application is not limited thereto.
In addition, throughout this specification, unless otherwise explicitly described to have an opposite meaning, the word “include” is understood as including the component, but not excluding any other component. In addition, throughout this specification, “on” means that one is located above or below a target component and does not necessarily mean that one is located on the top based on a gravity direction.
To further describe technical means used in this application to achieve a predetermined inventive objective and technical effects of this application, specific implementations, structures, features, and effects of a drive device and a drive method provided according to this application are described in detail below with reference to the accompanying drawings and specific embodiments.
If an accidental power failure occurs when a new program is not completely written, and an original program in the external memory 100 is erased before a write operation, an improved effect of the new program cannot be achieved, and a liquid crystal screen cannot be driven. To ensure correct programming, after programming is completed, a power failure and a power-on are usually performed before reading is performed once again. Consequently, the load of programming is increased, and the production efficiency is reduced.
In an embodiment of this application, the external memory 200 is a flash memory. Like a read-write memory, data of the external memory 200 can be repeatedly read and written, and the data can also be kept for a long time without a current supply, and the price of the external memory 200 is low.
In an embodiment of this application, the storage module 102 includes a plurality of registers.
In an embodiment of this application, the checking module 203 is a signal detection circuit.
In an embodiment of this application, the checking module 203 is located in the external memory, and reads the data and the verification information in the storage module.
In an embodiment of this application, the data in the storage module 102 is values of the plurality of registers, and the verification information is data preset in the program.
In an embodiment of this application, each program corresponds to verification information included in the program, different programs correspond to different verification information, and it can be determined, by using verification information, whether a current program is a program corresponding to the verification information.
In an embodiment of this application, when performing inspection processing, the checking module 203 reads the data in the storage module 102 for calculation processing, and compares a calculation result with the verification information.
In an embodiment of this application, the prompting module 205 is a light-emitting prompting device, for example, a dual color light-emitting device.
In an embodiment of this application, the calculation result is equal to the verification information and neither of them is zero. The checking module 203 sends an instruction. The prompting pin 204 outputs a first level to the prompting module 205, so that the prompting module 205 emits green light as a first prompt signal, to prompt a user that programming succeeds.
In an embodiment of this application, the calculation result is not equal to the verification information, the prompting pin 204 outputs a second level to the prompting module, so that the prompting module 205 emits red light as a second prompt signal, to prompt a user that programming is abnormal.
In an embodiment of this application, referring to
In an embodiment of this application, referring to
In an embodiment of this application, referring to
In an embodiment of this application, referring to
In an embodiment of this application, referring to
In an embodiment of this application, referring to
Step S410: When updating a driver, first send a piece of particular verification information into a memory, and then program program code that needs to be updated.
Step S420: After a write operation of the memory is stopped, calculate values of registers, and add up the values to obtain a sum of the values of the registers through calculation.
Step S430: Determine whether the verification information is equal to the sum of the values of the registers and neither of them is equal to 0; if the verification information is equal to the sum of the values of the registers and neither of them is equal to 0, proceed to step S431, and otherwise, proceed to step S432.
Step S431: A checking module controls a prompting pin to output a first level to a prompting module, and the prompting module sends a first prompt signal, to prompt that programming succeeds.
Step S432: A checking module controls a prompting pin to output a second level to a prompting module, and the prompting module sends a second prompt signal, to prompt that programming is invalid.
The wordings such as “in some embodiments” and “in various embodiments” are repeatedly used. They usually do not refer to a same embodiment; but they may refer to a same embodiment. The words, such as “comprise”, “have”, and “include”, are synonyms, unless other meanings are indicated in the context thereof.
The foregoing descriptions are merely embodiments of this application, and are not intended to limit this application in any form. Although this application has been disclosed above through the specific embodiments, the embodiments are not intended to limit this application. Any person skilled in the art can make some variations or modifications, namely, equivalent changes, according to the foregoing disclosed technical content to obtain equivalent embodiments without departing from the scope of the technical solutions of this application. Any simple amendment, equivalent change, or modification made to the foregoing embodiments according to the technical essence of this application without departing from the content of the technical solutions of this application shall fall within the scope of the technical solutions of this application.
Number | Date | Country | Kind |
---|---|---|---|
201810980999.9 | Aug 2018 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2018/112918 | 10/31/2018 | WO | 00 |