CN114442988A - Data display method, data display device, clock display system, clock display device and clock display medium - Google Patents

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

Info

Publication number
CN114442988A
CN114442988A CN202210151235.5A CN202210151235A CN114442988A CN 114442988 A CN114442988 A CN 114442988A CN 202210151235 A CN202210151235 A CN 202210151235A CN 114442988 A CN114442988 A CN 114442988A
Authority
CN
China
Prior art keywords
target time
time value
module
clock
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.)
Pending
Application number
CN202210151235.5A
Other languages
Chinese (zh)
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/CN114442988A/en
Publication of CN114442988A publication Critical patent/CN114442988A/en
Pending legal-status Critical Current

Links

Images

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 device, a system, equipment and a readable storage medium. The method comprises the following steps: detecting whether a calendar register in a clock module is updated or not; reading a target time value in the calendar register after detecting that the calendar register is updated; and writing the target time value into a 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 method and the device, the target time value of the calendar register in the clock module is read, the target time value is written into the RAM of the liquid crystal display module and then is refreshed and displayed by the liquid crystal display module, software is not needed to be used for realizing the data processing process, software development time and cost are saved, the problem that the MCU is continuously in the running state of the high power consumption mode due to the fact that the MCU cannot run in the low power consumption mode is solved, and the power consumption of data display is effectively reduced.

Description

