[go: up one dir, main page]

CN114442988B - Data display method, device, clock display system, equipment and medium - Google Patents

Data display method, device, clock display system, equipment and medium Download PDF

Info

Publication number
CN114442988B
CN114442988B CN202210151235.5A CN202210151235A CN114442988B CN 114442988 B CN114442988 B CN 114442988B CN 202210151235 A CN202210151235 A CN 202210151235A CN 114442988 B CN114442988 B CN 114442988B
Authority
CN
China
Prior art keywords
module
clock
target time
liquid crystal
crystal display
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
CN202210151235.5A
Other languages
Chinese (zh)
Other versions
CN114442988A (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.)
Shenzhen Hangshun Chip Technology R&D Co Ltd
Original Assignee
Shenzhen Hangshun Chip Technology R&D 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 Shenzhen Hangshun Chip Technology R&D Co Ltd filed Critical Shenzhen Hangshun Chip Technology R&D Co Ltd
Priority to CN202210151235.5A priority Critical patent/CN114442988B/en
Publication of CN114442988A publication Critical patent/CN114442988A/en
Application granted granted Critical
Publication of CN114442988B publication Critical patent/CN114442988B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/14Time supervision arrangements, e.g. real time clock
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30098Register arrangements
    • 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)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Chemical & Material Sciences (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Computer Hardware Design (AREA)
  • Human Computer Interaction (AREA)
  • Liquid Crystal Display Device Control (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The application provides a data display method, a data display device, a data display system, data display equipment and a readable storage medium. The method comprises the following steps: detecting whether a calendar register in a clock module is updated; after detecting that the calendar register is updated, reading a target time value in the calendar register; writing the target time value into a segment code liquid crystal display module so that the segment code liquid crystal display module displays target time according to the target time value. According to the application, the target time value of the calendar register in the clock module is read, and is written into the RAM of the liquid crystal display module, and then the liquid crystal display module performs refreshing display, so that the data processing process is realized without using software, the software development time and cost are saved, the problem that the MCU is in an operation state in a high power consumption mode continuously caused by the operation in a low power consumption mode is solved, and the power consumption of data display is effectively reduced.

Description

Data display method, device, clock display system, equipment and medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data display method, a data display device, a clock display system, a clock display device, and a readable storage medium.
Background
Real Time Clock (RTC) and segment code LCD are common peripheral modules on a microcontroller chip (Micro Control Unit, MCU). The segment code LCD only needs extremely low power consumption, and can always keep the content to be displayed for display without real-time dynamic refreshing. The RTC real-time clock is also a low-power module, and the LSE low-frequency clock is selected as the working frequency instead of the HSE/HSI high-frequency clock. Regardless of the operating state of the MCU core and other modules, the year, month, day, and second counter of the RTC keeps continuously counting, and the memory data inside the RTC also keeps unchanged.
For the application scene of the RTC and the segment code LCD, the real-time of the RTC is mainly displayed on the segment code LCD screen, or the data content in the internal memory of the RTC is displayed on the segment code LCD screen. In order to realize the application scenario, in the prior art, the CPU core reads out and writes the RTC time into the segment code LCD mainly through a software programming manner, or the CPU core reads out and writes the memory data in the RTC into the segment code LCD, and software operation is required for each reading and writing of the segment code LCD.
In the course of conception and implementation of the present application, the inventors of the present application have found that at least the following problems exist: in the prior art, software is required to intervene or operate in each data reading and writing process, software development time and cost are required to be additionally increased, the operation cannot be operated in a low-power-consumption mode, and if real-time display of RTC time is continuously performed for a long time, MCU is required to be continuously in an operation state in a high-power-consumption mode, so that the problem of higher power consumption is caused.
The foregoing description is provided for general background information and does not necessarily constitute prior art.
Disclosure of Invention
In order to solve the technical problems, the application provides a data display method, a device, a clock display system, a device and a readable storage medium, which are used for reading the value of a calendar register in a clock module, writing the value into a RAM of an LCD module, refreshing and displaying the value by the LCD module after writing, saving the software development time and cost and effectively reducing the power consumption of data display.
In order to solve the technical problems, the application provides a data display method, which comprises the following steps:
Detecting whether a calendar register in a clock module is updated;
after detecting that the calendar register is updated, reading a target time value in the calendar register;
writing the target time value into a segment code liquid crystal display module so that the segment code liquid crystal display module displays target time according to the target time value.
Optionally, after said reading the target time value in the calendar register, the method further comprises:
and writing the target time value into a buffer register so that the buffer register sets a ready flag corresponding to the target time value.
Optionally, the writing the target time value into the segment code liquid crystal display module, so that the segment code liquid crystal display module displays the target time according to the target time value, including:
Initializing the segment code liquid crystal display module;
after detecting that the ready flag is set, reading a target time value corresponding to the ready flag;
writing the target time value into a random access memory of the segment code liquid crystal display module so that the segment code liquid crystal display module performs refreshing display of target time according to the target time value.
Optionally, the data display method further includes:
If the calendar register is detected not to be updated, the calendar register is continuously detected in the next detection period until the calendar register is updated.
Optionally, the data display method further includes:
and if the ready flag is detected to be unset, continuing to detect the ready flag in the cache register in the next detection period until the ready flag is set.
Optionally, the data display method further includes:
acquiring current task information, and detecting a current working mode according to the current task information;
And when the current working mode is detected to be a low-power consumption mode, an external low-speed clock is adopted to provide clock signals for the clock module and the segment code liquid crystal display module.
Optionally, the data display method further includes:
when the current working mode is detected to be a non-low power consumption mode, selecting a corresponding target clock according to the current task information;
and providing clock signals for the clock module and the segment code liquid crystal display module by adopting the target clock.
Optionally, the clock module includes a real time clock, an I2C bus, and an analog to digital converter.
Correspondingly, the application also provides a data display device, which comprises:
The detection module is used for detecting whether the calendar register in the clock module is updated or not;
the reading module is used for reading a target time value in the calendar register after the calendar register is detected to be updated;
and the writing module is used for writing the target time value into the segment code liquid crystal display module so that the segment code liquid crystal display module displays the target time according to the target time value.
Optionally, the data display device further includes:
And the setting module is used for writing the target time value into a buffer register so as to enable the buffer register to set a ready mark corresponding to the target time value.
The application also provides a data display system, which comprises a clock module, a data display device and a segment code liquid crystal display module;
wherein the clock module includes a calendar register;
the data display device is used for reading a target time value in the calendar register after detecting the update of the calendar register; writing the target time value into a segment code liquid crystal display module;
and the segment code liquid crystal display module is used for displaying the target time according to the target time value.
The application also proposes a computer device comprising a memory storing a computer program and a processor implementing the steps of the data display method of any one of the above mentioned claims when executing the computer program.
The application also proposes a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the data display method of any of the above.
The embodiment of the invention has the following beneficial effects:
As described above, the present application provides a data display method, apparatus, clock display system, device, and readable storage medium, where the data display method includes: detecting whether a calendar register in a clock module is updated; after detecting the update of the calendar register, reading a target time value in the calendar register; and writing the target time value into the segment code liquid crystal display module so that the segment code liquid crystal display module displays the target time according to the target time value. According to the data display method, firstly, the target time value of the calendar register in the clock module is read, written into the random access memory of the liquid crystal display module and then refreshed and displayed by the liquid crystal display module, and the hardware interaction module replaces the prior art that software intervention is needed to realize the data processing process, so that the software development time and cost can be saved; meanwhile, the liquid crystal display module only needs to display the time value of the clock module, so that an external low-speed clock can be selected as a working clock, the problem that the MCU needs to be in a running state in a high-power mode continuously because the MCU cannot run in the low-power mode in the prior art is solved, and the power consumption of data display is effectively reduced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic flow chart of a data display method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of displaying a target time by the segment code LCD module according to the embodiment of the application;
Fig. 3 is a schematic structural diagram of a data display device according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a clock display system according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments. Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the element defined by the phrase "comprising one … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element, and furthermore, elements having the same name in different embodiments of the application may have the same meaning or may have different meanings, the particular meaning of which is to be determined by its interpretation in this particular embodiment or by further combining the context of this particular embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination" depending on the context. Furthermore, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes," and/or "including" specify the presence of stated features, steps, operations, elements, components, items, categories, and/or groups, but do not preclude the presence, presence or addition of one or more other features, steps, operations, elements, components, items, categories, and/or groups. The terms "or", "and/or", "including at least one of", and the like, as used herein, may be construed as inclusive, or mean any one or any combination. For example, "including at least one of: A. b, C "means" any one of the following: a, A is as follows; b, a step of preparing a composite material; c, performing operation; a and B; a and C; b and C; a and B and C ", again as examples," A, B or C "or" A, B and/or C "means" any of the following: a, A is as follows; b, a step of preparing a composite material; c, performing operation; a and B; a and C; b and C; a and B and C). An exception to this definition will occur only when a combination of elements, functions, steps or operations are in some way inherently mutually exclusive.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily occurring in sequence, but may be performed alternately or alternately with other steps or at least a portion of the other steps or stages.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event)" or "in response to detection (stated condition or event), depending on the context.
It should be noted that, in this document, step numbers such as S10 and S20 are adopted, and the purpose of the present application is to more clearly and briefly describe the corresponding content, and not to constitute a substantial limitation on the sequence, and those skilled in the art may execute S20 first and then execute S10 when implementing the present application, which is within the scope of protection of the present application.
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In the following description, suffixes such as "module", "part" or "unit" for representing elements are used only for facilitating the description of the present application, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
For a better understanding of the embodiments of the present application, the following is a related term of art and its explanation.
MCU: micro Control Unit a microcontroller chip, also called a singlechip;
segment code LCD: the segment code liquid crystal or segment type liquid crystal screen is one of liquid crystal products;
RTC: real_time Clock, real Time Clock;
RAM: random Access Memory the random access memory, also called main memory, is an internal memory that exchanges data directly with the CPU. The device can be read and written at any time (except when refreshing), has high speed, and is usually used as a temporary data storage medium of an operating system or other running programs;
LSE: low Speed External Clock signal, an external low-speed clock.
Firstly, the application scene provided by the application, such as a data display method, a device, a clock display system, equipment and a medium, can realize data reading and writing between a clock module and a liquid crystal display module through a hardware module, thereby effectively reducing the power consumption and the cost of data display.
Referring to fig. 1, fig. 1 is a flowchart of a data display method according to an embodiment of the application. The data display method specifically comprises the following steps:
S10, detecting whether a calendar register in the clock module is updated or not.
Specifically, for step S10, before the calendar register is detected, the clock module may be initialized by software, and after the initialization is completed, the calendar register in the clock module is directly detected and updated, so as to determine whether the target time value of the calendar register is updated.
Optionally, in some embodiments, the clock module includes a real time clock, an I2C bus, and an analog to digital converter.
In particular embodiments, the clock module may include, but is not limited to, a real-time clock, an I2C bus, and an ADC analog-to-digital converter. In this embodiment, only the real-time clock is listed, and other clock module peripherals can refer to the implementation of the real-time clock, which is not described herein.
S20, after the calendar register is detected to be updated, reading a target time value in the calendar register.
Optionally, in some embodiments, the data display method may specifically further include:
If the calendar register is detected not to be updated, the calendar register is continuously detected in the next detection period until the calendar register is updated.
Specifically, for step S20, after detecting that the target time value of the calendar register in the clock module is updated, a data base is provided for the subsequent writing into the buffer register by reading the target time value of the calendar register in the clock module; when the target time value of the calendar register in the clock module is not updated, the calendar register is updated and detected in the next detection period, the calendar register is waited for updating, and the process is repeated until the target time value of the calendar register is updated.
Optionally, in some embodiments, after step S20, the data display method may further include:
and writing the target time value into a buffer register so that the buffer register sets a ready flag corresponding to the target time value.
Specifically, after the target time value of the calendar register in the clock module is detected to be updated, the updated target time value is written into the buffer register to be cached, and the ready flag corresponding to the target time value is set to inform the liquid crystal display module that the data of the buffer register is updated.
In this embodiment, in addition to setting the target time value, the data in the buffer area may be read periodically by the LCD module, or the notification information may be sent to the LCD module when the buffer is written, which is not limited only herein.
S30, writing the target time value into a segment code liquid crystal display module so that the segment code liquid crystal display module displays target time according to the target time value.
Optionally, as shown in fig. 2, in some embodiments, the step S30 may specifically include:
S31, initializing the segment code liquid crystal display module;
s32, after detecting that the ready mark is set, reading a target time value corresponding to the ready mark;
s33, writing the target time value into a random access memory of the segment code liquid crystal display module, so that the segment code liquid crystal display module performs refreshing display of target time according to the target time value.
Specifically, for step S30, after the update of the calendar register is detected, the segment code lcd module is initialized, after the initialization is completed, the segment code lcd module detects whether the ready flag corresponding to the target time value in the buffer register is set, and when the ready flag is judged to be set, the target time value in the buffer register is read, and the target time value is written into the RAM of the segment code lcd module, so that the segment code lcd module performs refresh display according to the written target time value.
Optionally, in some embodiments, the step S32 may specifically further include:
and if the ready flag is detected to be unset, continuing to detect the ready flag in the cache register in the next detection period until the ready flag is set.
Specifically, after detecting whether the ready flag corresponding to the target time value in the buffer register is set or not through the segment code liquid crystal display module, if the ready flag in the buffer register is not set, continuing to detect the buffer register in the next detection period, and repeating the process until the ready flag in the buffer register is set.
Optionally, in some embodiments, the data display method may specifically further include:
acquiring current task information, and detecting a current working mode according to the current task information;
And when the current working mode is detected to be a low-power consumption mode, an external low-speed clock is adopted to provide clock signals for the clock module and the segment code liquid crystal display module.
Specifically, after the step S30, the method further includes obtaining current task information, so as to determine a current working mode according to the current task information; if the current working mode is detected to be the low power consumption mode, namely when no other tasks are executed, the low power consumption mode can be entered, and at the moment, the clock module and the segment code liquid crystal display module are provided with clock signals by external low-speed clocks, so that the working is continued, and the power consumption of data display is effectively reduced. For example, if only the LCD is required to display the RTC time, then using LSE as the master clock can greatly reduce power consumption.
Optionally, in some embodiments, the data display method may specifically further include:
when the current working mode is detected to be a non-low power consumption mode, selecting a corresponding target clock according to the current task information;
and providing clock signals for the clock module and the segment code liquid crystal display module by adopting the target clock.
Specifically, after the current working mode is judged according to the current task information, when the current working mode is detected to be a non-low power consumption mode, a required target clock is selected according to the acquired current task information, so that the required target clock is used as a master clock, clock information is provided for a clock module and a segment code liquid crystal display module to work, and the flexibility of data display is further improved.
As can be seen from the above, the data display method provided by the embodiment of the present application includes: detecting whether a calendar register in a clock module is updated; after detecting that the calendar register is updated, reading a target time value in the calendar register; writing the target time value into a segment code liquid crystal display module so that the segment code liquid crystal display module displays target time according to the target time value. It can be seen that, in the data display method of the embodiment of the application, firstly, the target time value of the calendar register in the clock module is read, written into the random access memory of the liquid crystal display module and then refreshed and displayed by the liquid crystal display module, and the hardware interaction module replaces the prior art to need software intervention to realize the data processing process, so that the software development time and cost can be saved; meanwhile, the liquid crystal display module only needs to display the time value of the clock module, so that an external low-speed clock can be selected as a working clock, the problem that the MCU needs to be in a running state in a high-power mode continuously because the MCU cannot run in the low-power mode in the prior art is solved, and the power consumption of data display is effectively reduced.
Correspondingly, the application also provides a data display device, referring to fig. 3, fig. 3 is a schematic structural diagram of the data display device provided by the application, and specifically may include a detection module 100, a reading module 200 and a writing module 300.
The detection module 100 is configured to detect whether a calendar register in the clock module is updated.
Optionally, in some embodiments, the clock module includes a real time clock, an I2C bus, and an analog to digital converter.
Specifically, for the detection module 100, before the calendar register is detected, the clock module may be initialized by software, and after the initialization is completed, the calendar register in the clock module is directly detected and updated by the detection module 100, so as to determine whether the target time value of the calendar register is updated.
And the reading module 200 is used for reading the target time value in the calendar register after detecting the update of the calendar register.
Optionally, in some embodiments, the reading module 200 is specifically further configured to:
If the calendar register of the clock module is detected not to be updated, the calendar register is continuously detected in the next detection period until the calendar register is updated.
Specifically, for the reading module 200, after detecting that the target time value of the calendar register in the clock module is updated, the reading module 200 reads the target time value of the calendar register in the clock module, and provides a data basis for subsequent writing into the buffer register; when the target time value of the calendar register in the clock module is not updated, the calendar register is updated and detected in the next detection period, the calendar register is waited for updating, and the process is repeated until the target time value of the calendar register is updated.
The writing module 300 is configured to write the target time value into the segment code liquid crystal display module, so that the segment code liquid crystal display module displays the target time according to the target time value.
Optionally, in some embodiments, the writing module 300 may specifically include:
the initialization unit is used for initializing the segment code liquid crystal display module;
the reading unit is used for reading a target time value corresponding to the ready mark after detecting that the ready mark is set; if the ready flag is not set, continuing to detect the ready flag in the cache register in the next detection period until the ready flag is set;
And the writing unit is used for writing the target time value into the random access memory of the segment code liquid crystal display module so that the segment code liquid crystal display module performs refreshing display according to the target time value.
Optionally, in some embodiments, the data display apparatus may further include a setting module, where the setting module is configured to write the target time value into a buffer register, so that the buffer register sets a ready flag corresponding to the target time value.
Specifically, for the setting module, after the target time value of the calendar register in the clock module is detected to be updated, the updated target time value is written into the buffer register to be cached, and the ready flag corresponding to the target time value is set to inform the liquid crystal display module that the data of the buffer register is updated.
Optionally, in some embodiments, the data display device may further include a clock switching module.
Specifically, the clock switching module includes:
The working mode unit is used for acquiring current task information and detecting a current working mode according to the current task information;
the low-power consumption unit is used for providing clock signals for the clock module and the segment code liquid crystal display module by adopting an external low-speed clock when the current working mode is detected to be the low-power consumption mode;
The non-low power consumption unit is used for selecting a corresponding target clock according to the current task information when the current working mode is detected to be the non-low power consumption mode; and providing clock signals for the clock module and the segment code liquid crystal display module by adopting the target clock.
In summary, in the data display device provided by the embodiment of the present application, the detection module 100 detects whether the calendar register in the clock module is updated; reading a target time value in the calendar register after detecting that the calendar register is updated through a reading module 200; and finally, the target time value is written into the segment code liquid crystal display module through the writing module 300, so that the segment code liquid crystal display module displays the target time according to the target time value. It can be seen that, in the data display device of the embodiment of the application, firstly, the target time value of the calendar register in the clock module is read, written into the random access memory of the liquid crystal display module and then refreshed and displayed by the liquid crystal display module, and the hardware interaction module replaces the prior art to need software intervention to realize the data processing process, so that the software development time and cost can be saved; meanwhile, the liquid crystal display module only needs to display the time value of the clock module, so that an external low-speed clock can be selected as a working clock, the problem that the MCU needs to be in a running state in a high-power mode continuously because the MCU cannot run in the low-power mode in the prior art is solved, and the power consumption of data display is effectively reduced.
As shown in fig. 4, the embodiment of the application further provides a clock display system, which includes a clock module 10, a data display device 20 and a segment code liquid crystal display module 30. Wherein the clock module 10 comprises a calendar register; the data display device 20 is configured to read a target time value in the calendar register after detecting the update of the calendar register; writing the target time value into a segment code liquid crystal display module; the segment code liquid crystal display module 30 is configured to display a target time according to the target time value.
The embodiment of the application also provides computer equipment, which can be a server. Referring to fig. 5, fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the application. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer equipment is used for storing data such as a data display method and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a data display method comprising: detecting whether a calendar register in a clock module is updated; after detecting the update of the calendar register, reading a target time value in the calendar register; and writing the target time value into the segment code liquid crystal display module so that the segment code liquid crystal display module displays the target time according to the target time value.
An embodiment of the present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a data display method comprising: detecting whether a calendar register in a clock module is updated; after detecting the update of the calendar register, reading a target time value in the calendar register; and writing the target time value into the segment code liquid crystal display module so that the segment code liquid crystal display module displays the target time according to the target time value.
According to the data display method, firstly, the target time value of the calendar register in the clock module is read, written into the random access memory of the liquid crystal display module and then refreshed and displayed by the liquid crystal display module, and the hardware interaction module replaces the prior art that software intervention is needed to realize the data processing process, so that the software development time and cost can be saved; meanwhile, the liquid crystal display module only needs to display the time value of the clock module, so that an external low-speed clock can be selected as a working clock, the problem that the MCU needs to be in a running state in a high-power mode continuously because the MCU cannot run in the low-power mode in the prior art is solved, and the power consumption of data display is effectively reduced.
It can be understood that the above scenario is merely an example, and does not constitute a limitation on the application scenario of the technical solution provided by the embodiment of the present application, and the technical solution of the present application may also be applied to other scenarios. For example, as one of ordinary skill in the art can know, with the evolution of the system architecture and the appearance of new service scenarios, the technical solution provided by the embodiment of the present application is also applicable to similar technical problems.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device of the embodiment of the application can be combined, divided and deleted according to actual needs.
In the present application, the same or similar term concept, technical solution and/or application scenario description will be generally described in detail only when first appearing and then repeatedly appearing, and for brevity, the description will not be repeated generally, and in understanding the present application technical solution and the like, reference may be made to the previous related detailed description thereof for the same or similar term concept, technical solution and/or application scenario description and the like which are not described in detail later.
In the present application, the descriptions of the embodiments are emphasized, and the details or descriptions of the other embodiments may be referred to.
The technical features of the technical scheme of the application can be arbitrarily combined, and all possible combinations of the technical features in the above embodiment are not described for the sake of brevity, however, as long as there is no contradiction between the combinations of the technical features, the application shall be considered as the scope of the description of the application.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to perform the method of each embodiment of the present application.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). Computer readable storage media can be any available media that can be accessed by a computer or data storage devices, such as servers, data centers, etc., that contain an integration of one or more available media. Usable media may be magnetic media (e.g., floppy disks, storage disks, magnetic tape), optical media (e.g., DVD), or semiconductor media (e.g., solid state storage disk Solid STATE DISK (SSD)), etc.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (5)

