[go: up one dir, main page]

CN105551450B - A kind of segment liquid crystal display screen display drive method and device - Google Patents

A kind of segment liquid crystal display screen display drive method and device Download PDF

Info

Publication number
CN105551450B
CN105551450B CN201610135299.0A CN201610135299A CN105551450B CN 105551450 B CN105551450 B CN 105551450B CN 201610135299 A CN201610135299 A CN 201610135299A CN 105551450 B CN105551450 B CN 105551450B
Authority
CN
China
Prior art keywords
character
segment
control register
value
liquid crystal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610135299.0A
Other languages
Chinese (zh)
Other versions
CN105551450A (en
Inventor
林洛其
于俊波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Transtek Medical Electronics Co Ltd
Original Assignee
Zhongshan Happy Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongshan Happy Electronics Co Ltd filed Critical Zhongshan Happy Electronics Co Ltd
Priority to CN201610135299.0A priority Critical patent/CN105551450B/en
Publication of CN105551450A publication Critical patent/CN105551450A/en
Application granted granted Critical
Publication of CN105551450B publication Critical patent/CN105551450B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/36Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using liquid crystals
    • G09G3/3611Control of matrices with row and column drivers
    • G09G3/3622Control of matrices with row and column drivers using a passive matrix
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/04Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of a single character by selection from a plurality of characters, or by composing the character by combination of individual elements, e.g. segments using a combination of such display devices for composing words, rows or the like, in a frame with fixed character positions
    • G09G3/16Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of a single character by selection from a plurality of characters, or by composing the character by combination of individual elements, e.g. segments using a combination of such display devices for composing words, rows or the like, in a frame with fixed character positions by control of light from an independent source
    • G09G3/18Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of a single character by selection from a plurality of characters, or by composing the character by combination of individual elements, e.g. segments using a combination of such display devices for composing words, rows or the like, in a frame with fixed character positions by control of light from an independent source using liquid crystals

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Liquid Crystal Display Device Control (AREA)

Abstract

The invention discloses a kind of segment liquid crystal display screen display drive method and device, methods described to include:Assignment procedure, the first generation step, the second generation step, obtaining step, and actuation step.According to the display drive method and device of the segment liquid crystal display screen of the embodiment of the present invention, it can save to spend and read the time of the verification of the related control information of section-type LCD logic chart acquisition and display control above repeatedly, reduce the time of hand-coding macrodefinition and control program need not be write again, obtained information accuracy is high, portable also very high.

Description

一种段式液晶显示屏显示驱动方法与装置Display driving method and device for a segment liquid crystal display

技术领域technical field

本发明涉及一种显示驱动方法与装置,特别是涉及一种段式液晶显示屏显示驱动方法与装置。The invention relates to a display driving method and device, in particular to a segment liquid crystal display driving method and device.

背景技术Background technique

随着电子技术的不断发展,大量便携式智能电子设备得到了广泛应用,在人们日常生活中发挥着不可或缺的作用。而这样的一些便携式智能电子设备(例如电子血压计、健康秤等)中,大多数采用成本相对低的段式LCD(液晶显示屏)实现血压、体重等数据的显示。目前的段式LCD本身不带有驱动电路,也不带有显示缓存,需要通过外接带显示缓存的驱动芯片来实现显示。一般情况下,段式LCD是根据某些特定设备(如电子血压计)的显示要求进行特殊定制的。通常,一个段式LCD上有上百个显示段,这些显示段分为两大类,一类为显示图形符号的,一个显示段对应一个图形符号;另一类为显示字符信息的,七个显示段对应一个字符。而实现这样的段式LCD显示的显示驱动方法是:根据显示位置找到控制相应显示段的控制寄存器,然后对控制寄存器的bit位进行赋值。例如要在液晶屏字符段“9”这个位置(从0开始,从左至右,从上至下算)显示“1”这样的信息,首先从段式液晶显示屏的逻辑图中找到控制“9”这个位置的控制寄存器(假设为seg10_11),然后对seg10_11这个控制寄存器进行操作。显示“1”对应显示代码为(SEG_B+SEG_C),假设SEG_B对应BIT1,SEG_C对应BIT2,则seg10_11的值应为0000 0110,就能实现在液晶屏字符段“9”这个位置显示“1”。具体实现过程如下:首先,通过查阅段式LCD逻辑图找出控制“9”这个位置的控制寄存器(seg10_11);接着,把当前要显示字符的逻辑点阵(与位置无关)转换成物理点阵(与位置相关);然后,在这个控制寄存器(seg10_11)上输出物理点阵(0000 0110)。通过以上方法编写的代码与具体的显示位置和显示字符相关,当增加一个新的显示字符或者更换LCD显示屏时均需要重新编写代码。由于一般的段式LCD屏有几十个图形符号段和十个以上的字符段,而每个字符段需要显示多达30个字符信息,这就大大增加了代码的复杂度,不利于代码的移植。With the continuous development of electronic technology, a large number of portable intelligent electronic devices have been widely used and play an indispensable role in people's daily life. Most of such portable smart electronic devices (such as electronic sphygmomanometers, health scales, etc.) use relatively low-cost segment LCDs (liquid crystal displays) to display data such as blood pressure and weight. The current segment LCD itself does not have a driving circuit, nor does it have a display buffer, and it needs to be connected with an external driver chip with a display buffer to realize the display. In general, segment LCDs are specially customized according to the display requirements of some specific devices (such as electronic blood pressure monitors). Usually, there are hundreds of display segments on a segment LCD, and these display segments are divided into two categories, one is for displaying graphic symbols, one display segment corresponds to one graphic symbol; the other is for displaying character information, seven The display segment corresponds to one character. The display driving method for realizing such a segment LCD display is: find the control register for controlling the corresponding display segment according to the display position, and then assign values to the bits of the control register. For example, to display information such as "1" at the position of "9" in the LCD screen (starting from 0, counting from left to right, and from top to bottom), first find the control "" from the logic diagram of the segment LCD screen. 9" the control register at this position (assumed to be seg10_11), and then operate on the control register seg10_11. The display code corresponding to "1" is (SEG_B+SEG_C), assuming that SEG_B corresponds to BIT1, and SEG_C corresponds to BIT2, then the value of seg10_11 should be 0000 0110, and "1" can be displayed at the position "9" of the LCD screen. The specific implementation process is as follows: First, find out the control register (seg10_11) that controls the position of "9" by consulting the segment LCD logic diagram; then, convert the logical dot matrix (regardless of position) of the character to be displayed into a physical dot matrix (relative to the position); then, output the physical lattice (0000 0110) on this control register (seg10_11). The code written by the above method is related to the specific display position and display characters. When adding a new display character or replacing the LCD display, the code needs to be rewritten. Since a general segment LCD screen has dozens of graphic symbol segments and more than ten character segments, and each character segment needs to display up to 30 character information, this greatly increases the complexity of the code, which is not conducive to the code transplant.

可见,为了驱动显示,需要花费大量的时间去反复查阅段式LCD逻辑图和控制电路图,以便获取相关的控制信息并把这样的控制信息转化成相关代码,这严重地降低了工作效率。显示段数量的庞大,也使得在控制信息获取中容易发生错误,导致显示内容出错。而且,电子设备的段式LCD更换相对频繁,每一次更换后的代码编写工作量也是极其大的。It can be seen that in order to drive the display, it takes a lot of time to repeatedly consult the segment LCD logic diagram and control circuit diagram in order to obtain relevant control information and convert such control information into relevant codes, which seriously reduces work efficiency. The large number of display segments also makes errors prone to occur in the acquisition of control information, resulting in errors in display content. Moreover, the segment LCDs of electronic devices are replaced relatively frequently, and the workload of writing code after each replacement is extremely large.

为了解决上述问题,也有其他不同的显示驱动方案。但是,都不能解决由于显示信息量庞大导致的需要花费大量的时间在反复阅读段式LCD逻辑图获取相关的控制信息、显示控制的核查以及驱动代码编写上面的问题,而且在移植方面也不是十分的出色。In order to solve the above problems, there are also other different display driver solutions. However, none of them can solve the problems that it takes a lot of time to repeatedly read the segment LCD logic diagram to obtain relevant control information, check the display control, and write the driver code due to the huge amount of displayed information, and it is not very good in terms of transplantation. excellent.

因此,需要寻找一种可以很好的解决上述问题的方法,从而提高工作效率,降低产品开发周期。Therefore, it is necessary to find a method that can well solve the above problems, thereby improving work efficiency and reducing product development cycle.

发明内容Contents of the invention

本发明的目的是为了克服现有技术存在的缺陷,提供一种段式液晶显示屏显示驱动方法与装置。为了实现这一目的,本发明所采取的技术方案如下。The object of the present invention is to provide a display driving method and device for a segment liquid crystal display in order to overcome the defects in the prior art. In order to realize this object, the technical scheme that the present invention takes is as follows.

按照本发明实施例的第一方面,提供一种段式液晶显示屏显示驱动方法,包括:赋值步骤,用于从段式液晶显示屏的逻辑图提取每一个显示段信息,并给每一个显示段赋予二维坐标值;第一生成步骤,用于生成字符段控制寄存器、映射表索引值以及掩码的宏定义和/或生成图形符号段控制寄存器、控制位以及操作的宏定义;第二生成步骤,用于生成包含上述宏定义信息的头文件,把该头文件加入液晶显示屏显示驱动的工程当中;获取步骤,用于获取所需要显示的信息;以及驱动步骤,对于图形符号段,通过液晶显示屏电子表格生成的操作宏定义进行操作以实现图形符号的显示;和/或对于字符段,利用映射表将字符的逻辑点阵转换成物理点阵,以实现字符显示。According to the first aspect of the embodiments of the present invention, there is provided a display driving method for a segmented liquid crystal display, including: an assignment step for extracting each display segment information from the logic diagram of a segmented liquid crystal display, and giving each display The segment assigns two-dimensional coordinate values; the first generation step is used to generate the macro definition of the character segment control register, the mapping table index value and the mask and/or generate the macro definition of the graphic symbol segment control register, control bits and operation; the second The generating step is used to generate a header file containing the above-mentioned macro definition information, and the header file is added to the LCD display driver project; the obtaining step is used to obtain the information to be displayed; and the driving step is for the graphic symbol segment, Operate through the operation macro definition generated by the LCD electronic form to realize the display of graphic symbols; and/or for the character field, use the mapping table to convert the logical dot matrix of the character into a physical dot matrix to realize the character display.

按照再一个实施例,所述驱动步骤对于字符段进一步包括:根据字符的ASCII码获取其在字符逻辑点阵表中的索引值;根据索引值在字符逻辑点阵映射表中取得所述字符的逻辑点阵;通过字符显示位置与物理段关系表得到字符段控制寄存器、映射表索引值、掩码;通过得到的字符段控制寄存器、映射表索引值、掩码,结合字符逻辑点阵到物理点阵的映射索引表,将字符逻辑点阵转换成物理点阵,并返回字符物理点阵掩码后的值;根据获得的字符段掩码以及字符物理点阵掩码后的值得到数码管中各个bit位的值;以及根据字符段控制寄存器信息选中相应的数码管,根据获得的各个bit位的值实现相应的字符显示。According to yet another embodiment, the driving step further includes for the character segment: obtaining its index value in the character logic dot matrix table according to the ASCII code of the character; obtaining the character's index value in the character logic dot matrix mapping table according to the index value Logical dot matrix; obtain the character segment control register, mapping table index value, and mask through the character display position and physical segment relationship table; through the obtained character segment control register, mapping table index value, and mask, combine the character logical dot matrix to the physical Dot matrix mapping index table, convert the character logical dot matrix into physical dot matrix, and return the value after the character physical dot matrix mask; get the digital tube according to the obtained character segment mask and the value after the character physical dot matrix mask The value of each bit; and select the corresponding digital tube according to the information of the character segment control register, and realize the corresponding character display according to the obtained value of each bit.

按照又一个实施例,可选的是,在所述赋值步骤中,将段式液晶显示屏逻辑图的行作为X轴,列作为Y轴进行赋值。According to yet another embodiment, optionally, in the step of assigning values, the rows of the logic diagram of the segmented liquid crystal display screen are used as the X-axis, and the columns are used as the Y-axis for assignment.

按照另一个实施例,优选的是,在所述第一生成步骤中,对图形符号段的XY坐标值,通过4X+Y的值分别对控制寄存器的位数取整和取模,以生成该图形符号段相关的控制寄存器、控制位以及操作的宏定义;和/或对字符段的XY坐标值,通过4X+Y的值分别对控制寄存器的位数取整和取模,以生成该字符段相关的控制寄存器、映射表索引值、掩码的宏定义。According to another embodiment, preferably, in the first generating step, for the XY coordinate value of the graphic symbol segment, the value of 4X+Y is used to round and modulo the number of digits of the control register respectively, so as to generate the The macro definition of the control register, control bit and operation related to the graphic symbol segment; and/or for the XY coordinate value of the character segment, use the value of 4X+Y to round and modulo the number of digits of the control register respectively to generate the character Macro definitions of segment-related control registers, mapping table index values, and masks.

按照其他一个实施例,可选的是,在所述第二生成步骤中,通过利用电子表格或者脚本生成包含宏定义信息的头文件。According to another embodiment, optionally, in the second generating step, a header file containing macro definition information is generated by using a spreadsheet or a script.

按照本发明实施例的第二方面,提供一种段式液晶显示屏显示驱动装置,包括:赋值模块,用于从段式液晶显示屏的逻辑图提取每一个显示段信息,并给每一个显示段赋予二维坐标值;第一生成模块,用于生成字符段控制寄存器、映射表索引值以及掩码的宏定义和/或生成图形符号段控制寄存器、控制位以及操作的宏定义;第二生成模块,用于生成包含上述宏定义信息的头文件,把该头文件加入液晶显示屏显示驱动的工程当中;获取模块,用于获取所需要显示的信息;以及驱动模块,对于图形符号段,通过液晶显示屏电子表格或脚本生成的操作宏定义进行操作以实现图形符号的显示;和/或对于字符段,利用映射表将字符的逻辑点阵转换成物理点阵,以实现字符显示。According to the second aspect of the embodiment of the present invention, there is provided a display driving device for a segment liquid crystal display, including: an assignment module, used to extract information of each display segment from the logic diagram of a segment liquid crystal display, and assign each display segment The segment assigns two-dimensional coordinate values; the first generation module is used to generate the macro definition of the character segment control register, the mapping table index value and the mask and/or generate the macro definition of the graphic symbol segment control register, control bits and operation; the second The generation module is used to generate a header file containing the above-mentioned macro definition information, and the header file is added to the LCD display driver project; the acquisition module is used to obtain the information to be displayed; and the driver module, for the graphic symbol segment, Operate through the operation macro definition generated by the LCD electronic form or script to realize the display of graphic symbols; and/or for the character segment, use the mapping table to convert the logical dot matrix of the character into a physical dot matrix to realize the character display.

按照一个实施例,所述驱动模块配置成对于字符段:根据字符的ASCII码获取其在字符逻辑点阵表中的索引值;根据索引值在字符逻辑点阵映射表中取得所述字符的逻辑点阵;通过字符显示位置与物理段关系表得到字符段控制寄存器、映射表索引值、掩码;通过得到的字符段控制寄存器、映射表索引值、掩码,结合字符逻辑点阵到物理点阵的映射索引表,将字符逻辑点阵转换成物理点阵,并返回字符物理点阵掩码后的值;根据获得的字符段掩码以及字符物理点阵掩码后的值得到数码管中各个bit位的值;以及根据字符段控制寄存器信息选中相应的数码管,根据获得的各个bit位的值实现相应的字符显示。According to one embodiment, the drive module is configured to: for the character segment: obtain its index value in the character logic dot matrix table according to the ASCII code of the character; obtain the logic of the character in the character logic dot matrix mapping table according to the index value Dot matrix; obtain the character segment control register, mapping table index value, and mask through the character display position and physical segment relationship table; through the obtained character segment control register, mapping table index value, and mask, combine the character logical dot matrix to the physical point Array mapping index table, convert the character logical dot matrix into physical dot matrix, and return the value after the character physical dot matrix mask; according to the obtained character segment mask and the value after the character physical dot matrix mask, get the The value of each bit; and select the corresponding digital tube according to the information of the character field control register, and realize the corresponding character display according to the obtained value of each bit.

按照再一个实施例,可选的是,所述赋值模块将段式液晶显示屏逻辑图的行作为X轴、列作为Y轴进行赋值。According to yet another embodiment, optionally, the assignment module assigns values by using the rows of the logic diagram of the segment liquid crystal display as the X axis and the columns as the Y axis.

按照另一个实施例,优选的是,所述第一生成模块对图形符号段的XY坐标值,通过4X+Y的值分别对控制寄存器的位数取整和取模,以生成该图形符号段相关的控制寄存器、控制位以及操作的宏定义;和/或对字符段的XY坐标值,通过4X+Y的值分别对控制寄存器的位数取整和取模,以生成该字符段相关的控制寄存器、映射表索引值、掩码的宏定义。According to another embodiment, it is preferred that the first generating module rounds and moduloes the number of digits of the control register through the value of 4X+Y for the XY coordinate value of the graphic symbol segment to generate the graphic symbol segment Related control registers, control bits, and macro definitions of operations; and/or for the XY coordinate values of the character field, use the value of 4X+Y to round and modulo the number of digits in the control register to generate the character field-related Macro definitions for control registers, mapping table index values, and masks.

按照又一个实施例,可选的是,所述第二生成模块利用电子表格或者脚本生成包含宏定义信息的头文件。According to yet another embodiment, optionally, the second generation module generates a header file containing macro definition information by using a spreadsheet or a script.

按照本发明实施例的段式液晶显示屏的显示驱动方法与装置, 可以节省花在反复阅读段式LCD逻辑图获取相关的控制信息以及显示控制的核查上面的时间,减少手工编写宏定义的时间并且不需要重新编写控制程序,得到信息准确性高,可移植性非常高。According to the display driving method and device of the segment-type liquid crystal display of the embodiment of the present invention, the time spent on repeatedly reading the segment-type LCD logic diagram to obtain relevant control information and verification of display control can be saved, and the time for manually writing macro definitions can be reduced. Moreover, the control program does not need to be rewritten, and the obtained information has high accuracy and high portability.

下面将结合附图并通过实施例对本发明进行具体说明,其中相同或基本相同的部件采用相同的附图标记指示。The present invention will be specifically described below with reference to the accompanying drawings and through embodiments, wherein the same or substantially the same components are indicated by the same reference numerals.

附图说明Description of drawings

图1是按照本发明一个实施例的段式液晶显示屏显示驱动方法的示意性流程图;FIG. 1 is a schematic flow chart of a display driving method for a segment liquid crystal display according to an embodiment of the present invention;

图2是截取的一小部分段式LCD逻辑图;Figure 2 is a small segmental LCD logic diagram intercepted;

图3是用二维坐标系表示的逻辑图;Fig. 3 is a logic diagram represented by a two-dimensional coordinate system;

图4是按照本发明一个实施例的段式液晶显示屏显示驱动过程的示意图;4 is a schematic diagram of a display driving process of a segment liquid crystal display according to an embodiment of the present invention;

图5示出了按照本发明一个实施例的根据段式LCD逻辑图提取的显示段信息并赋相应的XY坐标;Fig. 5 shows the display segment information extracted according to the segment LCD logic diagram and assigned corresponding XY coordinates according to an embodiment of the present invention;

图6是按照本发明一个实施例的段式液晶显示屏显示驱动装置的示意图;Fig. 6 is a schematic diagram of a display driving device for a segment liquid crystal display according to an embodiment of the present invention;

图7是按照本发明另一个实施例的段式液晶显示屏显示驱动装置的示意图。FIG. 7 is a schematic diagram of a display driving device for a segment liquid crystal display according to another embodiment of the present invention.

具体实施方式Detailed ways

如图1所示,是按照本发明一个实施例的段式液晶显示屏显示驱动方法的示意性流程图,包括:赋值步骤100,第一生成步骤102,第二生成步骤104,获取步骤106,以及驱动步骤108。其中赋值步骤100用于从段式液晶显示屏的逻辑图提取每一个显示段信息,并给每一个显示段赋予二维坐标值;第一生成步骤102用于生成字符段控制寄存器、映射表索引值以及掩码的宏定义,和/或生成图形符号段控制寄存器、控制位以及操作的宏定义;第二生成步骤104用于生成包含上述宏定义信息的头文件,把该头文件加入液晶显示屏显示驱动的工程当中;获取步骤106用于获取所需要显示的信息;以及在驱动步骤108中,对于图形符号段,通过液晶显示屏电子表格生成的操作宏定义进行操作以实现图形符号的显示,和/或对于字符段,利用映射表将字符的逻辑点阵转换成物理点阵,以实现字符显示。下面通过实例对上述步骤进行具体说明。As shown in FIG. 1 , it is a schematic flowchart of a display driving method for a segment liquid crystal display according to an embodiment of the present invention, including: an assignment step 100, a first generation step 102, a second generation step 104, and an acquisition step 106. And drive step 108 . Wherein the assignment step 100 is used to extract each display segment information from the logic diagram of the segment type liquid crystal display, and assigns a two-dimensional coordinate value to each display segment; the first generation step 102 is used to generate a character segment control register, a mapping table index The macro definition of value and mask, and/or generate the macro definition of graphic symbol segment control register, control bit and operation; The second generation step 104 is used to generate the header file that contains above-mentioned macro definition information, add this header file to liquid crystal display In the engineering of the screen display drive; the acquisition step 106 is used to obtain the information to be displayed; and in the driving step 108, for the graphic symbol segment, the operation macro definition generated by the electronic form of the liquid crystal display is operated to realize the display of the graphic symbol , and/or for the character field, use the mapping table to convert the logical dot matrix of the character into a physical dot matrix, so as to realize the character display. The above-mentioned steps will be specifically described below through examples.

如图2所示,为段式LCD逻辑图截取的一小部分。一般的段式LCD逻辑图由行和列组成,列代表地线(即共线),行代表控制寄存器的上半段或下半段。例如,SEG0是控制寄存器0的上半段,SEG1是控制寄存器0的下半段,其中上半段对应的控制位为bit0到bit3,下半段对应的控制位为bit4到bit7;行列中的单元格代表具体的显示段,例如COM0和SEG0对应的显示段为KPA。As shown in Figure 2, it is a small part of the segmented LCD logic diagram. A general segment LCD logic diagram consists of rows and columns, where the columns represent the ground (i.e. collinear), and the rows represent the upper or lower half of the control register. For example, SEG0 is the upper half of control register 0, and SEG1 is the lower half of control register 0. The corresponding control bits of the upper half are bit0 to bit3, and the corresponding control bits of the lower half are bit4 to bit7; The cell represents a specific display segment, for example, the display segment corresponding to COM0 and SEG0 is KPA.

把段式LCD的逻辑图用二维坐标系来表示,在一个实施例中,可将行用X轴表示,列用Y轴表示,单元格就是二维坐标系中的点。如图3所示,为用二维坐标系表示的逻辑图,其中X轴从左到右,Y轴从上到下。如果把这些二维平面的点转化成一维平面中的点,那么一维平面上的这些点就等于4X+Y。这样做的目的是为了把二维平面的点转化成一维平面中的点,与程序逻辑中的位地址一一对应起来,这样就能通过使用数学公式算出每个显示段对应的控制寄存器和控制位。The logic diagram of the segment LCD is represented by a two-dimensional coordinate system. In one embodiment, the rows can be represented by the X-axis, and the columns can be represented by the Y-axis, and the cells are points in the two-dimensional coordinate system. As shown in Figure 3, it is a logic diagram represented by a two-dimensional coordinate system, where the X axis runs from left to right, and the Y axis runs from top to bottom. If these points on the two-dimensional plane are transformed into points on the one-dimensional plane, then these points on the one-dimensional plane are equal to 4X+Y. The purpose of this is to convert the points of the two-dimensional plane into points in the one-dimensional plane, and correspond to the bit addresses in the program logic one by one, so that the control register and control register corresponding to each display segment can be calculated by using mathematical formulas. bit.

先判断显示段是属于字符段还是图形符号段。如果是图形符号段,则根据该图形符号段的XY坐标值,通过将4X+Y的值分别对控制寄存器的位数取整和取模,在一个实施例中控制寄存器的位数通常为八位,则对4X+Y的值取整和取模可表示为(4X+Y)/8和(4X+Y)%8,于是得到该图形符号段相关的控制寄存器、控制位的信息,以便快速生成该图形符号段相关的控制寄存器、控制位及操作的宏定义;如果是字符段,则根据该字符段的XY坐标值,通过将4X+Y的值分别对8取整和取模,即(4X+Y)/8和(4X+Y)%8,得到该字符段相关的控制寄存器信息,以便快速生成该字符段相关的控制寄存器、映射表索引值、掩码的宏定义。First judge whether the display segment belongs to a character segment or a graphic symbol segment. If it is a graphic symbol segment, then according to the XY coordinate value of the graphic symbol segment, the number of bits in the control register is rounded and moduloed by the value of 4X+Y respectively. In one embodiment, the number of bits in the control register is usually eight bit, then the value rounding and modulus of 4X+Y can be expressed as (4X+Y)/8 and (4X+Y)%8, so the control register and control bit information related to the graphic symbol segment are obtained, so that Quickly generate the macro definitions of control registers, control bits and operations related to the graphic symbol segment; if it is a character segment, according to the XY coordinate value of the character segment, the value of 4X+Y is rounded to 8 and moduloed, respectively, That is (4X+Y)/8 and (4X+Y)%8, to obtain the control register information related to the character segment, so as to quickly generate the macro definition of the control register, mapping table index value, and mask related to the character segment.

通过上述方法可以快速批量得到每一个显示段(包括字符段、图形符号段)相应的控制寄存器、控制位或者掩码等显示驱动编写中需要用到的相关信息,大大节省了花费在反复查阅段式LCD逻辑图以求人工获取所需用到的控制寄存器、控制位或者掩码等相关信息实现显示控制上面的时间。Through the above method, the corresponding control registers, control bits or masks of each display segment (including the character segment and graphic symbol segment) can be quickly obtained in batches. Type LCD logic diagram in order to manually obtain the required control registers, control bits or masks and other related information to realize the time on the display control.

如图4所示,按照一个实施例,具体流程可如下:As shown in Figure 4, according to an embodiment, the specific process may be as follows:

开始后(框200),从段式液晶显示屏的逻辑图提取段式液晶显示屏的每一个显示段信息,并给每一个显示段一个XY坐标值(具体如上所述)(框202)。After starting (block 200 ), extract the information of each display segment of the segment type LCD from the logic diagram of the segment type LCD, and give each display segment an XY coordinate value (specifically as described above) (block 202 ).

接着,判断显示段是字符段还是图形符号段(框204)。如果是字符段,生成字符段控制寄存器、映射表索引值、掩码的宏定义(框206);如果是图形符号段,生成图形符号段控制寄存器、控制位及操作的宏定义(框208)。Next, a determination is made as to whether the display segment is a character segment or a graphic symbol segment (block 204). If it is a character segment, generate the macro definition of the character segment control register, mapping table index value, and mask (box 206); if it is a graphic symbol segment, generate the macro definition of the graphic symbol segment control register, control bits and operations (box 208) .

然后,生成包含上述宏定义信息的头文件,并把该头文件加入LCD显示驱动的工程当中(框210)。在一个实施例中,生成包含上述宏定义信息的头文件时使用的工具包括excel或者脚本。Then, generate a header file containing the above-mentioned macro definition information, and add the header file into the LCD display driver project (block 210 ). In one embodiment, the tools used to generate the header file containing the above macro definition information include excel or script.

接下来,获取所需要显示的信息(框212),并判断所需要显示的信息是图形符号段还是字符段(框214)。对于图形符号段,通过LCD电子表格生成的操作宏定义进行操作(框216),来实现图形符号的显示(框218);对于字符段,则段式LCD显示驱动进一步包括:获取所要显示的字符和显示位置(框220);根据字符的ASCII码,获取它在字符逻辑点阵表中的索引值(框222);根据索引值,在字符逻辑点阵映射表中取得字符的逻辑点阵(框224);通过字符显示位置与物理段关系表,得到字符段控制寄存器、映射表索引值、掩码(框226);通过得到的字符段控制寄存器、映射表索引值、掩码,结合字符逻辑点阵到物理点阵的映射索引表,将字符逻辑点阵转换成物理点阵,并返回字符物理点阵掩码后的值(框228);根据获得的字符段掩码以及字符物理点阵掩码后的值,得到数码管中各个bit位的值(框230);根据字符段控制寄存器信息选中相应的数码管,以及获得的各个bit位的值,实现相应的字符显示(框232)。随后,结束流程(框234)。Next, acquire the information to be displayed (block 212 ), and determine whether the information to be displayed is a graphic symbol segment or a character segment (block 214 ). For the graphic symbol segment, operate through the operation macro definition generated by the LCD electronic form (box 216) to realize the display of the graphic symbol (box 218); for the character segment, the segment LCD display driver further includes: obtaining the character to be displayed and display position (box 220); according to the ASCII code of the character, obtain its index value (box 222) in the character logical lattice table; according to the index value, obtain the logical lattice of the character in the character logical lattice mapping table ( Box 224); Obtain the character segment control register, mapping table index value, and mask through the character display position and physical segment relationship table (box 226); through the obtained character segment control register, mapping table index value, and mask, combine the character The mapping index table from logical lattice to physical lattice converts the character logical lattice into physical lattice, and returns the value after the character physical lattice mask (box 228); according to the obtained character segment mask and character physical point Value after array mask, obtain the value of each bit in the nixie tube (box 230); select corresponding nixie tube according to the information of character field control register, and the value of each bit that obtains, realize corresponding character display (box 232 ). Then, the process ends (block 234).

如图5所示,是根据段式LCD逻辑图提取的显示段信息,并赋了相应的XY坐标。下面以此作为举例,来说明按照本发明实施例的显示驱动方法的具体使用过程。As shown in Figure 5, the display segment information is extracted according to the segment LCD logic diagram, and the corresponding XY coordinates are assigned. The following takes this as an example to illustrate the specific application process of the display driving method according to the embodiment of the present invention.

假设要显示KPA这个显示信息,首先判断它是属于图形符号段还是字符段,明显属于图形符号段。于是,根据图形符号段的处理进行如下步骤:Assuming that the display information of KPA is to be displayed, it is first judged whether it belongs to the graphic symbol segment or the character segment, which obviously belongs to the graphic symbol segment. Then, according to the processing of the graphical symbol segment, the following steps are performed:

(1)根据公式4X+Y得出一个数,该例中为0;(1) A number is obtained according to the formula 4X+Y, which is 0 in this example;

(2)控制寄存器的计算:(4X+Y)/8=0(对8取整),得出控制寄存器为0;(2) Calculation of the control register: (4X+Y)/8=0 (round up to 8), and the control register is 0;

(3)控制位(bit位)的计算:(4X+Y)%8=0(对8取模),得出bit位为0;(3) Calculation of the control bit (bit): (4X+Y)%8=0 (modulo 8), and the bit is 0;

(4)对相应的操作进行宏定义:(4) Make a macro definition for the corresponding operation:

#define SET_KPA_VAL(n) { SEG_PORT_0.bit.bit0=(n);}#define SET_KPA_VAL(n) { SEG_PORT_0.bit.bit0=(n);}

(5)操作宏定义:(5) Operation macro definition:

点亮:SET_KPA_VAL(1);On: SET_KPA_VAL(1);

熄灭:SET_KPA_VAL(0);Off: SET_KPA_VAL(0);

(在此,对相关bit位,默认置1为点亮,置0为熄灭,按实际情况处理。)(Here, for the relevant bit, set 1 to light up by default, set 0 to turn off, and deal with it according to the actual situation.)

此外,假设要在液晶屏字符段9这个位置(从0开始,从左至右,从上至下算)显示“1”这个显示信息。首先,判断它是属于图形符号段还是字符段,明显属于字符段,则根据字符段的处理进行如下步骤:In addition, it is assumed that the display information of "1" is to be displayed at the position of character segment 9 of the LCD screen (starting from 0, counting from left to right, and from top to bottom). First, judge whether it belongs to the graphic symbol segment or the character segment, and obviously belongs to the character segment, then perform the following steps according to the processing of the character segment:

(1)根据“1”的ASCII值,获取它在字符逻辑点阵表中的索引值,该例中为1;(1) Obtain its index value in the character logic dot matrix table according to the ASCII value of "1", which is 1 in this example;

(2)根据索引值1在逻辑点阵映射表中获取到逻辑点阵:(LOGSEG_B+LOGSEG_C);(2) Obtain the logical lattice in the logical lattice mapping table according to the index value 1: (LOGSEG_B+LOGSEG_C);

(3)通过位置信息POS(该例中为9)在字符显示位置与物理段关系表中获取到字符段上下半段控制寄存器、映射表索引值、掩码分别为:(3) Through the position information POS (9 in this example), the upper and lower half of the character segment control register, mapping table index value, and mask are obtained from the character display position and physical segment relationship table:

上半段:SEG_CHR_9_UP_PORT, SEG_CHR_9_UP_IDX, SEG_CHR_9_UP_MSKUpper half: SEG_CHR_9_UP_PORT, SEG_CHR_9_UP_IDX, SEG_CHR_9_UP_MSK

下半段:SEG_CHR_9_DW_PORT, SEG_CHR_9_DW_IDX, SEG_CHR_9_DW_MSKLower half: SEG_CHR_9_DW_PORT, SEG_CHR_9_DW_IDX, SEG_CHR_9_DW_MSK

(在本例中,上、下半段指控制寄存器的低四位、高四位。)(In this example, the upper and lower halves refer to the lower and upper nibbles of the control register.)

a)控制寄存器(PORT口)计算:该例中,SEG_CHR_9_UP_PORT是4X+Y/8(对8取整)即(4*10+0)/ 8=5(用该半段的起始坐标,即X=10,Y=0),SEG_CHR_9_DW_PORT是(4*11+0)/8=5(用该半段的起始坐标,即X=11,Y=0);a) Calculation of the control register (PORT port): In this example, SEG_CHR_9_UP_PORT is 4X+Y/8 (round up to 8) that is (4*10+0)/8=5 (using the starting coordinates of the half segment, ie X=10, Y=0), SEG_CHR_9_DW_PORT is (4*11+0)/8=5 (use the starting coordinates of the half segment, that is, X=11, Y=0);