Data display method, data display device, clock display system, clock display device and clock display medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data display method and apparatus, a clock display system, a device, and a readable storage medium.
Background
A Real Time Clock (RTC) and a segment code LCD are common peripheral modules on a Microcontroller Chip (MCU). The segment code LCD only needs extremely low power consumption, and can keep the content to be displayed always displayed without real-time dynamic refreshing. The RTC real-time clock is also a low-power-consumption module, and is obtained by selecting an LSE low-frequency clock as an operating frequency instead of an HSE/HSI high-frequency clock. The year, month, day, hour, minute and second counter of the RTC keeps continuously counting regardless of the working state of the MCU kernel and other modules, and the data of the memory in the RTC also keeps unchanged.
For the application scenarios of the RTC and the segment code LCD, the RTC real-time is mainly displayed on the segment code LCD screen at present, or the data content in the internal memory of the RTC is displayed on the segment code LCD screen. In order to implement the above application scenario, in the prior art, mainly in a software programming manner, a CPU core reads and writes RTC time into a segment code LCD, or reads and writes memory data in the RTC into the segment code LCD, and each reading and writing of the segment code LCD requires software operation.
In the course of conceiving and implementing the present application, the inventors of the present application found that at least the following problems existed: 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 only real-time display of RTC time is continuously performed for a long time, an MCU is required to be continuously in an operation state of a high power consumption mode, so that the problem of high power consumption is caused.
The foregoing description is provided for general background information and is not admitted to be prior art.
Disclosure of Invention
In view of the above technical problems, the present application provides a data display method, device, clock display system, device, and readable storage medium, which save software development time and cost and effectively reduce power consumption of data display by reading a value of a calendar register in a clock module, writing the value into a RAM of an LCD module, and refreshing and displaying the value by the LCD module after writing.
In order to solve the above technical problem, the present application provides a data display method, including the following steps:
detecting whether a calendar register in a clock module is updated or not;
reading a target time value in the calendar register after detecting that the calendar register is updated;
and writing the target time value into a 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, after the 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 mark corresponding to the target time value.
Optionally, the writing the target time value into a segment code liquid crystal display module to enable the segment code liquid crystal display module to display the target time according to the target time value includes:
initializing the segment code liquid crystal display module;
after the ready mark is detected to be set, reading a target time value corresponding to the ready mark;
and writing the target time value into a random access memory of the segment code liquid crystal display module so as to enable the segment code liquid crystal display module to refresh and display the target time according to the target time value.
Optionally, the data display method further includes:
and if the calendar register is not updated, continuously detecting the calendar register in the next detection period until the calendar register is updated.
Optionally, the data display method further includes:
and if the ready mark is not set, continuously detecting the ready mark in the cache register in the next detection period until the ready mark 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 the 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 adopting the target clock to provide clock signals for the clock module and the segment code liquid crystal display module.
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, comprising:
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 the target time value in the calendar register after detecting that the calendar register is updated;
and the writing module is used for writing the target time value into the segment code liquid crystal display module so as to enable the segment code liquid crystal display module to display 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 that the buffer register sets 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 comprises a calendar register;
the data display device is used for reading the target time value in the calendar register after detecting that the calendar register is updated; 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 provides a computer device, which comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the data display method in any item when executing the computer program.
The present application also proposes a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the data display method of any one of the preceding claims.
The embodiment of the invention has the following beneficial effects:
as described above, the present application provides a data display method, an apparatus, a clock display system, a device, and a readable storage medium, where the data display method includes: detecting whether a calendar register in a clock module is updated or not; reading a target time value in the calendar register after detecting that the calendar register is updated; 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, the target time value is written into the random access memory of the liquid crystal display module and then is refreshed and displayed by the liquid crystal display module, the hardware interaction module replaces the prior art and needs software intervention to realize the data processing process, and 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 continuously in the running state of the high-power-consumption mode due to the fact that the MCU cannot run in the low-power-consumption 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 present 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 needed to be used in the description of the embodiments will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a data display method provided in an embodiment of the present application;
FIG. 2 is a schematic flow chart illustrating a target time displayed by a segment code LCD module according to an embodiment of the present disclosure;
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 structural diagram of a clock display system according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a computer device provided in an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings. With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended 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 recitation of an element by the phrase "comprising an … …" does not exclude the presence of additional like elements in the process, method, article, or apparatus that comprises the element, and further, where similarly-named elements, features, or elements in different embodiments of the disclosure may have the same meaning, or may have different meanings, that particular meaning should be determined by their interpretation in the embodiment or further by context with the embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to 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 "when … …" or "in response to a determination", depending on the context. Also, 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," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or," "and/or," "including at least one of the following," and the like, as used herein, are to be construed as inclusive or mean any one or any combination. For example, "includes at least one of: A. b, C "means" any of the following: a; b; c; a and B; a and C; b and C; a and B and C ", again for example," A, B or C "or" A, B and/or C "means" any of the following: a; b; c; 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 inherently mutually exclusive in some way.
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, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown 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 multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
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 phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It should be noted that step numbers such as S10 and S20 are used herein for the purpose of more clearly and briefly describing the corresponding contents, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform S20 first and then perform S10 in the specific implementation, which should be within the scope of the present application.
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
In order to better understand the embodiments of the present application, the following are related terms and explanations thereof.
MCU: micro Control Unit, microcontroller chip, also known as a single chip;
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, also called main Memory, is an internal Memory that exchanges data directly with the CPU. It can read and write at any time (except for refreshing), and 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, External Low Speed Clock.
First, an application scenario that can be provided by the present application is introduced, for example, a data display method, an apparatus, a clock display system, a device, and a medium are provided, which can achieve data reading and writing between a clock module and a liquid crystal display module through a hardware module, thereby effectively reducing power consumption and cost of data display.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a data display method according to an embodiment of the present disclosure. The data display method may specifically include:
and S10, detecting whether a calendar register in the clock module is updated or not.
Specifically, for step S10, before detecting the calendar register, 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, and whether the target time value of the calendar register is updated is determined.
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 again.
And S20, reading a target time value in the calendar register after detecting that the calendar register is updated.
Optionally, in some embodiments, the data display method may further include:
and if the calendar register is not updated, continuously detecting the calendar register in the next detection period until the calendar register is updated.
Specifically, for the step S20, after it is detected that the target time value of the calendar register in the clock module is updated, a data basis is provided for subsequent writing to the buffer register by reading the target time value of the calendar register in the clock module; and when the target time value of the calendar register in the clock module is not updated, updating and detecting the calendar register in the next detection period, waiting for the updating of the calendar register, and repeating the process until the target time value of the calendar register is updated.
Optionally, in some embodiments, after the step of 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 mark corresponding to the target time value.
Specifically, after detecting that the target time value of the calendar register in the clock module is updated, the updated target time value is written into the buffer register for caching, and a ready flag corresponding to the target time value is set to notify the liquid crystal display module that the data of the buffer register is updated.
It should be noted that, in this embodiment, in addition to the way of setting the target time value, the data in the buffer area may be periodically read by the LCD module, or notification information may be sent to the LCD module when the buffer is written, which is not limited herein.
And S30, writing the target time value into a 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, 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 the ready flag is detected to be set, reading a target time value corresponding to the ready flag;
and 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 carries out refreshing display of the target time according to the target time value.
Specifically, for the step S30, after it is detected that the calendar register is updated, the segment code liquid crystal display module is initialized, and after the initialization is completed, the segment code liquid crystal display module detects whether a ready flag corresponding to a target time value in the buffer register is set, and when it is determined that the ready flag is set, the target time value in the buffer register is read and written into the random access memory RAM of the segment code liquid crystal display module, so that the segment code liquid crystal display module performs refresh display according to the written target time value.
Optionally, in some embodiments, the step S32 may specifically include:
and if the ready mark is not set, continuously detecting the ready mark in the cache register in the next detection period until the ready mark is set.
Specifically, after detecting whether a ready flag corresponding to a target time value in the buffer register is set through the segment code liquid crystal display module, if it is detected that the ready flag in the buffer register is not set, the buffer register is continuously detected in the next detection period, and the process is repeated until the ready flag in the buffer register is set.
Optionally, in some embodiments, the data display method may 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 the 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 acquiring current task information, so as to determine the 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 task is 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 external low-speed clocks to provide clock signals, so that the operation is continued, and the power consumption of data display is effectively reduced. Using LSE as the master clock can greatly reduce power consumption, for example, if only the LCD is required to display RTC time.
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 adopting the target clock to provide clock signals for the clock module and the segment code liquid crystal display module.
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, the required target clock is selected according to the obtained current task information, so that the required target clock is used as a main clock to provide clock information for the clock module and the 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 in the embodiment of the present application includes: detecting whether a calendar register in a clock module is updated or not; reading a target time value in the calendar register after detecting that the calendar register is updated; and writing the target time value into a 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. It can be seen that, in the data display method of the embodiment of the application, the target time value of the calendar register in the clock module is read, the target time value is written into the random access memory of the liquid crystal display module and then is refreshed and displayed by the liquid crystal display module, and the hardware interaction module replaces the prior art and needs 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 continuously in the running state of the high-power-consumption mode due to the fact that the MCU cannot run in the low-power-consumption mode in the prior art is solved, and the power consumption of data display is effectively reduced.
Correspondingly, the present application further provides a data display device, please refer to fig. 3, and fig. 3 is a schematic structural diagram of the data display device provided in the present application, which may specifically include a detection module 100, a reading module 200, and a writing module 300.
The detecting 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 through software, and after the initialization is completed, the detection module 100 directly detects and updates the calendar register in the clock module, and determines whether the target time value of the calendar register is updated.
The reading module 200 is configured to read the target time value in the calendar register after detecting that the calendar register is updated.
Optionally, in some embodiments, the reading module 200 is specifically further configured to:
and if the calendar register of the clock module is not updated, continuously detecting the calendar register 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 to provide a data basis for subsequent writing into the buffer register; and when the target time value of the calendar register in the clock module is not updated, updating and detecting the calendar register in the next detection period, waiting for the updating of the calendar register, and repeating the process until the target time value of the calendar register is updated.
The writing module 300 is configured to write the target time value into a 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 the ready mark is detected to be set; if the ready mark is not set, the ready mark in the cache register is continuously detected in the next detection period until the ready mark is set;
and the writing unit is used for writing the target time value into a random access memory of the segment code liquid crystal display module so as to enable the segment code liquid crystal display module to refresh and 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 detecting that the target time value of the calendar register in the clock module is updated, the updated target time value is written into the buffer register for caching, and the ready flag corresponding to the target time value is set to notify 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 detecting that the current working mode is a non-low-power-consumption mode; and adopting the target clock to provide clock signals for the clock module and the segment code liquid crystal display module.
To sum up, the data display device provided in the embodiment of the present application detects whether the calendar register in the clock module is updated through the detection module 100; reading a target time value in the calendar register by the reading module 200 after detecting that the calendar register is updated; and finally, writing the target time value into a segment code liquid crystal display module through a writing module 300, so that the segment code liquid crystal display module displays the target time according to the target time value. Therefore, the data display device of the embodiment of the application firstly reads the target time value of the calendar register in the clock module, writes the target time value into the random access memory of the liquid crystal display module, and then refreshes and displays the target time value by the liquid crystal display module; 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 continuously in the running state of the high-power-consumption mode due to the fact that the MCU cannot run in the low-power-consumption 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 present 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 used for reading the target time value in the calendar register after detecting that the calendar register is updated; writing the target time value into a segment code liquid crystal display module; and the segment code liquid crystal display module 30 is configured to display the target time according to the target time value.
The embodiment of the application also provides computer equipment, and the computer equipment 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 present disclosure. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for storing data such as data display methods 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 to implement a data display method, the data display method comprising: detecting whether a calendar register in a clock module is updated or not; reading a target time value in the calendar register after detecting that the calendar register is updated; 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 further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements a data display method, including: detecting whether a calendar register in a clock module is updated or not; reading a target time value in the calendar register after detecting that the calendar register is updated; 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 executed data display method, firstly, the target time value of the calendar register in the clock module is read, the target time value is written into the random access memory of the liquid crystal display module and then is refreshed and displayed by the liquid crystal display module, the hardware interaction module replaces the prior art and needs software intervention to realize the data processing process, and 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 continuously in the running state of the high-power-consumption mode due to the fact that the MCU cannot run in the low-power-consumption mode in the prior art is solved, and the power consumption of data display is effectively reduced.
It is to be understood that the foregoing scenarios are only examples, and do not constitute a limitation on application scenarios of the technical solutions provided in the embodiments of the present application, and the technical solutions of the present application may also be applied to other scenarios. For example, as can be known by those skilled in the art, with the evolution of system architecture and the emergence of new service scenarios, the technical solution provided in the embodiments of the present application is also applicable to similar technical problems.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits 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 in the embodiment of the application can be merged, divided and deleted according to actual needs.
In the present application, the same or similar term concepts, technical solutions and/or application scenario descriptions will be generally described only in detail at the first occurrence, and when the description is repeated later, the detailed description will not be repeated in general for brevity, and when understanding the technical solutions and the like of the present application, reference may be made to the related detailed description before the description for the same or similar term concepts, technical solutions and/or application scenario descriptions and the like which are not described in detail later.
In the present application, each embodiment is described with emphasis, and reference may be made to the description of other embodiments for parts that are not described or illustrated in any embodiment.
The technical features of the technical solution of the present application may be arbitrarily combined, and for brevity of description, all possible combinations of the technical features in the embodiments are not described, however, as long as there is no contradiction between the combinations of the technical features, the scope of the present application should be considered as being described in the present application.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
In the above embodiments, the implementation may be wholly or partially realized 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. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, 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 wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, memory Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (13)

