A method for controlling digital tube display
By determining the purpose of the digital tube and the performance of the microcontroller version, calculating the minimum I/O interface standard, designing cross-connection running programs and running in segments, the error display and cost increase caused by insufficient microcontroller GPIO ports is solved, and efficient I/O port utilization and stable operation are achieved.
Patent Information
- Application Number
- CN202210588694.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-27
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2042-05-27
AI Technical Summary
When using digital tubes, the microcontroller GPIO port often causes misrevealing or program crashes due to the use requirements of the microcontroller GPIO port, and adding the microcontroller GPIO port to solve the problem will increase the cost.
By determining the purpose and configuration model of the digital tube, checking and judging the performance of the microcontroller version, calculating and determining the minimum standard for the number of I/O interfaces required, designing and cross-connecting the digital tube running program, running in segments to improve I/O port utilization, and replacing the microcontroller if necessary to ensure performance is met.
It improves the utilization rate of the driver chip I/O port, saves I/O port, ensures that the digital tube operates stably under the lowest standard microcontroller configuration, avoids the high cost of increasing the microcontroller GPIO port to solve the problem, and quickly finds the best microcontroller programming method.
Smart Images

Figure CN114863853B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of digital tubes, and in particular to a method for controlling the display of digital tubes. Background Art
[0002] A Nixie tube, also known as a Nixie tube, is an electronic device that can display numbers and other information. It consists of a glass tube with an anode made of wire mesh and multiple cathodes. Most Nixie tubes have cathodes in the shape of numbers. The tube is filled with a low-pressure gas, usually mostly neon with some mercury and / or argon. When a charge is applied to one of the cathodes, the Nixie tube will emit a color of light, depending on the gas in the tube, usually orange or green;
[0003] The single-chip microcomputer carried by the digital tube is an integrated circuit chip. It uses very large-scale integrated circuit technology to integrate the central processing unit CPU with data processing capabilities, random access memory RAM, read-only memory ROM, multiple I / O ports and interrupt system, timer / counter and other functions into a small and complete microcomputer system on a silicon chip. It is widely used in the field of industrial control.
[0004] When using a digital tube, the GPIO port of the microcontroller inside the digital tube often fails to meet the usage requirements, resulting in the digital tube display error or program crash. At the same time, although increasing the GPIO port of the microcontroller can meet the usage needs, it will undoubtedly greatly increase the cost. Summary of the invention
[0005] Technical issues solved
[0006] In view of the above-mentioned shortcomings of the prior art, the present invention provides a method for controlling the display of a digital tube, which solves the problem that the GPIO port of the single-chip microcomputer installed inside the digital tube does not meet the use requirements, resulting in the digital tube display error or program crash. At the same time, although the use requirements can be met by adding the GPIO port of the single-chip microcomputer, the cost of manufacturing is increased.
[0007] Technical Solution
[0008] To achieve the above objectives, the present invention is implemented through the following technical solutions:
[0009] In a first aspect, a method for controlling a digital tube display in the present invention comprises the following steps:
[0010] S1: Select the digital tube area unit, determine the digital tube purpose and its configuration model;
[0011] S2: Check the version of the microcontroller used by the selected digital tube;
[0012] S3: judge based on the control quantity of the digital tube and the performance of the MCU version installed in the digital tube;
[0013] S4: Determine the minimum number of I / O interfaces required for the configuration of the single-chip microcomputer equipped with the digital tube by performing calculations based on the purpose of the digital tube and the control quantity;
[0014] S5: Sort out the digital tube operation program, design the single chip microcomputer operation program according to the digital tube use, and cross-connect the digital tube;
[0015] S6: Change the drive channel according to the digital tube operation frequency and transportation volume, and adaptively divide the drive channel. The single-chip microcomputer can be used for segmented operation with a reused program setting;
[0016] S7: Cross-use during the operation of the MCU driver, and use the cross-operation as a trigger signal to refresh the driver, and the driver responds to the new program command and runs immediately;
[0017] S8: Update the digital tube adaptation or operation mode for trial operation;
[0018] S81: Stable operation, meeting the normal working requirements of digital tubes;
[0019] S9: Digital tube test run adjustment error display, not running according to the specified program;
[0020] S10: Write the test program into the microcontroller. When the digital tube is powered on, the program starts and executes autonomously.
[0021] Furthermore, the step S3 includes the following sub-steps, which are as follows:
[0022] S31: The single-chip microcomputer in the digital tube meets the basic requirements for the operation of the digital tube control quantity, and then the process goes to step S5 and continues to run;
[0023] S32: The performance of the MCU version installed in the digital tube cannot adapt to the control quantity of the digital tube;
[0024] S33: Determine the basic MCU configuration according to the purpose of the digital tube, replace the MCU installed in the digital tube, ensure that the performance of the new MCU is higher than that of the original MCU, and enter step S5 to continue running.
[0025] Furthermore, the configuration replacement of the digital tube single-chip microcomputer is mainly an upgrade replacement, ensuring that the number of single-chip microcomputers installed in the digital tube does not change.
[0026] Furthermore, when replacing and upgrading the single chip microcomputer, the gears are changed according to the lowest operating standard, and they are tried one by one in conjunction with step S4.
[0027] Furthermore, in step S9, if the digital tube trial operation is adjusted and displayed incorrectly and does not run according to the specified program, jump to step S5.
[0028] In a second aspect, a method for controlling a digital tube display is provided, wherein the display method uses the following auxiliary method, specifically comprising the following steps:
[0029] S100: Rearrange the digital tubes according to the usage requirements and pre-install them;
[0030] S101: Based on the operation and display purpose as the design requirement, propose an operation plan:
[0031] S102: Write the operation plans into the MCU operation program one by one, and the user defines the operation priority, and conducts the test operation in the default order;
[0032] S103: During the trial operation, the user monitors in real time and determines the running stability and compatibility of each operation scheme on the digital tube;
[0033] S104: The user uses operation monitoring as the evaluation standard to evaluate the program compatibility and stability, and changes the installation and arrangement method of the single-chip microcomputer equipped with the digital tube;
[0034] S105: Perform a new round of deployment according to the reinstallation arrangement of the microcontroller.
[0035] Furthermore, after step S105 is completed, the process switches to step S100 for testing.
[0036] Furthermore, in step S102, the single chip microcomputer running program test is performed in a progressive manner from simple to complex.
[0037] Furthermore, the adjustment method in step S105 is to change the I / O interface carried by the single-chip microcomputer as the first adjustment scheme.
[0038] Furthermore, users can design display solutions according to the operation purpose of the digital tube, and design the operation mode of the microcontroller program based on the usage effect and actual budget.
[0039] Beneficial Effects
[0040] Compared with the known public technology, the technical solution provided by the present invention has the following beneficial effects:
[0041] 1. The present invention realizes cross-time refresh display by cross-connecting the segments of the digital tube in combination with segmented drive multiplexing, which greatly improves the utilization rate of the I / O port of the driver chip, saves the I / O port of the driver chip, and enables the digital tube to operate stably on the basis of the minimum standard of the single-chip microcomputer.
[0042] 2. The present invention can more quickly find the best single-chip microcomputer programming method for the digital tube by proposing a solution and testing it, avoiding the embarrassing situation that when the digital tube cannot carry the required solution, the problem can only be solved by adding a single-chip microcomputer.
[0043] 3. The present invention can operate in an optimal manner through design and trial operation, thereby reducing the cost of the digital tube group. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the prior art description are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0045] Figure 1 A flowchart of a method for controlling a digital tube display;
[0046] Figure 2 A schematic diagram of an auxiliary flow chart of a method for controlling a digital tube display;
[0047] Figure 3 This is a schematic diagram showing the first digital tube display logic scheme of the present invention;
[0048] Figure 4 This is a schematic diagram showing the second digital tube display logic scheme of the present invention; DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] The present invention will be further described below in conjunction with the embodiments.
[0051] Example 1
[0052] A method for controlling the display of a digital tube in the present invention, referring to Figure 1 :Comprising the following steps:
[0053] S1: Select the digital tube area unit, determine the digital tube purpose and its configuration model;
[0054] S2: Check the version of the microcontroller used by the selected digital tube;
[0055] S3: judge based on the control quantity of the digital tube and the performance of the MCU version installed in the digital tube;
[0056] S4: Determine the minimum number of I / O interfaces required for the configuration of the single-chip microcomputer equipped with the digital tube by performing calculations based on the purpose of the digital tube and the control quantity;
[0057] S5: Sort out the digital tube operation program, design the single chip microcomputer operation program according to the digital tube use, and cross-connect the digital tube;
[0058] S6: Change the drive channel according to the digital tube operation frequency and transportation volume, and adaptively divide the drive channel. The single-chip microcomputer can be used for segmented operation with a reused program setting;
[0059] S7: Cross-use during the operation of the MCU driver, and use the cross-operation as a trigger signal to refresh the driver, and the driver responds to the new program command and runs immediately;
[0060] S8: Update the digital tube adaptation or operation mode for trial operation;
[0061] S81: Stable operation, meeting the normal working requirements of digital tubes;
[0062] S9: Digital tube test run adjustment error display, not running according to the specified program;
[0063] S10: Write the test program into the microcontroller. When the digital tube is powered on, the program starts and executes autonomously.
[0064] When using this implementation, the user first selects the digital tube operation area, and the first step is to determine the purpose and configuration model of the digital tube in the area, and then detect the version of the single-chip microcomputer carried by the digital tube, sort out the digital tube operation program, and redesign the operation program brought by the single-chip microcomputer in the digital tube, cross-connect the digital tube to avoid the single-chip microcomputer single operation, reduce the situation where the single-chip microcomputer running memory is not fully utilized, and at the same time reduce the number of digital tubes of the single-chip microcomputer synchronous operation components;
[0065] Then, the single-chip microcomputer driving channel is changed according to the operation frequency and transportation volume of the digital tube, and the single-chip microcomputer driving channel is adaptively divided according to the operation of the digital tube. The single-chip microcomputer that is not fully used operates the digital tube in a segmented manner with a reused program setting;
[0066] The single-chip microcomputer runs in a cross-use manner, and the cross-operation start node is used as a trigger signal to refresh the single-chip microcomputer operation driver. The driver then responds immediately to refresh the obtained programming command to run. At this time, a new plan is tested. If the operation is stable, the program can be written into the single-chip microcomputer programming and used as the final running program. If other running failures such as running errors and displays occur, the number can be re-performed and a new running plan for the digital tube can be designed.
[0067] like Figure 1 As shown, step S3 includes the following sub-steps, and the steps are as follows:
[0068] S31: The single-chip microcomputer in the digital tube meets the basic requirements for the operation of the digital tube control quantity, and then the process goes to step S5 and continues to run;
[0069] S32: The performance of the MCU version installed in the digital tube cannot adapt to the control quantity of the digital tube;
[0070] S33: Determine the basic MCU configuration according to the purpose of the digital tube, replace the MCU installed in the digital tube, ensure that the performance of the new MCU is higher than that of the original MCU, and enter step S5 to continue running.
[0071] Through testing, if the single-chip microcomputer basically meets the operation requirements of the digital tube, estimate the operation requirements of the single-chip microcomputer in the digital tube, determine the required operation range, and arrange and design a new operation plan for the digital tube;
[0072] If the MCU installed in the digital tube does not meet the operating requirements of the digital tube, dismantle the old MCU, calculate the number of conservative MCUs and I / O interfaces on the MCU, and replace and install the new MCU based on the calculated results.
[0073] like Figure 1 As shown, the configuration replacement of the digital tube single-chip microcomputer is mainly an upgrade replacement, ensuring that the number of single-chip microcomputers installed in the digital tube does not change.
[0074] This setting can assist in the configuration standards required for the installation of new MCUs, avoiding the situation where the newly installed MCU still does not meet the requirements for the use of digital tubes or the MCU is installed beyond the budget, resulting in performance waste.
[0075] like Figure 1 As shown, when replacing and upgrading the single chip microcomputer, the gear is changed according to the lowest operating standard, and the steps S4 are tried one by one.
[0076] Such a setting can quickly find out the minimum usage requirements of the single-chip microcomputer that the digital tube needs to be equipped with, which improves the efficiency of users' modification of digital tubes and enables the digital tubes to start up and run normally more quickly and be put into use.
[0077] like Figure 1As shown, in step S9, if the digital tube test run is adjusted incorrectly and does not run according to the specified program, jump to step S5.
[0078] This setting can help users find the best way for the microcontroller to pass program instructions for the digital tube display, ensuring that the digital tube runs stably when equipped with the microcontroller.
[0079] Example 2
[0080] A method for controlling a digital tube display, the display method uses the following auxiliary method, referring to Figure 2 :Specifically include the following steps:
[0081] S100: Rearrange the digital tubes according to the usage requirements and pre-install them;
[0082] S101: Based on the operation and display purpose as the design requirement, propose an operation plan:
[0083] S102: Write the operation plans into the MCU operation program one by one, and the user defines the operation priority, and conducts the test operation in the default order;
[0084] S103: During the trial operation, the user monitors in real time and determines the running stability and compatibility of each operation scheme on the digital tube;
[0085] S104: The user uses operation monitoring as the evaluation standard to evaluate the program compatibility and stability, and changes the installation and arrangement method of the single-chip microcomputer equipped with the digital tube;
[0086] S105: Perform a new round of deployment according to the reinstallation arrangement of the microcontroller.
[0087] When using this implementation, the user first installs the digital tube to meet the actual display area requirements, and then designs a reasonable operation plan based on the purpose of the digital tube and the content presented, and writes the designed various plans into the microcontroller operation program. The user customizes or uses the default operation program to test the designed plans one by one. During the operation, the user monitors in real time, determines the best operation program based on the program operation compatibility and stability, sets the microcontroller operation program, pre-installs the microcontroller, and finally coordinates the microcontroller with the digital tube.
[0088] like Figure 2 As shown, after step S105 is completed, the process switches to step S100 for testing.
[0089] Such a setting can further test whether the microcontroller running program meets the long-term operation requirements of the digital tube and improve the stability of the long-term operation of the digital tube.
[0090] like Figure 2As shown, in step S102, the single chip microcomputer running program test is performed in a progressive manner from simple to complex.
[0091] This setting can help users detect the best operating program of the microcontroller in a more accurate manner, saving users' testing time.
[0092] like Figure 2 As shown, the adjustment method in step S105 is to change the I / O interface carried by the single-chip microcomputer as the first adjustment scheme.
[0093] Using this method as the first deployment solution can facilitate users to install the microcontroller, reduce the difficulty of operation, and improve efficiency to a certain extent.
[0094] Example 3
[0095] like Figure 3 and 4 As shown, users can design the display scheme according to the operation purpose of the digital tube, and design the operation mode of the microcontroller program according to the usage effect and actual budget.
[0096] In this way, the cost of improving the digital tube can be reduced, ensuring that the digital tube can achieve the user's ideal digital tube operating state in a variety of ways under the condition of user satisfaction, and showing diversified understanding and experience for the use of the digital tube.
[0097] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements will not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for controlling a digital tube display, comprising the following steps: S1: Select the digital tube area unit, determine the digital tube purpose and its configuration model; S2: Check the version of the microcontroller used by the selected digital tube; S3: judge based on the control quantity of the digital tube and the performance of the MCU version installed in the digital tube; S31: When the performance of the MCU version in the digital tube meets the basic requirements for the operation of the digital tube control quantity, the process proceeds to step S5 and continues to operate; S32: When the performance of the MCU version in the digital tube cannot adapt to the digital tube control quantity, go to step S33; S33: Determine the basic MCU configuration according to the purpose of the digital tube, replace the MCU installed in the digital tube, ensure that the performance of the new MCU is higher than that of the original MCU, and enter step S5 to continue running; S5: Sort out the digital tube operation program, design a new single-chip microcomputer operation program according to the purpose of the digital tube, and cross-connect the digital tube; S6: Change the drive channel according to the digital tube operation frequency and transportation volume, and adaptively divide the drive channel. The microcontroller with unused performance is operated in sections with the reused program setting; S7: Cross-use during the operation of the MCU driver, and use the cross-operation as a trigger signal to refresh the driver, and the driver responds to the new program command and runs immediately; S8: Update the digital tube adaptation or operation mode for trial operation; S81: When the operation is stable and meets the normal working requirements of the digital tube, proceed to step S10; S9: When the digital tube trial run is adjusted and displayed incorrectly, and does not run according to the specified program, jump to step S5; S10: Write the trial run program into the single-chip microcomputer. When the digital tube is powered on, the program starts and executes autonomously.
2. A method for controlling digital tube display according to claim 1, characterized in that: The configuration replacement of the single-chip microcomputer installed in the digital tube is mainly an upgrade replacement, ensuring that the number of single-chip microcomputers installed in the digital tube does not change.
3. A method for controlling digital tube display according to claim 2, characterized in that: When replacing or upgrading a single chip microcomputer, use the lowest operating standard as the change gear.
4. A method for controlling digital tube display according to claim 3, characterized in that: The method shown also uses the following auxiliary method, which specifically includes the following steps: S100: Rearrange the digital tubes according to the usage requirements and pre-install them; S101: Propose an operation plan based on the purpose and content of the digital tube as design requirements; S102: Write the operation plans into the microcontroller operation program one by one, and the user customizes the operation priority, and conducts a trial run in the default order; S103: During the trial operation, the user monitors in real time and determines the running stability and compatibility of each operation scheme on the digital tube; S104: The user uses operation monitoring as the evaluation standard to evaluate the program compatibility and stability, and changes the installation and arrangement method of the single-chip microcomputer equipped with the digital tube; S105: Perform a new round of deployment according to the reinstallation arrangement of the microcontroller.
5. A method for controlling digital tube display according to claim 4, characterized in that: After step S105 is completed, the process switches to step S102 for testing and operation.
6. A method for controlling digital tube display according to claim 5, characterized in that: In step S102, the single chip microcomputer running program trial run is performed in a progressive manner from simple to complex.
7. A method for controlling digital tube display according to claim 6, characterized in that: The adjustment method in step S105 is to change the I / O interface carried by the single chip microcomputer as a first adjustment scheme.
8. A method for controlling digital tube display according to claim 1, characterized in that: The user designs the display scheme according to the operation purpose of the digital tube, and designs the operation mode of the microcontroller program based on the usage effect and actual budget.
Citation Information
Patent Citations
PSO-BP neural network sensor calibration system and method based on MCU
CN110070170A
Nixie tube operation state detection system and self-diagnosis method
CN110940906A