1. A data display method, comprising the steps of:
a detection module of the data display device detects whether a calendar register in a clock module is updated or not;
after the calendar register update is detected, a reading module of the data display device reads a target time value in the calendar register;
The writing module of the data display device writes the target time value into a buffer register, periodically reads the data of the buffer register through a segment code liquid crystal display module, or sends notification information to the segment code liquid crystal display module when writing into the buffer register so as to notify the segment code liquid crystal display module that the data of the buffer register is updated;
Writing the target time value into a random access memory of the segment code liquid crystal display module so that the segment code liquid crystal display module displays target time according to the target time value;
acquiring current task information, and detecting a current working mode according to the current task information;
when the current working mode is detected to be a low-power consumption mode, an external low-speed clock is adopted to provide clock signals for the clock module and the segment code liquid crystal display module;
When the current working mode is detected to be a non-low power consumption mode, selecting a corresponding target clock according to the current task information, and providing clock signals for the clock module and the segment code liquid crystal display module by adopting the target clock.
2. The data display method according to claim 1, characterized by further comprising:
If the calendar register is detected not to be updated, the calendar register is continuously detected in the next detection period until the calendar register is updated.
3. The data display method of claim 1, wherein the clock module comprises a real-time clock, an I2C bus, and an analog-to-digital converter.
4. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the data display method of any one of claims 1 to 3 when the computer program is executed.
5. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the data display method of any one of claims 1 to 3.
CN202210151235.5A 2022-02-15 2022-02-15 Data display method, device, clock display system, equipment and medium Active CN114442988B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210151235.5A CN114442988B (en) 2022-02-15 2022-02-15 Data display method, device, clock display system, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210151235.5A CN114442988B (en) 2022-02-15 2022-02-15 Data display method, device, clock display system, equipment and medium