b)索引值(IDX)计算:SEG_CHR_9_UP_MSK与SEG_CHR_0_UP_MSK(SEG_CHR_0_UP_MSK和自身)对比,相同为0,不同为1;b) Index value (IDX) calculation: compare SEG_CHR_9_UP_MSK with SEG_CHR_0_UP_MSK (SEG_CHR_0_UP_MSK and itself), the same is 0, and the difference is 1;

c)掩码(MSK)计算:根据4X+Y算出字符段每一个bit位对应的值,如下表1所示,c) Mask (MSK) calculation: Calculate the value corresponding to each bit of the character field according to 4X+Y, as shown in Table 1 below,

表1 字符段每一个bit位对应的值Table 1 The value corresponding to each bit of the character field

再用(4X+Y)%8(对8取模)得出每一个bit位对应的值,如下表2所示,Then use (4X+Y)%8 (modulo 8) to get the value corresponding to each bit, as shown in Table 2 below,

表2 每一个bit位对应的值Table 2 The value corresponding to each bit

其中0对应bit0,1对应bit1,2对应bit2,...,如此类推。Among them, 0 corresponds to bit0, 1 corresponds to bit1, 2 corresponds to bit2, ..., and so on.

所以SEG_CHR_9_UP_MSK=(~(bit0+bit1+bit2))=(~(2^0+2^1+2^2))= (~(7));So SEG_CHR_9_UP_MSK=(~(bit0+bit1+bit2))=(~(2^0+2^1+2^2))= (~(7));

