Specific embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein identical from start to finish
Or similar label represents same or similar element or the element with same or like function.Retouched below with reference to accompanying drawing
The embodiment stated is exemplary, it is intended to for explaining the present invention, and be not considered as limiting the invention.
Below with reference to the accompanying drawings the LED control system and the controlling party for the LED control system of the embodiment of the present invention described
Method.
Fig. 1 is the structured flowchart of LED control system according to an embodiment of the invention.As shown in figure 1, the LED is controlled
System processed can include:Pre-display data memory module 100, display data memory module 200 and display control module 300.
Wherein, in an embodiment of the present invention, display data memory module 200 is connected with pre-display data memory module 100, shows
Show that control module 300 is connected with pre-display data memory module 100 and display data memory module 200 respectively.
Specifically, pre-display data memory module 100 can be used to receiving and storing LED pre-display data.Wherein, LED is pre- aobvious
Registration can be regarded as by LED display or display lamp according to can be understood as next LED data to be shown, the LED data
The information content for being shown.That is, when LED control system carries out display control, pre-display data memory module
100 can at any time receive the data from other components and preserve, and this data can be used as next LED display datas to be shown.
Display data memory module 200 can be used to receiving and storing the current data to be displayed of LED.Wherein, LED is currently to be shown
Data can be understood as currently needing the LED data of display.
Display control module 300 can be used to, when the instruction of LED output displays is received, call display data memory module 200
In the current data to be displayed of LED carry out data output and show, and call the LED in pre-display data memory module 100 pre-
Display data, and using LED pre-display data are as the current data to be displayed of LED and are stored in display data memory module 200.
That is, when LED control system proceeds by display control, display control module 300 can receive LED output displays
Instruction, and after the instruction is received, the current data to be displayed of LED is called from display data memory module 200, and
Control the current data to be displayed of the LED to carry out data output to show, and LED in display data memory module 200 current
Data to be displayed is all called after finishing, can automatically by the LED pre-display data in pre-display data memory module 100
Display data memory module 200 is called in, and is called as the shown control module 300 of the new current data to be displayed of LED
To carry out output display.
It is appreciated that when LED control system carries out display control, display control module 300 is needed constantly from display number
The current data to be displayed of LED and outside port is sent to carry out output display, i.e. this process according to being read in memory module 200
Not allowing the data in display data memory module 200 has any modification or operation from other components, to prevent LED
Output error data.Therefore, in an embodiment of the present invention, when LED control system carries out display control, pre-display number
The data from other components can at any time being received according to memory module 100 and being preserved, this data can show number as next LED
According to, after the current data to be displayed outputs of the LED in display data memory module 200 are completed, display control module 300
Automatically next group of LED display data will can be read to display data memory module 200 from pre-display data memory module 100,
And automatically turn on next group of LED data output operation.
In order to ensure that any time can be updated to the data in pre-display data memory module 100, can't produce
Data manipulation conflict and cause mistake occur.Further, in one embodiment of the invention, as shown in Fig. 2 the LED
Control system may also include:Data latch control module 400, and the data latch control module 400 and pre-display data storage
Module 100 is connected, and the LED pre-display data that can be used in pre-display data memory module 100 just when called, connect
New LED pre-display data to be loaded into are received, and in the called completion of LED pre-display data, controls new LED to be loaded into
Pre-display data are loaded into pre-display data memory module 100.
That is, when pre-display data memory module 100 is shown data storage mould by display control module 300
When block 200 calls data automatically, external module updates operation still effectively to the data of pre-display data memory module 100,
I.e. now data latch control module 400 and can receive and latch these and update the data, i.e., do not influence current call action, treat
After the completion of call action, data latch control module 400 and updating the data for latch during this are stored in into pre-display data storage
In module 100, that is, ensure that any time can be updated to the data of pre-display data memory module 100, will not produce
Give birth to data manipulation conflict and cause mistake occur.
Alternatively, in one embodiment of the invention, pre-display data memory module 100 can be designed as latched version
Memory module, the pre-display data memory module 100 that should have latched version can not only be received and store LED pre-display numbers
According to while LED pre-display data that can also be in pre-display data memory module 100 are just when called, receiving and wait to be loaded into
New LED pre-display data, and LED pre-display data are called complete when, control new LED pre-display number to be loaded into
According to being loaded into pre-display data memory module 100.Thus, it is possible to simplify the design structure of LED control system.
Further, in one embodiment of the invention, as shown in figure 3, the LED control system may also include:Port
Function switching control module 500, port function switching control module 500 can be connected with display control module 300, can be used for
Control outside port carries out port function switching.More specifically, when outside port function, to be used not only for LED data displays defeated
When going out, port function switching control module 500 can automatically control switching outside port function, for example, working as LED display controls
When bringing into operation, outside port can be automatically switched to LED display output functions by port function switching control module 500, when
At the end of LED display controls, port function switching control module 500 outside port can be switched to before functional status.
Thus, it is to avoid software is realized and automatically controlled frequently between port function switching action, improves software work and system
Whole work efficiency.
Preferably, in one embodiment of the invention, as shown in figure 4, the LED control system may also include:Data are adjusted
With time control module 600, data call time control module 600 can be used to be locked to display data memory module 200, data
Deposit segmentum intercalaris when control module 400 and port function switching control module 500 send very first time nodal information, second respectively
Point information and the 3rd timing node information.That is, data call time control module 600 may be used to indicate whole LED
Control process each phase points, the phase points may include:When port function switching time point, current LED display datas are called
Between point, LED display datas allocating time point next time, data update time point etc..These phase points feedback of the information are controlled to LED
In the modules of system processed, indicate and control the switching of outside port function, display data to call and display data for accurate
Update.
Specifically, in an embodiment of the present invention, as shown in figure 5, the display control module 300 may include:With number
The control unit 310 and pre-display data memory module 100 and display data being connected according to allocating time control module 600 are deposited
The connected call unit 320 of storage module 200 and the display unit 330 being connected with call unit 330.
Wherein, control unit 310 can be used for when the instruction of LED output displays is received, control data allocating time control mould
Block 600 sends the 3rd timing node information to port function switching control module 500.
Call unit 320 can be used to carry out port work(according to the 3rd timing node information in port function switching control module 500
After switching, the current data to be displayed of LED in display data memory module 200 is called.
Display unit 330 can be used to be exported to outside port the current data to be displayed of LED according to default display order to be carried out
Display.
More specifically, when LED control system performs LED output display functions, control unit 310 can control data call
Time control module 600 sends the 3rd timing node information to port function switching control module 500.The data call time is controlled
Molding block 600 is after the monitoring marking signal of port function switch step point, i.e. the 3rd timing node information is sent, and quilt
Port function switching control module 500 is received.When port function switching control module 500 receives the 3rd timing node letter
After breath, control command to port function select unit can will be sent automatically, the port function of outside port is led to from other
Telecommunication function automatically switches to LED output display functions, and subsequent call unit 320 will call display data memory module 200 automatically
In the current data to be displayed of LED, and the data are exported to end with the display order of advance arrangement by display unit 330
Mouth is outside, completes a LED presentation control function.
In the present embodiment, as shown in figure 5, the display control module 300 may also include:With display data memory module 200
Connected determining unit 340.
Wherein, in the present embodiment, control unit 310 can be additionally used in:Control data allocating time control module 600 to
While port function switching control module 500 sends the 3rd timing node information, control data allocating time control module 600
Very first time nodal information is sent to display data memory module 200.
Determining unit 340 can be used for the feedback letter sent for very first time nodal information according to display data memory module 200
Breath determines that the current data to be displayed of LED in display data memory module 200 can be called.When thus, by for first
The feedback information of intermediate node information confirms that the current data in display data memory module 200 can be called correctly.
The speed of LED display datas output is significantly faster than due to the speed for calling the current data to be displayed of LED, therefore, display
Data memory module 200 has been called in LED display data output procedures and has emptied.In order to ensure display data memory module
There can be data in 200 for the display output of display unit 330, in an embodiment of the present invention, call unit 320 may be used also
The current data to be displayed of LED in display data memory module 200 is all called when finishing, and calls pre-display data to deposit
LED pre-display data in storage module 100, and using LED pre-display data are as the current data to be displayed of LED and are stored in
Display data memory module 200;Meanwhile, control unit 310 also can control data call time control module 600 to data
Latch control module 400 and send the second timing node information, so that data latch control module 400 according to the second timing node
Information carries out data latch.
That is, after the called unit 320 of the current data to be displayed of LED is all called and finished, display data storage mould
Block 200 automatically calls in the data in pre-display data memory module 100.Meanwhile, when the current data to be displayed of LED is adjusted
All called with unit 320 after finishing, data call time control module 600 will send indication signal:Timing node B believes
Breath, i.e. the second timing node information, and by the second timing node information feeding pre-display data memory module 100, show
Called in the LED pre-display data in pre-display data memory module 100 after the process and be completed to display data memory module
During 200 this section, other access visit is not allowed in pre-display data memory module 100.Therefore, can be by second
Timing node information and completion feedback marks are called, there is the load behavior of LED pre-display data during this, this group is loaded into
Data will latch control module 400 by data and be latched temporarily.More specifically, working as pre-display data memory module
100 when receiving the second timing node information, and data latch the turn-on data of control module 400 and are loaded into latch function;When pre- aobvious
Show data memory module 100 receive call completion feedback information after, data latch control module 400 latch data is transported automatically
Pre-display data memory module 100 is loaded onto, while data latch control module 400 closes data latch function.Thus, may be used
To ensure that LED pre-display data can be correctly loaded at any time.
In the present embodiment, control unit 310 can also be after one group of LED display datas output be completed, and control data is called
Time control module 600 sends the 3rd timing node information to port function switching control module 500, so that port function is cut
Change control module 500 controls outside port to switch to Elementary Function state according to the 3rd timing node information.That is, working as
After the completion of one group of LED output display data, data call time control module 600 will again send timing node C information (i.e.
3rd timing node information) to port function switching control module 500 so that outside port function automatically switches back into original
Functional status, original functional status can be regarded as before the display current data to be displayed of LED of display unit 330, end
The functional status that mouth function switching control module 500 is presently in.Simultaneously according to application requirement, timing waits until LED next time
Display data is exported.When calendar scheduling is to be achieved opens LED display functions next time, data call time control module 600
To send timing node A (i.e. very first time nodal information) to display data memory module 200, confirm that current data can be by
Correctly call, while timing node C information (i.e. the 3rd timing node information) is sent again, for the outside port that automatically switches
Function, while the LED presentation control functions of display control module 300 are opened, and then the continuous LED of completion is automatically controlled and swept
Retouch, function control is frequently carried out without software.
To sum up, be integrated in independent function in unified SCM system by technical scheme, while be different from existing again
There is the function of the LED drive control logics in single-chip microcomputer, i.e., LED control system of the invention can realize LED control datas
Be automatically imported and load automatically, and then completed under conditions of not needing software to carry out status tracking in real time LED data from
Dynamic display process;Simultaneously during continuous LED data displays, with data protection function, it is ensured that at any time
Data update to stablize correctly to be carried out;Meanwhile, the present invention supports that LED function and SCM system other functions make
During with same single-chip microcomputer external communication signals, function switching can be automatically carried out without by extra software control operation.
LED control system according to embodiments of the present invention, for scm application system exploitation, not only subtracts to a certain extent
Lack and controlled LED to show the cost for producing using independent LED drive control units, made development system integrated level higher, also,
During whole LED display controls, the frequent operation of software is not relied on, is realized by hardware automatic control function,
The software operating time and CPU process times needed for LED controls are greatly released, the effect of overall applicability system is improve
Rate and performance.
In order to preferably describe technical scheme, a kind of LED control system embodiment is set forth below and is subject to specifically
It is bright.The present embodiment is only a kind of example of the invention, it is not limited to which the technology that the present embodiment is proposed is realized.
For example, as shown in fig. 6, the LED control system can include pre-display data memory module 100, display data
Memory module 200, display control module 300, data latch control module 400, port function switching control module 500,
Data call time control module 600 and other functions unit module are constituted.Wherein, as shown in fig. 6, port function is selected
The outside port of the controllable whole system of control unit is LED output displays function or the selection of other communication functions.
After system initialization, first group of LED display data of saved system, same with this in display data memory module 200
When, can be loaded into next group of LED display data in pre-display data memory module 100 at any time by software program.When system is performed
During LED output display functions, software opens the LED presentation control functions of display control module 300, now during data call
Between control module 600 will send the monitoring marking signal of the node:Timing node C information (i.e. the 3rd timing node information),
And received by port function switching control module 500.When port function switching control module 500 receives timing node C letters
After breath (i.e. the 3rd timing node information), the automatic control command that sends is selected into control unit to port function, by outside
The function of port automatically switches to LED output display functions from other communication functions, and subsequent display control module 300 will be automatic
The data in display data memory module 200 are called, and the data are exported to port with the display order of advance arrangement,
Complete a LED presentation control function.Because the speed for calling LED display datas is significantly faster than the output of LED display datas
Speed, therefore display data memory module 200 has been called in LED display data output procedures and emptied.When LED shows
The shown control module 300 of data is all called after finishing, and display data memory module 200 is automatic by pre-display data storage
Data in module 100 are called in.Meanwhile, after the shown control module 300 of LED display datas is all called to be finished, number
Indication signal will be sent according to allocating time control module 600:Timing node B information (i.e. the second timing node information), and give
Enter pre-display data memory module 100, it is pre- aobvious during showing to call in completion this section to LED display datas after the process
Show and do not allow other access visit in data memory module 100.Therefore, by timing node feedback information B and calling completion
Feedback marks, the load behavior for having LED pre-display data during this, the data that this group is loaded into will latch control by data
Molding block 400 is latched temporarily.More specifically, i.e. when pre-display data memory module 100 receives timing node information
During B (i.e. the second timing node information), data latch the turn-on data of control module 400 and are loaded into latch function;Called when receiving
After completing feedback information, data latch control module 400 and automatically deliver to pre-display data memory module 100 latch data,
Data latch function is simultaneously closed off, thus, it is possible to ensure that LED pre-display data can be correctly loaded at any time.
After the completion of one group of LED output display data, data call time control module 600 will again send timing node C
Information (i.e. the 3rd timing node information) is to port function switching control module 500 so that outside port function automatically switches
Return Elementary Function state.Simultaneously according to application requirement, timing waits until LED display datas output next time.When timing is waited
When reaching unlatching LED display functions next time, data call time control module 600 will send timing node A (i.e. first
Timing node information) to display data memory module 200, confirm that current data can be called correctly, while sending again
Timing node C information (i.e. the 3rd timing node information), for the outside port function that automatically switches, while display control mould
Block 300 opens LED presentation control functions, and then the continuous LED of completion automatically controls scanning, without software frequently
Carry out function control.
In order to realize above-described embodiment, the invention allows for a kind of control method for LED control system.
Fig. 7 is the flow chart of the control method for LED control system according to an embodiment of the invention.Need explanation
It is that the LED control system can be the LED control system described in any of the above-described embodiment.
As shown in fig. 7, the control method may include:
S701, receives the instruction of LED output displays.
Specifically, when LED output display functions are performed, the LED of the display control module in LED control system can be opened
Presentation control function, and the instruction of LED output displays can be received by the display control module.
S702, according to the LED output display instruction calls current data to be displayed of LED, and controls the current data to be displayed of LED
Data output is carried out to show.
It should be noted that after system initialization, saved system in the display data memory module in LED control system
One group of LED display data, at the same time, can at any time will next group of LED display data be loaded into it is pre- aobvious in LED control system
In showing data memory module.
Specifically, after the instruction of LED output displays is received, can be controlled by the data call time in LED control system
Molding block will send the monitoring marking signal of the node:Timing node C information (i.e. the 3rd timing node information), and by LED
Port function switching control module in control system is received.When receiving timing node C in port function switching control module
After information (i.e. the 3rd timing node information), control command to port work(is sent by port function switching control module automatically
Control unit can be selected, the function of outside port is automatically switched into LED output display functions from other communication functions, with
The data in display data memory module will be automatically called afterwards, and the data are exported to port with the display order of advance arrangement
Outside, completes a LED presentation control function.
S703, calls LED pre-display data, and controls LED pre-display data as receiving LED output displays next time
The current data to be displayed of LED during instruction is being stored.
The speed of LED display datas output is significantly faster than due to the speed for calling LED display datas, therefore display data is stored
Module has been called in LED display data output procedures and has emptied.After LED display datas are all called to be finished, can lead to
Display data memory module is crossed automatically to call in the data in pre-display data memory module.
Further, in one embodiment of the invention, when LED pre-display data are called, the control method may be used also
Including:New LED pre-display data to be loaded into are received, and in the called completion of LED pre-display data, controls to wait to be loaded into
New LED pre-display data as LED pre-display data being stored.
Specifically, after LED display datas are all called to be finished, finger can will be sent by data call time control module
Show signal:Timing node B information (i.e. the second timing node information), and pre-display data memory module is sent into, show the mistake
After journey to LED display datas call in completion this section during, do not allow other access to visit in pre-display data memory module
Ask.Therefore, by timing node feedback information B and calling completion feedback marks, there are LED pre-display data during this
Load behavior, data that this group is loaded into will temporarily be latched by data in LED control system latch control module.
More specifically, i.e. when pre-display data memory module receives timing node information B (i.e. the second timing node information),
Can turn-on data latch control module data be loaded into latch function;When receive call completion feedback information after, can be by data
Latch control module automatically to deliver to pre-display data memory module latch data, simultaneously close off data latch function, thus,
Can ensure that LED pre-display data can be correctly loaded at any time.
Control method for LED control system according to embodiments of the present invention, for scm application system exploitation, one
Determine to be not only reduced in degree controls LED to show the cost for producing using independent LED drive control units, makes development system collection
Into Du Genggao, also, during whole LED display controls, the frequent operation of software is not relied on, by hardware certainly
Dynamic control function realization, greatly releases the software operating time and CPU process times needed for LED controls, improves
The efficiency and performance of overall applicability system.
In the description of the invention, it is to be understood that term " first ", " second " are only used for describing purpose, and can not
It is interpreted as indicating or implying relative importance or the implicit quantity for indicating indicated technical characteristic.Thus, define " the
One ", at least one this feature can be expressed or be implicitly included to the feature of " second ".In the description of the invention, " multiple "
It is meant that at least two, such as two, three etc., unless otherwise expressly limited specifically.
In the present invention, unless otherwise clearly defined and limited, term " installation ", " connected ", " connection ", " fixation "
Should be interpreted broadly Deng term, for example, it may be fixedly connected, or be detachably connected, or integrally;Can be
Mechanically connect, or electrically connect;Can be joined directly together, it is also possible to be indirectly connected to by intermediary, can be two
The connection of individual element internal or two interaction relationships of element, unless otherwise clearly restriction.It is common for this area
For technical staff, above-mentioned term concrete meaning in the present invention can be as the case may be understood.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specific example ",
Or the description of " some examples " etc. means to combine specific features, structure, material or feature that the embodiment or example are described
It is contained at least one embodiment of the invention or example.In this manual, the schematic representation to above-mentioned term need not
Identical embodiment or example must be directed to.And, the specific features of description, structure, material or feature can be with office
Combined in an appropriate manner in one or more embodiments or example.Additionally, in the case of not conflicting, this area
Technical staff can be tied the feature of the different embodiments or example described in this specification and different embodiments or example
Close and combine.
Any process described otherwise above or method description in flow chart or herein is construed as, and expression includes one
Or more for the module of code of executable instruction the step of realizing specific logical function or process, fragment or part,
And the scope of the preferred embodiment of the present invention includes other realization, wherein order that is shown or discussing can not be pressed,
Including the function involved by basis by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Represent in flow charts or logic and/or step described otherwise above herein, for example, being considered for reality
The order list of the executable instruction of existing logic function, in may be embodied in any computer-readable medium, for instruction
Execution system, device or equipment (such as computer based system, including the system of processor or other can be performed from instruction
The system of system, device or equipment instruction fetch and execute instruction) use, or with reference to these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicating, propagating
Or transmission procedure is used for instruction execution system, device or equipment or with reference to these instruction execution systems, device or equipment
Device.The more specifically example (non-exhaustive list) of computer-readable medium includes following:With one or more cloth
The electrical connection section (electronic installation) of line, portable computer diskette box (magnetic device), random access memory (RAM) is read-only
Memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and it is portable
Compact disc read-only memory (CDROM).In addition, computer-readable medium can even is that the paper that can thereon print described program
Or other suitable media, because optical scanner for example can be carried out by paper or other media, then enter edlin, solution
Translate or if necessary processed with other suitable methods and electronically obtain described program, be then stored in computer
In memory.
It should be appreciated that each several part of the invention can be realized with hardware, software, firmware or combinations thereof.In above-mentioned reality
In applying mode, software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage or
Firmware is realized.If for example, realized with hardware, and in another embodiment, can be with well known in the art
Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal
Discrete logic, the application specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA) is existing
Field programmable gate array (FPGA) etc..
Those skilled in the art be appreciated that to realize all or part of step that above-described embodiment method is carried is can
Completed with the hardware that correlation is instructed by program, described program can be stored in a kind of computer-readable recording medium,
The program upon execution, including one or a combination set of the step of embodiment of the method.
Additionally, during each functional unit in each embodiment of the invention can be integrated in a processing module, or each
Individual unit is individually physically present, it is also possible to which two or more units are integrated in a module.Above-mentioned integrated module was both
Can be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.If the integrated module with
The form of software function module is realized and as independent production marketing or when using, it is also possible to which storage is in a computer-readable
In taking storage medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although having been shown and described above
Embodiments of the invention, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as limitation of the present invention,
One of ordinary skill in the art can be changed to above-described embodiment, change, replacing and modification within the scope of the invention.