Publications (2)

Publication Number Publication Date
CN114442988A CN114442988A (en) 2022-05-06
CN114442988B true CN114442988B (en) 2024-07-02

Family

ID=81374563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210151235.5A Active CN114442988B (en) 2022-02-15 2022-02-15 Data display method, device, clock display system, equipment and medium

Country Status (1)

Country Link
CN (1) CN114442988B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201788658U (en) * 2010-09-19 2011-04-06 无锡力芯微电子股份有限公司 LCD driving circuit with clock
CN112445749A (en) * 2020-11-27 2021-03-05 苏州浪潮智能科技有限公司 Signal detection recording method, system, device and medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100265793B1 (en) * 1997-10-23 2000-09-15 윤종용 Method and apparatus for diagnosing real time clock in computer system
JP2007155655A (en) * 2005-12-08 2007-06-21 Epson Toyocom Corp Real-time clock control method and real-time clock
CN1933561B (en) * 2006-01-18 2010-10-13 康佳集团股份有限公司 Television set and remote controller thereof
CN102830615B (en) * 2012-09-05 2014-04-16 飞亚达(集团)股份有限公司 Aviation timing method and system for providing dual time display and UTC (Universal Time Coordinated) timing and sending
CN103295551B (en) * 2013-06-09 2016-02-24 南车株洲电力机车研究所有限公司 A kind of LCD display control system and control method thereof
CN107481692A (en) * 2017-09-05 2017-12-15 珠海格力电器股份有限公司 Display method and device of segment type LCD
US10964405B2 (en) * 2018-11-30 2021-03-30 Ati Technologies Ulc Memory initialization reporting and control
CN110008105B (en) * 2019-04-11 2022-08-05 苏州浪潮智能科技有限公司 BMC time retention method and device, electronic device and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201788658U (en) * 2010-09-19 2011-04-06 无锡力芯微电子股份有限公司 LCD driving circuit with clock
CN112445749A (en) * 2020-11-27 2021-03-05 苏州浪潮智能科技有限公司 Signal detection recording method, system, device and medium