1. A method of displaying data, comprising the steps of:
detecting whether a calendar register in a clock module is updated or not;
reading a target time value in the calendar register after detecting that the calendar register is updated;
and writing the target time value into a 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.
2. The data display method of claim 1, wherein after the reading of 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 mark corresponding to the target time value.
3. The method according to claim 1, wherein the writing the target time value into a segment code lcd module to make the segment code lcd module display the target time according to the target time value comprises:
initializing the segment code liquid crystal display module;
after the ready mark is detected to be set, reading a target time value corresponding to the ready mark;
and writing the target time value into a random access memory of the segment code liquid crystal display module so as to enable the segment code liquid crystal display module to refresh and display the target time according to the target time value.
4. The data display method of claim 1, further comprising:
and if the calendar register is not updated, continuously detecting the calendar register in the next detection period until the calendar register is updated.
5. The data display method of claim 3, further comprising:
and if the ready mark is not set, continuously detecting the ready mark in the cache register in the next detection period until the ready mark is set.
6. The data display method of claim 1, further comprising:
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 the 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.
7. The data display method of claim 6, further comprising:
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 adopting the target clock to provide clock signals for the clock module and the segment code liquid crystal display module.
8. 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.
9. A data display device, comprising:
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 the target time value in the calendar register after detecting that the calendar register is updated;
and the writing module is used for writing the target time value into the segment code liquid crystal display module so as to enable the segment code liquid crystal display module to display the target time according to the target time value.
10. The data display device of claim 9, further comprising:
and the setting module is used for writing the target time value into a buffer register so that the buffer register sets a ready mark corresponding to the target time value.
11. A clock display system is characterized by comprising a clock module, a data display device and a segment code liquid crystal display module;
wherein the clock module comprises a calendar register;
the data display device is used for reading the target time value in the calendar register after detecting that the calendar register is updated; 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.
12. 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 8 when executing the computer program.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the data display method of any one of claims 1 to 8.
CN202210151235.5A 2022-02-15 2022-02-15 Data display method, data display device, clock display system, clock display device and clock display medium Pending CN114442988A (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (1)

Publication Number Publication Date
CN114442988A true CN114442988A (en) 2022-05-06

Family

ID=81374563

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN114442988A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990033133A (en) * 1997-10-23 1999-05-15 윤종용 Real-Time Clock Diagnosis Method and Apparatus for Computer System
CN1933561A (en) * 2006-01-18 2007-03-21 康佳集团股份有限公司 Television set and remote controller thereof
JP2007155655A (en) * 2005-12-08 2007-06-21 Epson Toyocom Corp Control method for real-time clock and real time clock
CN201788658U (en) * 2010-09-19 2011-04-06 无锡力芯微电子股份有限公司 LCD driving circuit with clock
CN102830615A (en) * 2012-09-05 2012-12-19 飞亚达(集团)股份有限公司 Aviation timing method and system for providing dual time display and UTC (Universal Time Coordinated) timing and sending
CN103295551A (en) * 2013-06-09 2013-09-11 南车株洲电力机车研究所有限公司 Liquid crystal display (LCD) display control system and control method thereof
CN107481692A (en) * 2017-09-05 2017-12-15 珠海格力电器股份有限公司 The display methods and equipment of a kind of section-type LCD
CN110008105A (en) * 2019-04-11 2019-07-12 苏州浪潮智能科技有限公司 A kind of BMC time reservation method, device and electronic equipment and storage medium
US20200176071A1 (en) * 2018-11-30 2020-06-04 Ati Technologies Ulc Memory initialization reporting and control
CN112445749A (en) * 2020-11-27 2021-03-05 苏州浪潮智能科技有限公司 Signal detection recording method, system, device and medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990033133A (en) * 1997-10-23 1999-05-15 윤종용 Real-Time Clock Diagnosis Method and Apparatus for Computer System
JP2007155655A (en) * 2005-12-08 2007-06-21 Epson Toyocom Corp Control method for real-time clock and real time clock
CN1933561A (en) * 2006-01-18 2007-03-21 康佳集团股份有限公司 Television set and remote controller thereof
CN201788658U (en) * 2010-09-19 2011-04-06 无锡力芯微电子股份有限公司 LCD driving circuit with clock
CN102830615A (en) * 2012-09-05 2012-12-19 飞亚达(集团)股份有限公司 Aviation timing method and system for providing dual time display and UTC (Universal Time Coordinated) timing and sending
CN103295551A (en) * 2013-06-09 2013-09-11 南车株洲电力机车研究所有限公司 Liquid crystal display (LCD) display control system and control method thereof
CN107481692A (en) * 2017-09-05 2017-12-15 珠海格力电器股份有限公司 The display methods and equipment of a kind of section-type LCD
US20200176071A1 (en) * 2018-11-30 2020-06-04 Ati Technologies Ulc Memory initialization reporting and control
CN110008105A (en) * 2019-04-11 2019-07-12 苏州浪潮智能科技有限公司 A kind of BMC time reservation method, device and electronic equipment and storage medium
CN112445749A (en) * 2020-11-27 2021-03-05 苏州浪潮智能科技有限公司 Signal detection recording method, system, device and medium

Similar Documents

Publication Publication Date Title
US11094246B2 (en) Operating module for display and operating method, and electronic device supporting the same
US10230791B2 (en) Electronic device and method for controlling execution of application in electronic device
KR101475797B1 (en) Dynamic information adaptation for a computing device having multiple power modes
CN107590099B (en) Method for accessing slave machines by multiple hosts, extension device and storage medium
US10228750B2 (en) Reducing the power consumption of an information handling system capable of handling both dynamic and static display applications
US10795606B2 (en) Buffer-based update of state data
CN111756779A (en) Data serialization processing method, device and computer system
WO2017206893A1 (en) Interface refresh synchronization method and apparatus, terminal, and storage medium
CN111273830A (en) Data display method and device, electronic equipment and computer readable medium
CN109062602B (en) Data processing method and device for application program and electronic equipment
CN108132803B (en) Timing keep-alive and awakening method, system, terminal and medium based on mobile terminal
CN114442988A (en) Data display method, data display device, clock display system, clock display device and clock display medium
CN111061443B (en) Menu image display method, menu image display device, electronic equipment and machine-readable storage medium
CN109799715B (en) Data receiving method, device and terminal equipment
CN110045929B (en) Mounting point management method and related device
CN115269077A (en) Picture display method, module, mobile terminal and storage medium
CN113330412A (en) Method for redrawing notes, writing equipment and storage medium
CN110113416B (en) Method and device for displaying information
CN112306995A (en) Method and device for realizing database operation
CN112199122A (en) Method, device and equipment for configuring display screen parameters
CN110162385B (en) Processing framework capable of dynamically refreshing memory objects
CN112379875A (en) TD GUIE graphic system and QT graphic rendering library data interaction method
CN112540889B (en) Method, device, equipment and medium for adjusting hard disk starting sequence in user mode
US20220374127A1 (en) Electronic device recognizing touch and performing display
CN112015514B (en) Method and device for updating material preview window of electronic whiteboard

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