Background technology
Along with the continuous maturation and the development of mobile multimedia technology, (Liquid Crystal Display LCD) has also obtained using more widely as the LCD of main display unit.LCD can be divided into following several according to interface: Microprocessor Interface, rgb interface and international video transmission standard interface, wherein, international video transmission standard interface is just obtaining application more and more widely.
The regulation vedio data transmits with behavior unit in the international video transmission standard, standard with/60 of 525 row is an example, the transformat of its horizontal direction as shown in Figure 1, each row of data stream is by stop timing reference signal (the End of Active Video of 4 words, EAV), the initial timing reference signal of the blank padding data of 268 words, 4 words (Start of Active Video, SAV) and the effective video view data of 1440 words form.For the task of the lcd controller that is applied to international video transmission standard interface LCD is exactly to be transferred to LCD behind the form coding that will need view data that LCD shows to require according to international video transmission standard to show, wherein, the coding of EAV and SAV be most important also be the most difficult part, its encryption algorithm is as shown in the table:
Data bits |
D7 |
D6 |
D5 |
D4 |
D3 |
D2 |
D1 |
D0 |
First word (FF) |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
Second word (00) |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
The 3rd word (00) |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
The 4th word (XY) |
1 |
F |
V |
H |
P3 |
P2 |
P1 |
P0 |
Wherein, F represents that the image data lines of present encoding belongs to 1 or 2 in the affiliated picture frame, if be in 1 then F be 0, otherwise then F is 1, V represents whether the image data lines of present encoding is in the blank fill area on the image vertical direction, if then V is 1, otherwise V is 0, H represents that this timing reference signal is EAV or SAV, if SAV then H be 1, otherwise H is 0, the value of P3 is that V and H carry out together or the result after the operation, the value of P2 be F and H carry out with or operation after the result, the value of P1 be F and V carry out with or operation after the result, the value of P0 be F and V and H carry out with or operation after the result.
Regulation according to international video transmission standard, video image in the data structure of vertical direction is: several row of beginning are white spaces, then followed by 1 effective video data, and be a white space, and then be 2 effective video data, then stipulate voluntarily but the concrete row that distributes in each zone is interval by the producer that produces LCD, for example Fig. 2 then shows the data structure of a kind of typical image vertical direction code stream of 525 standards, wherein, press the area type branch, the blank fill area of the capable and 264-282 behavior of 1-20 then, the valid data district that the 21-263 behavior is 1,283-525 is 2 valid data district; By a branch, then 4-265 is capable belongs to 1, and 266-525 and 1-3 belong to 2, and according to this data structure, the coding value of the F/V/H among EAV and the SAV is as shown in the table:
The row sequence number |
F |
V |
H(EAV) |
H(SAV) |
1-3 |
1 |
1 |
1 |
0 |
4-20 |
0 |
1 |
1 |
0 |
21-263 |
0 |
0 |
1 |
0 |
264-265 |
0 |
1 |
1 |
0 |
266-282 |
1 |
1 |
1 |
0 |
283-525 |
1 |
0 |
1 |
0 |
From the above, lcd controller is when the LCD of adaptive a kind of model, need know the feature line parameter that the vertical orientation data structure of its definition is provided being used to of providing by this LCD manufacturer earlier, for example according to above-mentioned typical data structure, the feature line parameter that it provides is 3,20,263,265,282 and 525.In the prior art, the feature line parameter that the manufacturer of lcd controller provides the manufacturer of LCD writes the register in the lcd controller, lcd controller is then encoded and is generated EAV and SAV signal by read parameter from register, but because the register of the above-mentioned feature line parameter of storage is not configurable in the prior art, promptly can't change the parameter in these registers, and the feature line parameter of the LCD of different manufacturers is not quite similar, make a kind of lcd controller can only more adaptively have the LCD of the limited model of same characteristic features line parameter, thereby the versatility of lcd controller is relatively poor.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
LCD Controller chip that the embodiment of the invention provides and LCD controller are stored the feature line parameter by using configurable register, thereby can make its adaptive LCD by the parameter of changing in its register for same lcd controller, strengthen the versatility of lcd controller widely with multiple model of different characteristic line parameter.
In one embodiment of the invention, because most LCD manufacturer only need can describe the data structure of the LCD image vertical direction code stream of its formulation with 6 feature line parameters (promptly adopting above-mentioned typical vertical orientation data organization definition usually), though the capable interval value in concrete each zone is not quite similar in each self-defining data structure of these producers, but the definition of the feature line parameter that it provides is mostly identical, so the embodiment of the invention is provided with 6 configurable registers in realizing the LCD Controller chip that the data of LCD display image are encoded, and relevant parameters is stored in the definition of the feature line parameter that adopts according to most of LCD producer respectively, when needs are adaptive when having same characteristic features line parameter definition but having other LCD of different parameters value, lcd controller producer writes relevant register by the new feature line parameter value that LCD producer is provided again by software and preserves, and can realize adaptive.
For LCD that can adaptive all models, an alternative embodiment of the invention is repartitioned the data structure of vertical direction code stream according to the requirement of international video transmission standard, and the data structure after repartitioning as shown in Figure 3.
In embodiments of the present invention, two white spaces between two the valid data district respectively are subdivided into former and later two zones, simultaneously, unified utilization characteristic parameter 1 to characteristic parameter 7 these 7 parameters are described this data structure, described characteristic parameter 1 to characteristic parameter 7 is defined as 1 front end white space initial row parameter respectively, 1 valid data zone initial row parameter, 1 rear end white space initial row parameter, 2 front end white space initial row parameters, 2 valid data zone initial row parameters, 2 rear end white space initial row parameters and 2 rear end white space end line parameters, accordingly, the embodiment of the invention is provided with 7 configurable registers and stores above-mentioned 7 characteristic parameters respectively in lcd controller.
For wanting adaptive LCD, the definition and the parameter value of the feature line parameter that lcd controller producer can be earlier provides according to this LCD producer, it is mapped on the data structure that the embodiment of the invention provides, to calculate the parameter value of above-mentioned characteristic parameter 1 to characteristic parameter 7, by software the parameter value that calculates is write in each corresponding register again, for example, (the feature line parameter is respectively 3 for above-mentioned typical data structure, 20,263,265,282 and 525), the data structure that it is mapped to the embodiment of the invention and provide then draws characteristic parameter 1 to the value of characteristic parameter 7 and is respectively 4,20,263,265,282,525 and 3.
In view of different demonstration standards, as 525 standards or 625 standards etc., the head office of its every frame display image is beyond count identical, so a preferred embodiment of the present invention is except providing above-mentioned characteristic parameter 1 to characteristic parameter 7, also use characteristic parameter 8 to describe total line number of every two field picture, a configurable register correspondingly is set simultaneously in lcd controller in order to storage characteristic parameter 8.
Fig. 4 shows the structure of the LCD Controller chip that the preferred embodiment of the present invention provides, described LCD Controller chip promptly is to realize in the lcd controller according to the part of international video transmission standard to coding video data, for convenience of explanation, only show the part relevant with the embodiment of the invention, details are as follows:
Uncoded video data is stored in video data storage unit 41 successively by the row preface, will be by international video transmission standard interface during at lcd controller to the LCD transmit image data, central processing unit (CenterProcess Unit, CPU) 45 control register interface units 47 are with 1 front end white space initial row register 411,1 valid data zone initial row register 412,1 rear end white space initial row register 413,2 front end white space initial row registers 414,2 valid data zone initial row registers 415,2 rear end white space initial row registers 416, each the individual features parameter value that presets in 2 rear end white space end line registers 417 and the head office's number register 418 sends to EAV generation unit 49 and SAV generation unit 410, under the control of CPU45, direct memory access unit 42 reads delegation's video data and sends to valid data generation unit 43 from video data storage unit 41,43 of valid data generation units generate effective image data transmission according to international video transmission standard coding and give coding synthetic output unit 44,46 codings of clear data filler cells generate clear data and send to the synthetic output unit 44 of coding, 410 of EAV generation unit 49 and SAV generation units draw the EAV data and the SAV data of current line and send to the synthetic output unit 44 of coding according to above-mentioned each characteristic parameter coding respectively, 44 coded datas with the each several part of reception of the synthetic output unit of coding are synthesized according to international video transmission standard predetermined data form, be transferred to LCD through interface then, at the beginning of the data transmission, clock count unit 48 begins transmission cycle is counted under the control of CPU45, when the data line end of transmission, CPU45 receives the look-at-me of clock count unit 48, then controls direct memory access unit 42 respectively, clear data filler cells 46, the respective handling that EAV generation unit 49 and SAV generation unit 410 are realized the next line video data.
The embodiment of the invention is according to the requirement of international video transmission standard, data structure to the vertical direction code stream is creatively segmented, and unified Definition 7/8 characteristic parameter data structure after repartitioning is described, in lcd controller, use configurable register to store these characteristic parameters simultaneously, thereby when the LCD of adaptive any model, only need above-mentioned each characteristic parameter register is reset, and need not change other hardware, realize the LCD that same lcd controller can adaptive all models, strengthened the versatility of lcd controller widely.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.