Also Published As

Publication number Publication date
CN114442988A (en) 2022-05-06

Similar Documents

Publication Publication Date Title
US20170148422A1 (en) Refresh control method and apparatus of display device
US20200234631A1 (en) Operating module for display and operating method, and electronic device supporting the same
US9383851B2 (en) Method and apparatus for buffering sensor input in a low power system state
EP2793185A1 (en) Plotting method, device and terminal
WO2017107833A1 (en) Method and apparatus for switching page in browser label
CN111538461A (en) Data reading and writing method and device based on solid state disk cache and storage medium
WO2017206893A1 (en) Interface refresh synchronization method and apparatus, terminal, and storage medium
CN110019537A (en) Local cache method for refreshing, device, computer equipment and storage medium
US10795606B2 (en) Buffer-based update of state data
WO2019000357A1 (en) Image processing method and device
CN115639920B (en) Drawing method, electronic device, and readable storage medium
CN114442988B (en) Data display method, device, clock display system, equipment and medium
CN107943442A (en) A kind of method and apparatus for realizing shuangping san
US9857864B1 (en) Systems and methods for reducing power consumption in a memory architecture
CN113330412A (en) Method for redrawing notes, writing equipment and storage medium
CN114443442B (en) Log storage method and electronic equipment
KR102577184B1 (en) Electronic apparatus and operating method thereof
CN110162385B (en) Processing framework capable of dynamically refreshing memory objects
CN118426772B (en) Interface rendering optimization method, equipment, storage medium, device and product
CN112988291B (en) Page event management method and device, computer readable medium and electronic equipment
US10365700B2 (en) System and method of managing context-aware resource hotplug
CN117274028A (en) Data processing method, data processing circuit, electronic device, and storage medium
CN115687487A (en) Control method, device, terminal and medium based on ETL task scheduling
CN119357446A (en) A method, device, electronic device and storage medium for real-time updating of vehicle signals
CN118276977A (en) Method, device and computer equipment for enabling program functions of application programs

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant