A kind of gas instantaneous water heater control main board and display panel communication control system
Technical field
The utility model relates to a kind of control assembly that adopts the common full-automatic pressure exhaust fuel gas fast water heater of Alternating Current Power Supply, more specifically to gas instantaneous water heater control main board and display panel communication control system.
Background technology
The full-automatic pressure exhaust fuel gas fast water heater of domestic existing employing Alternating Current Power Supply; Include control main board, display panel; Control main board is core with the single-chip microcomputer, and while and Control Software combine, to water temperature, the duty realization control detection of water heater; Display panel mainly demonstrates coolant-temperature gage and state.Modes such as serial ports, I2C are generally used in control main board and display panel communication, but these mode communication distances are not far, and are anti-interference more weak.
The utility model content
The purpose of the utility model is: to the problem of above-mentioned existence, the system and method for a kind of water heater control main board and display panel Communication Control is provided.
To achieve these goals, the technical scheme of the utility model employing is:
A kind of gas instantaneous water heater control main board and display panel communication control system; Comprise display panel, control main board; Four pin sockets that connect display panel and control main board; Said display panel comprises first power supply, first single-chip microcomputer, display; Said control main board comprises second source, second singlechip, input control circuit, and said water heater control main board and display panel communication control system also comprise communicating circuit, and said communicating circuit comprises first data line, second data line and clock line; Said first single-chip microcomputer is connected with second singlechip through first data line, second data line and clock line respectively, and said first data line, second data line and clock line all comprise transistor switching circuit.
In above-mentioned gas instantaneous water heater control main board and the display panel communication control system, said first data line is used for first single-chip microcomputer and carries out data transmission to second singlechip.
In above-mentioned gas instantaneous water heater control main board and the display panel communication control system, said second data line is used for second singlechip and carries out data transmission to first single-chip microcomputer.
In above-mentioned gas instantaneous water heater control main board and the display panel communication control system, said clock line is used for second singlechip and carries out clock transfer to first single-chip microcomputer.
In above-mentioned gas instantaneous water heater control main board and the display panel communication control system; Said first data line comprises first triode; The data output end of said first single-chip microcomputer is connected with the base stage of first triode through the 4th resistance; The grounded emitter of first triode, the collector of first triode are connected with power supply with second resistance through the 3rd resistance successively, and said collector also is connected with the data input pin of second singlechip through the tripod of four pin sockets.
In above-mentioned gas instantaneous water heater control main board and the display panel communication control system; Said second data line comprises second triode; The data output end of said second singlechip is connected with the base stage of second triode through the tenth resistance; The grounded emitter of second triode; The collector of second triode is connected with power supply through the 4th pin and first resistance of the 8th resistance, four pin sockets successively, and said collector also is connected with the data input pin of first single-chip microcomputer through the 4th pin of four pin sockets.
In above-mentioned gas instantaneous water heater control main board and the display panel communication control system; Said clock line line comprises the 3rd triode; The output terminal of clock of said second singlechip is connected with the base stage of the 3rd triode through the 7th resistance; The grounded emitter of the 3rd triode; The collector of the 3rd triode is connected with power supply through the tripod and second resistance of the 5th resistance, four pin sockets successively, and said collector also is connected with the input end of clock of first single-chip microcomputer through the tripod of four pin sockets.
Gas instantaneous water heater control main board of the utility model and display panel communication control system comprise display panel and control main board two large divisions; All include single-chip microcomputer in said display panel and the control main board; First single-chip microcomputer in the display panel and the second singlechip in the control main board are realized the transmission of signal through communicating circuit; Said communicating circuit comprises that first single-chip microcomputer carries out first data line of data transmission to second singlechip; Second singlechip carries out second data line of data transmission to first single-chip microcomputer, and second singlechip carries out the clock line of clock transfer to first single-chip microcomputer, and said first data line, second data line and clock line all contain transistor switching circuit; Making data line and clock line through the break-make of controlling transistor switching circuit is high level or low level; First data line carries out the transmission of data-signal during for low level, and second data line carries out the transmission of data-signal during for high level, with respect to communication control circuit in the past; Data that communicating circuit comprised and clock line have been realized the various information transmission between control main board and the display panel, and circuit structure is simple.
Water heater control main board and display panel utilize the communication control system of the utility model to realize that concrete communicating control method is: control main board through clock line in the time of display panel tranmitting data register signal, through second data line to the display panel status data.After display panel has been accepted control main board and has been sent status data; If display panel does not have button operation; Then transmit a reply data through first data line to control main board, control main board is then judged having that it's too late whether work being normal of display panel according to having or not of monitoring reply data; If display panel has button operation, then the button operation data are transmitted to control main board through first data line.When control main board has monitored the button operation data when getting into, just can postpone automatically next time to the time of display panel status data, and receive the button operation data that display panel is sent here from first data line.
Compared with prior art, the beneficial effect of the utility model:The communication control system of the utility model is simple in structure, and reliability is high, and antijamming capability is strong, and communication distance is far away, and communication control system cooperates with unique total line traffic control means of communication, has realized the Communication Control of control main board and display panel.
Description of drawings
Fig. 1 is the theory diagram of control main board and display panel system.
Fig. 2 is the circuit diagram of display panel in the utility model.
Fig. 3 is the circuit diagram of control main board in the utility model.
Mark among the figure: 1-first power supply, 2-first single-chip microcomputer, 3-display, 4-second source, 5-transformer, 6-second singlechip; The 7-input control circuit, the data output end of A1-first single-chip microcomputer, the input end of clock of A2-first single-chip microcomputer, the data input pin of A3-first single-chip microcomputer, the output terminal of clock of B1-second singlechip; The data input pin of B2-second singlechip, the data output end of B3-second singlechip, D1-first data line, D2-second data line, D3-clock line; The tripod of J3-four pin sockets, the 4th pin of J4-four pin sockets, V2-first triode, V4-second triode, V3-the 3rd triode; L1-first inductance, L2-second inductance, R1-first resistance, R2-second resistance, R3-the 3rd resistance; R4-the 4th resistance, R5-the 5th resistance, R7-the 7th resistance, R8-the 8th resistance, R10-the tenth resistance.
Embodiment
Below in conjunction with accompanying drawing, the utility model is done detailed explanation.
For the purpose, technical scheme and the advantage that make the utility model is clearer,, the utility model is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the utility model, and be not used in qualification the utility model.
Embodiment 1
Shown in accompanying drawing 1, accompanying drawing 2, accompanying drawing 3; Present embodiment gas instantaneous water heater control main board and display panel communication control system; Comprise display panel, control main board; The four pin sockets XS that connect display panel and control main board; Said display panel comprises first power supply 1, first single-chip microcomputer 2, display 3, and said control main board comprises second source 4, transformer 5, second singlechip 6, input control circuit 7, and said communication control system also comprises communicating circuit; Said communicating circuit comprises the first data line D1, the second data line D2 and clock line D3; The data output end A1 of said first single-chip microcomputer is connected with the data input pin B2 of second singlechip 6 through the first data line D1, and the data output end B3 of said second singlechip is connected with the data input pin A3 of first single-chip microcomputer through the second data line D2, and the output terminal of clock B1 of said second singlechip is connected with the input end of clock A2 of first single-chip microcomputer through clock line D3; The first data line D1, the second data line D2 and clock line D3 contain transistor switching circuit; The first data line D1 is used for first single-chip microcomputer 2 and carries out data transmission to second singlechip 6, and the second data line D2 is used for second singlechip 6 and carries out data transmission to first single-chip microcomputer 2, and clock line D3 is used for second singlechip 6 and carries out clock transfer to first single-chip microcomputer 2.
Making data line through the break-make of controlling the last transistor switching circuit of the first data line D1, the second data line D2 and clock line D3 is high level or low level; The first data line D1 carries out the transmission of data-signal during for low level, and the second data line D2 carries out the transmission of data-signal during for high level.The said first data line D1 comprises the tripod J3 of the first triode V2, the 4th resistance R 4, the 3rd resistance R 3, second resistance R 2, first inductance L 1 and four pin sockets; The data output end A1 of said first single-chip microcomputer is connected with the base stage of the first triode V2 through the 4th resistance R 4; The grounded emitter of the first triode V2; The collector of the first triode V2 is connected with power supply with second resistance R 2 through the 3rd resistance R 3 successively, and the tripod J3 that said collector also passes through first inductance L 1, four pin sockets successively is connected with the data input pin B2 of second singlechip.The said second data line D2 comprises the second triode V4, the tenth resistance R 10, the 8th resistance R 8, the 4th pin J4 of four pin sockets, second inductance L 2; The data output end B3 of said second singlechip is connected with the base stage of the second triode V4 through the tenth resistance R 10; The grounded emitter of the second triode V4; The collector of the second triode V4 is connected with power supply through the 4th pin J4, second inductance L 2 and first resistance R 1 of the 8th resistance R 8, four pin sockets successively, and said collector also passes through the 8th resistance R 8, the 4th pin J4 of four pin sockets, second inductance L 2 successively and is connected with the data input pin A3 of first single-chip microcomputer.Said clock line D3 line comprises tripod J3, first inductance L 1, second resistance R 2 of the 3rd triode V3, the 7th resistance R 7, the 5th resistance R 5, four pin sockets; The output terminal of clock B1 of said second singlechip is connected with the base stage of the 3rd triode V3 through the 7th resistance R 7; The grounded emitter of the 3rd triode V3; The collector of the 3rd triode V3 is connected with power supply through tripod J3, first inductance L 1 and second resistance R 2 of the 5th resistance R 5, four pin sockets successively, and said collector also passes through the 5th resistance R 5, the tripod J3 of four pin sockets, first inductance L 1 successively and is connected with the input end of clock A2 of first single-chip microcomputer.
The concrete communicating control method that utilizes present embodiment to carry out control main board and display panel is:
(1) control main board is passed through clock line D3 in the time of display panel tranmitting data register signal; Press the fixed cycle to the display panel status data through the second data line D2; To display panel tranmitting data register signal, to the display panel status data, said status data comprises the duty and the temperature value of water heater to control main board to said control main board when the second data line D2 is high level when clock line D3 is high level; Status data is totally two bytes; Said two bytes transmit by the order from a high position to the low level, and first byte is a state byte, and second byte is a temperature value.Concrete mode is that control main board is from second singlechip tranmitting data register signal the time; Control main board transmits 16 status datas through the first data line D1 and gives display panel, and said control main board is ready to status data in the low level of clock line D3, during high level status data is sent; Display panel is when the high level of clock line D3; Read the status data that control panel sends, the low level width of said clock signal is 0.5ms-1ms, and a clock period is 1-3ms.
(2) after display panel has been accepted control main board and has been sent status data,
If display panel does not have button operation; Then begin regularly from having accepted status data; Transmit a reply data through the first data line D1 to control main board at the 10ms place, when sending reply data, the first data line D1 is a low level; The deration of signal of said reply data is 2ms, and control main board is then judged having that it's too late whether work being normal of display panel according to having or not of reply data.
If display panel has button operation, then begin regularly to begin the button operation data to be transmitted to control main board through the first data line D1 from 3ms from having accepted status data, when transmitting the button operation data, the first data line D1 is a low level.Said button operation type of data comprises " switch ", " intensification ", " cooling ", " preferentially "; The key of said " switch " is 1000, and " intensification " key is 0100, and " cooling " key is 0000; " preferentially " key is 1111; " 0 " state in the key is the low level of preceding 2ms, back 8ms high level, and the cycle is 10ms; One state is preceding 8ms low level, back 2ms high level, and the cycle also is 10ms.
(3) monitored the button operation data when getting into when control main board, just can postpone automatically next time to the time of display panel status data, and the button operation data of sending here from first data line D1 reception display panel.
When the equal no datat transmission of control main board and display panel, the first data line D1 moves high level to, and the second data line D2, clock line D3 all are pulled to low level.
With respect to communication control circuit in the past, the data line that communication control system comprised of present embodiment and clock line have been realized the various information transmission between control main board and the display panel, and circuit structure is simple; Data contact each other all has independent circuit transmission, has prevented interference between signals, has the reliability height, and antijamming capability is strong, the characteristics that communication distance is far away.
The above is merely the preferred embodiment of the utility model; Not in order to restriction the utility model; Any modification of being done within all spirit and principles at the utility model, be equal to replacement and improvement etc., all should be included within the protection domain of the utility model.