SEG_CHR_9_DW_MSK= (~(bit4+bit5+bit6+bit7))=(~(2^4+2^5+2^6+2^7)=(~(240))。SEG_CHR_9_DW_MSK= (~(bit4+bit5+bit6+bit7))=(~(2^4+2^5+2^6+2^7)=(~(240)).

根据上面的计算得出以下信息:According to the above calculations, the following information is obtained:

(4)通过索引值IDX得到字符逻辑点阵到物理点阵的映射表如下:(4) Obtain the mapping table from the character logical lattice to the physical lattice through the index value IDX as follows:

const U8 logseg_physeg_tab2[TOTAL_SEG_NUM]= const U8 logseg_physeg_tab2[TOTAL_SEG_NUM]=

{{

SEG_A1 , // 'logseg-a' SEG_A1 , // 'logseg-a'

SEG_B1 , // 'logseg-b' SEG_B1 , // 'logseg-b'

SEG_C1, // 'logseg-c' SEG_C1, // 'logseg-c'

SEG_D1, // 'logseg-d' SEG_D1, // 'logseg-d'

SEG_E1, // 'logseg-e' SEG_E1, // 'logseg-e'

SEG_F1, // 'logseg-f' SEG_F1, // 'logseg-f'

SEG_G1 // 'logseg-g' SEG_G1 // 'logseg-g'

}; };

而在头文件的宏定义,也定义了如下信息: The macro definition in the header file also defines the following information:

#define SEG_E1 BIT6 #define SEG_E1 BIT6

#define SEG_G1 BIT5 #define SEG_G1 BIT5

#define SEG_F1 BIT4 #define SEG_F1 BIT4

#define SEG_D1 BIT7 #define SEG_D1 BIT7

#define SEG_C1 BIT2 #define SEG_C1 BIT2

#define SEG_B1 BIT1 #define SEG_B1 BIT1

#define SEG_A1 BIT0 #define SEG_A1 BIT0

(5)将字符逻辑点阵转换成物理点阵,并返回字符物理点阵掩码后的值,(5) Convert the character logical dot matrix into physical dot matrix, and return the value after the character physical dot matrix mask,

从逻辑点阵(LOGSEG_B+LOGSEG_C)的到物理点阵(SEG_B1+SEG_C1)From logical lattice (LOGSEG_B+LOGSEG_C) to physical lattice (SEG_B1+SEG_C1)

SEG_B1+SEG_C1 = bit1+bit2 =2^1+2^2=0000 0110(二进制表示)SEG_B1+SEG_C1 = bit1+bit2 =2^1+2^2=0000 0110 (binary representation)

返回字符物理点阵掩码的计算Returns the calculation of the character's physical lattice mask

返回值=物理点阵& (~MSK)return value = physical lattice & (~MSK)

上半段返回值= 0000 0110 & 0000 0111= 0000 0110=6;The return value of the first half = 0000 0110 & 0000 0111 = 0000 0110 = 6;

下半段返回值= 0000 0110 & 1111 0000=0000 0000= 0;Return value in the second half = 0000 0110 & 1111 0000=0000 0000= 0;

(6)字符显示。(6) Character display.

再对返回值做如下处理:Then the return value is processed as follows:

返回值&(~MSK)return value & (~MSK)

上半段=0000 0110 &0000 0111= 0000 0110;Upper half=0000 0110 &0000 0111= 0000 0110;

下半段=0000 0000&1111 0000= 0000 0000;Lower half=0000 0000&1111 0000= 0000 0000;

上下半段相加:0000 0110;Add the upper and lower halves: 0000 0110;

所以在9这个位置的数码管bit位值为0000 0110,从而实现在液晶屏字符段9这个位置显示“1”。Therefore, the bit value of the nixie tube at position 9 is 0000 0110, so that "1" can be displayed at the position 9 of the LCD screen.

按照本发明实施例的显示驱动方法,给段式液晶显示屏的每一个显示段(字符段、图形符号段)一个XY坐标值,其中X代表寄存器地址,Y代表bit位地址,4X+Y表示坐标值,也是对应到程序的控制地址。通过对4X+Y取整、取模等相关计算得到控制寄存器(PORT口)、控制位(bit位)、掩码等信息,可以通过excel表格或脚本快速批量生成相关宏定义。这样做的好处在于:(1)节省了花在反复阅读段式LCD逻辑图获取相关的控制信息以及显示控制的核查上面的时间;(2)通过excel表格或脚本快速批量生成宏定义的头文件,减少了手工编写宏定义的时间并且不需要重新编写控制程序;(3)得到的所有信息都是通过寄存器地址和bit位地址进行计算,得到的信息准确性高;(4)可移植性非常高。According to the display driving method of the embodiment of the present invention, an XY coordinate value is given to each display segment (character segment, graphic symbol segment) of the segment liquid crystal display, wherein X represents the register address, Y represents the bit address, and 4X+Y represents The coordinate value is also the control address corresponding to the program. Information such as control registers (PORT ports), control bits (bits), and masks can be obtained through relevant calculations such as rounding and modulus of 4X+Y, and relevant macro definitions can be quickly generated in batches through excel tables or scripts. The advantages of doing this are: (1) Save the time spent on repeatedly reading the segment LCD logic diagram to obtain relevant control information and check the display control; (2) Quickly generate macro-defined header files in batches through excel sheets or scripts , which reduces the time of manually writing macro definitions and does not need to rewrite the control program; (3) All the information obtained is calculated through register addresses and bit addresses, and the information obtained is highly accurate; (4) Portability is very high.

图6是按照一个实施例的段式液晶显示屏显示驱动装置的示意图600,该装置600主要包括:赋值模块602,第一生成模块604,第二生成模块606,获取模块608,以及驱动模块610。这些模块可以通过软件、硬件、固件或者其组合来实现。其中:Fig. 6 is a schematic diagram 600 of a segment liquid crystal display drive device according to an embodiment, the device 600 mainly includes: an assignment module 602, a first generation module 604, a second generation module 606, an acquisition module 608, and a drive module 610 . These modules can be realized by software, hardware, firmware or a combination thereof. in:

-赋值模块602用于执行步骤100;- The assignment module 602 is used to execute step 100;

-第一生成模块604用于执行步骤102;- the first generation module 604 is used to execute step 102;

-第二生成模块606用于执行步骤104;- the second generating module 606 is used to execute step 104;

-获取模块608用于执行步骤106;以及- The acquisition module 608 is used to perform step 106; and

-驱动模块610用于执行步骤108。- The driving module 610 is used to execute step 108 .

图7是按照又一个实施例的另一种段式液晶显示屏显示驱动装置700的示意图,该装置700包括处理单元713,例如MCU、DSP或CPU等。处理单元713可以是单个单元或者多个单元,以执行不同的步骤。另外,该装置700还可选地包括交互界面780以及输出单元790,用于输入段式液晶显示屏的逻辑图显示段信息和所需要显示的信息等数据、以及输出驱动数据等。此外,该装置700还包括非易失性存储器形式的至少一个计算机程序产品710,例如EEPROM、闪存或者硬盘驱动器等。该计算机程序产品710包括计算机程序711,而计算机程序711包括程序代码,当其被运行时,使得该装置700执行关于图1所示的步骤。FIG. 7 is a schematic diagram of another segment liquid crystal display drive device 700 according to yet another embodiment. The device 700 includes a processing unit 713 such as MCU, DSP or CPU. The processing unit 713 can be a single unit or a plurality of units to perform different steps. In addition, the device 700 may also optionally include an interactive interface 780 and an output unit 790 for inputting data such as logic diagram display segment information and information to be displayed on the segmented liquid crystal display, and outputting driving data. Furthermore, the device 700 also comprises at least one computer program product 710 in the form of a non-volatile memory, such as EEPROM, flash memory or hard disk drive or the like. The computer program product 710 comprises a computer program 711 comprising program code which, when executed, causes the apparatus 700 to perform the steps shown with respect to FIG. 1 .

具体来说,在装置700的计算机程序711中的程序代码包括:赋值模块711a,用于执行步骤100;第一生成模块711b,用于执行步骤102;第二生成模块711c,用于执行步骤104;获取模块711d,用于执行步骤106;驱动模块711e,用于执行步骤108。换句话说,当在处理单元713上运行不同的模块711a-711e时,它们对应于图6所示的模块602、604、606、608和610。Specifically, the program codes in the computer program 711 of the device 700 include: an assignment module 711a, used to execute step 100; a first generation module 711b, used to execute step 102; a second generation module 711c, used to execute step 104 The obtaining module 711d is used to execute step 106; the driving module 711e is used to execute step 108. In other words, when the different modules 711a-711e are running on the processing unit 713, they correspond to the modules 602, 604, 606, 608 and 610 shown in FIG.

以上通过具体的实施例对本发明进行了说明,但本发明并不限于这些具体的实施例。本领域技术人员应该明白,还可以对本发明做各种修改、等同替换、变化等等,例如将上述实施例中的一个步骤或模块分为两个或更多个步骤或模块来实现,或者相反,将上述实施例中的两个或更多个步骤或模块的功能放在一个步骤或模块中来实现。但是,这些变换只要未背离本发明的精神,都应在本发明的保护范围之内。另外,本申请说明书和权利要求书所使用的一些术语,例如“第一”、“第二”等等,并不是限制,仅仅是为了便于描述。此外,以上多处所述的“一个实施例”、“另一个实施例”等等表示不同的实施例,当然也可以将其全部或部分结合在一个实施例中。The present invention has been described above through specific examples, but the present invention is not limited to these specific examples. Those skilled in the art should understand that various modifications, equivalent replacements, changes, etc. can also be made to the present invention, such as dividing one step or module in the above-mentioned embodiment into two or more steps or modules to implement, or vice versa , implementing the functions of two or more steps or modules in the above embodiments in one step or module. However, as long as these changes do not deviate from the spirit of the present invention, they should all be within the protection scope of the present invention. In addition, some terms used in the specification and claims of this application, such as "first", "second", etc., are not limiting, but are merely for convenience of description. In addition, "one embodiment", "another embodiment" and the like described in various places above indicate different embodiments, and of course they can be combined in whole or in part into one embodiment.

Claims (10)

  1. A kind of 1. segment liquid crystal display screen display drive method, it is characterised in that including:
    Assignment procedure, for extracting each display segment information from the logic chart of segment liquid crystal display screen, and give each display Section assigns two-dimensional coordinate value;
    First generation step, for generating the macrodefinition of character field control register, mapping table index value and mask, and/or Generate graphical symbol section control register, control bit and the macrodefinition of operation;
    Second generation step, for generating the header file for including above-mentioned macrodefinition information, the header file is added LCDs Among the engineering for showing driving;
    Obtaining step, the information for display required for obtaining;And
    Actuation step, for graphical symbol section, the operation macrodefinition generated by LCDs electrical form operated with Realize the display of graphical symbol;And/or for character field, the logic dot matrix of character is converted into physical lattice using mapping table, To realize that character is shown.
  2. 2. segment liquid crystal display screen display drive method as claimed in claim 1, it is characterised in that the actuation step for Character field further comprises:
    Its index value in character logic dot matrix table is obtained according to the ASCII character of character;
    The logic dot matrix of the character is obtained in character logic dot matrix mapping table according to index value;
    Character field control register, mapping table index value, mask are obtained by character display location and physical segment relation table;
    By obtained character field control register, mapping table index value, mask, physical lattice is arrived with reference to character logic dot matrix Map index table, character logic dot matrix is converted into physical lattice, and the value after return character physical lattice mask;
    According to the value for being worth to each bit positions in charactron after the character field mask of acquisition and character physical lattice mask; And
    Corresponding charactron is chosen according to character field control register information, realized according to the value of each bit positions of acquisition corresponding Character show.
  3. 3. segment liquid crystal display screen display drive method as claimed in claim 1 or 2, it is characterised in that:Walked in the assignment In rapid, assignment is carried out as Y-axis using the row of segment liquid crystal display screen logic chart as X-axis, row.
  4. 4. segment liquid crystal display screen display drive method as claimed in claim 3, it is characterised in that:In the described first generation step In rapid, to the XY coordinate values of graphical symbol section, the digit of control register is rounded respectively by 4X+Y value and modulus, with life Control register, control bit and the macrodefinition of operation related into the graphical symbol section;And/or the XY coordinates to character field Value, is rounded and modulus to the digit of control register respectively by 4X+Y value, is deposited with generating the related control of the character field Device, mapping table index value, the macrodefinition of mask.
  5. 5. segment liquid crystal display screen display drive method as claimed in claim 1 or 2, it is characterised in that:In the described second life Into in step, the header file of macrodefinition information is included by using electrical form or script generation.
  6. A kind of 6. segment liquid crystal display screen display drive apparatus, it is characterised in that including:
    Assignment module, for extracting each display segment information from the logic chart of segment liquid crystal display screen, and give each display Section assigns two-dimensional coordinate value;
    First generation module, for generating the macrodefinition of character field control register, mapping table index value and mask, and/or Generate graphical symbol section control register, control bit and the macrodefinition of operation;
    Second generation module, for generating the header file for including above-mentioned macrodefinition information, the header file is added LCDs Among the engineering for showing driving;
    Acquisition module, the information for display required for obtaining;And
    Drive module, for graphical symbol section, the operation macrodefinition generated by LCDs electrical form operated with Realize the display of graphical symbol;And/or for character field, the logic dot matrix of character is converted into physical lattice using mapping table, To realize that character is shown.
  7. 7. segment liquid crystal display screen display drive apparatus as claimed in claim 6, it is characterised in that the drive module configuration In pairs in character field:
    Its index value in character logic dot matrix table is obtained according to the ASCII character of character;
    The logic dot matrix of the character is obtained in character logic dot matrix mapping table according to index value;
    Character field control register, mapping table index value, mask are obtained by character display location and physical segment relation table;
    By obtained character field control register, mapping table index value, mask, physical lattice is arrived with reference to character logic dot matrix Map index table, character logic dot matrix is converted into physical lattice, and the value after return character physical lattice mask;
    According to the value for being worth to each bit positions in charactron after the character field mask of acquisition and character physical lattice mask; And
    Corresponding charactron is chosen according to character field control register information, realized according to the value of each bit positions of acquisition corresponding Character show.
  8. 8. segment liquid crystal display screen display drive apparatus as claimed in claims 6 or 7, it is characterised in that:The assignment module Using the row of segment liquid crystal display screen logic chart as X-axis, row assignment is carried out as Y-axis.
  9. 9. segment liquid crystal display screen display drive apparatus as claimed in claim 8, it is characterised in that:First generation module To the XY coordinate values of graphical symbol section, the digit of control register is rounded respectively by 4X+Y value and modulus, should with generation Graphical symbol section related control register, control bit and the macrodefinition of operation;And/or the XY coordinate values to character field, lead to The value for crossing 4X+Y rounds and modulus to the digit of control register respectively, to generate the related control register of the character field, reflect The macrodefinition of firing table index value, mask.
  10. 10. segment liquid crystal display screen display drive apparatus as claimed in claims 6 or 7, it is characterised in that:Second generation Module includes the header file of macrodefinition information using electrical form or script generation.
CN201610135299.0A 2016-03-10 2016-03-10 A kind of segment liquid crystal display screen display drive method and device Active CN105551450B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610135299.0A CN105551450B (en) 2016-03-10 2016-03-10 A kind of segment liquid crystal display screen display drive method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610135299.0A CN105551450B (en) 2016-03-10 2016-03-10 A kind of segment liquid crystal display screen display drive method and device

Publications (2)

Publication Number Publication Date
CN105551450A CN105551450A (en) 2016-05-04
CN105551450B true CN105551450B (en) 2018-03-27

Family

ID=55830602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610135299.0A Active CN105551450B (en) 2016-03-10 2016-03-10 A kind of segment liquid crystal display screen display drive method and device

Country Status (1)

Country Link
CN (1) CN105551450B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107481692A (en) * 2017-09-05 2017-12-15 珠海格力电器股份有限公司 Display method and device of segment type LCD
JP7494626B2 (en) * 2020-07-29 2024-06-04 セイコーエプソン株式会社 Integrated circuit device, liquid crystal display device, electronic device and mobile device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7050039B1 (en) * 2000-07-18 2006-05-23 Xilinx, Inc. Arrangements enabling an audience to replay a presentation
CN101312030A (en) * 2007-05-21 2008-11-26 中茂电子(深圳)有限公司 Video signal source generating device carried out by programmable logic gate array
CN101625848A (en) * 2009-07-28 2010-01-13 宁波新然电子信息科技发展有限公司 Realization method of vector font library oriented to embedded platform
CN102141916A (en) * 2011-01-19 2011-08-03 深圳创维数字技术股份有限公司 Embedded equipment and method for displaying language word on OSD interface
CN103077028A (en) * 2012-12-28 2013-05-01 北京赛科世纪数码科技有限公司 Display method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7050039B1 (en) * 2000-07-18 2006-05-23 Xilinx, Inc. Arrangements enabling an audience to replay a presentation
CN101312030A (en) * 2007-05-21 2008-11-26 中茂电子(深圳)有限公司 Video signal source generating device carried out by programmable logic gate array
CN101625848A (en) * 2009-07-28 2010-01-13 宁波新然电子信息科技发展有限公司 Realization method of vector font library oriented to embedded platform
CN102141916A (en) * 2011-01-19 2011-08-03 深圳创维数字技术股份有限公司 Embedded equipment and method for displaying language word on OSD interface
CN103077028A (en) * 2012-12-28 2013-05-01 北京赛科世纪数码科技有限公司 Display method and system

Also Published As

Publication number Publication date
CN105551450A (en) 2016-05-04

Similar Documents

Publication Publication Date Title
US11734113B2 (en) Solid state disk access method and apparatus, device, and medium
CN102543196B (en) Data reading method, memory storage device and controller thereof
CN105551450B (en) A kind of segment liquid crystal display screen display drive method and device
CN103631670B (en) Memory storage device, memory controller and data processing method
CN107941256B (en) A Numerical Personalized Display Method of High Precision Measuring Instrument
CN106372011A (en) High performance host queue monitor for PCIE SSD controller
CN118051264A (en) Matrix processing method and device, electronic equipment and storage medium
CN109918019A (en) Memory system and method of operation
CN105242895A (en) Dot matrix text display method and apparatus
US20080155462A1 (en) Independent scrolling of tabular data
RU2640294C1 (en) Method of recording and recording apparatus for memory device
CN105574031A (en) Method and system for index of database
CN101799796B (en) Touch-screen calculator and method thereof for performing multi-step operation on input data
US9645973B2 (en) Matrix calculation apparatus, matrix calculation method, and computer readable medium having matrix calculation process program stored thereon
CN101859242B (en) Register reading and writing method and device
US11069326B2 (en) Processing method for character stroke and related device
CN114550809B (en) Multi-storage card testing method, device, computer equipment and storage medium
CN112668131B (en) Wiring table generation method, device, equipment and computer readable storage medium
CN101140807A (en) Verify code write-in method and write device thereof in BCH error correcting technology
CN109144624A (en) Method, storage medium, equipment and the system of not contour list are shown in IOS
KR20130141996A (en) Gate driver and devices including the same
CN103425312A (en) A method for compiling and decoding files of touch screen based on ARM
CN102467579B (en) A kind of frequency spectrum data storage method and device
CN116795315B (en) Method and system for realizing continuous display of character strings on LCD (liquid crystal display) based on singlechip
CN102841853A (en) Memory management table processing method, memory controller and memory storage device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20161130

Address after: 528400 Guangdong city of Zhongshan Province Town Village Title Jin An Lu No. 23 A District

Applicant after: ZHONGSHAN TRANSTEK ELECTRONICS CO.,LTD.

Address before: 528400 A District, Guangdong City, Zhongshan Torch Development Zone East Road, No. 105

Applicant before: GUANGDONG TRANSTEK MEDICAL ELECTRONICS Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20250529

Address after: 528437. A District, 105 East Road, Torch Development Zone, Zhongshan, Guangdong

Patentee after: GUANGDONG TRANSTEK MEDICAL ELECTRONICS Co.,Ltd.

Country or region after: China

Address before: 528400 Guangdong city of Zhongshan Province Town Village Title Jin An Lu No. 23 A District

Patentee before: ZHONGSHAN TRANSTEK ELECTRONICS CO.,LTD.

Country or region before: China

TR01 Transfer of patent right