CN103457595B - Single-chip microcomputer full duplex communication device and the means of communication - Google Patents

Single-chip microcomputer full duplex communication device and the means of communication Download PDF

Info

Publication number
CN103457595B
CN103457595B CN201210178802.2A CN201210178802A CN103457595B CN 103457595 B CN103457595 B CN 103457595B CN 201210178802 A CN201210178802 A CN 201210178802A CN 103457595 B CN103457595 B CN 103457595B
Authority
CN
China
Prior art keywords
chip microcomputer
signal input
terminate
signal
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210178802.2A
Other languages
Chinese (zh)
Other versions
CN103457595A (en
Inventor
陈景峰
唐先双
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Haier Group Corp
Qingdao Haier Technology Co Ltd
Original Assignee
Haier Group Corp
Qingdao Haier Technology 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 Haier Group Corp, Qingdao Haier Technology Co Ltd filed Critical Haier Group Corp
Priority to CN201210178802.2A priority Critical patent/CN103457595B/en
Publication of CN103457595A publication Critical patent/CN103457595A/en
Application granted granted Critical
Publication of CN103457595B publication Critical patent/CN103457595B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Communication Control (AREA)

Abstract

The invention discloses a kind of single-chip microcomputer full duplex communication device and method, described device includes: the first single-chip microcomputer, including the first signal output being made up of two I/O mouths of the first single-chip microcomputer respectively and the first signal input; Second singlechip, including the secondary signal delivery outlet being made up of the two of second singlechip I/O mouths respectively and secondary signal input port; Wherein, described secondary signal delivery outlet is connected with described first signal input, outputs signal to the first single-chip microcomputer for what export described second singlechip; Described secondary signal input port is connected with described first signal output, for receiving the output signal of described first single-chip microcomputer. The present invention improves quality and the cost competitiveness of product, it is achieved cost improvement; PCB design simplifies, and decreases the requirement simultaneously for master control borad taking communicating circuit part PCB space and also decreases, and reliability is high, and can solve EMC problem.

Description

Single-chip microcomputer full duplex communication device and the means of communication
Technical field
The present invention relates to communication technique field, particularly relate to a kind of single-chip microcomputer full duplex communication device and the means of communication.
Background technology
Refrigerator divides by control mode can be divided into mechanical temperature-control formula, electronic temperature-controlled type two kinds. Along with the development of scientific and technological level, electronic temperature-controlled type control refrigerator is because its temperature control is accurate, and the advantages such as man-machine interaction is convenient are by development energetically, and the sales volume of electronic temperature control refrigerator rises year by year.
The master controller of electronic temperature control refrigerator is the panel that the microcontroller (MCU) being made up of one or more single-chip microcomputers is main devices. The master controller composition of refrigerator generally has following several types; 1, without displaying scheme, only one of which panel, panel has a single-chip microcomputer; 2, with display panel scheme, display panel has individual single-chip microcomputer, control and display all realizes on the display panel; 3, display adds control, and controller is made up of two parts, and one is display panel, is specifically designed to human-computer exchange and display; Another one is master control borad, for the control of complete machine, including the collection of ambient parameters, control of load etc. Master control borad and display panel there is single-chip microcomputer, in order to complete the control that refrigerator is overall, mutual communication is needed between the single-chip microcomputer of the two plate, such as, setting value and function value that user is inputted by display panel are transferred to master control borad, and the parameter of load condition and household electrical appliances is delivered to display panel and shows by master control borad.
Wherein, the first scheme does not show, man-machine interaction is poor; First scheme has strong and weak electricity to coexist the problem of design, panel has generally required Power convert, alternating current power supply is converted to DC source for plank, and the problem that forceful electric power also needs to consideration safe distance together with light current; And the shortcoming of the third scheme above two scheme has all solved, both can there have is various display interface, it is absent from again the process problem that on a display panel, strong and weak electricity coexists, because the conversion of AC-DC all realizes at master control borad, it display panel is all light current circuit, master control borad is less due to installation site limitation, it is possible to according to standard-required design safety distance thus determining the size of plank.And, in the third scheme, master control borad can select single-chip microcomputer and the peripheral circuit of suitable cost according to actually used situation, display panel is because just only having the functions such as display and button without forceful electric power, it is less that plank PCB can do, thus while the third scheme employs two planks, but its cost be not apparent from increasing.
Because above-mentioned reason, display panel adds the scheme of master control borad and is increasingly used widely. The communication modes being currently used between single-chip microcomputer and single-chip microcomputer has non-standard the dividing of standard, the communication modes of standard such as UART(UniversalAsynchronousReceiver/Transmitter--Universal Asynchronous Receive/dispensing device), SPI(SerialPeripheralInterface--Serial Peripheral Interface (SPI)), I2C(InterIntegratedCircuit-internal integrated circuit) have a common limitation, that is, these several communication modes have certain specificity. Such as single-chip microcomputer needs and host computer such as PC communication, and the UART module of that single-chip microcomputer is necessary for reserving. Again for example, single-chip microcomputer wants one to touch chip communication, the I2C module of that single-chip microcomputer is necessary for reserving, and additionally also some peripheral modules are to use SPI communication between single-chip microcomputer, and the SPI module of that single-chip microcomputer also must reserve. Therefore, if some in these functions of product needed, reserved corresponding module, if needed and other microcontroller communications, dual uart or double; two SCI or the single-chip microcomputer of double; two I2C interface must be selected, but such single-chip microcomputer is general all somewhat expensive, and fewer use.
Summary of the invention
(1) to solve the technical problem that
The technical problem to be solved in the present invention is: provide a kind of single-chip microcomputer full duplex communication device and the means of communication, without special expensive communication module, can realizing the full duplex communication between two single-chip microcomputers with the common I/O mouth on single-chip microcomputer, design is simple, cost is low.
(2) technical scheme
For solving the problems referred to above, on the one hand, the invention provides a kind of single-chip microcomputer full duplex communication device, including:
First single-chip microcomputer, including the first signal output being made up of two I/O mouths of the first single-chip microcomputer respectively and the first signal input;
Second singlechip, including the secondary signal delivery outlet being made up of the two of second singlechip I/O mouths respectively and secondary signal input port;
Wherein, described secondary signal delivery outlet is connected with described first signal input, outputs signal to the first single-chip microcomputer for what export described second singlechip;
Described secondary signal input port is connected with described first signal output, for receiving the output signal of described first single-chip microcomputer.
Preferably, described first single-chip microcomputer is the master control borad of equipment, and the output signal of described first single-chip microcomputer is the status information of equipment that described master control borad is collected; Described second singlechip is the display panel of equipment, is used for showing described status information of equipment, and collects the device parameter information that user sets, the device parameter information that output signal is described setting of described second singlechip.
Preferably, described first signal input and described secondary signal delivery outlet are directly connected to; Described secondary signal input port and described first signal output are directly connected to.
Preferably, described first signal input is connected by anti-jamming circuit with described secondary signal delivery outlet; Described secondary signal input port is connected by anti-jamming circuit with described first signal output.
On the other hand, present invention also offers a kind of full duplex communication method of above-mentioned single-chip microcomputer full duplex communication device, including data sending step and data reception step:
Described data sending step includes:
S101: when judging, whether base arrives the transmission break period length of setting: if arriving, forward step S102 to; Otherwise terminate;
S102: judge whether to send new frame number data: if it is, forward step S103 to; Otherwise send buffering signals initiating port and terminate;
S103: judge whether to send data: if it is, forward step S104 to; Otherwise send frame head data and terminate;
S104: send data and terminate;
Described data reception step includes:
S201: when judging, whether base arrives the reception break period length of setting: if arriving, then forward step S202 to; Otherwise terminate;
S202: determine whether communication signal, if it is, forward step S202 to; Otherwise terminate;
S203: whether what judgement received is frame head data: if it is, empty timing time and terminate; Otherwise receive data and terminate.
(3) beneficial effect
Hardware of the present invention is simple, it is only necessary to the common I/O mouth of single-chip microcomputer can realize the signal transmitting and receiving function between two single-chip microcomputers. If the communication module that system need not be special, select common dog-cheap single-chip microcomputer can realize the communication between single-chip microcomputer; If system needs special communication module, the communication modes of the present invention conflicts without with described special communication module. Hardware designs, not only saved the cost of raw material, fabric swatch cost and design cost, also very simple in software design, it is achieved scheme is easy, namely generally applicable after making module.
The communication of the present invention is full duplex communication mode, and transmitting-receiving is independently independent of each other, and reliability is fine.
The present invention arranges anti-jamming circuit between two single-chip microcomputers are as the common I/O mouth of communication port, it is possible to effectively preventing communication disturbed, communication is reliable.
Accompanying drawing explanation
Fig. 1 is the structured flowchart of the embodiment of the present invention two full duplex communication device;
Fig. 2 is the electrical block diagram of embodiment of the present invention anti-jamming circuit;
Fig. 3 is the flow chart of the data sending step of embodiment of the present invention full duplex communication method;
Fig. 4 is the flow chart of the data reception step of embodiment of the present invention full duplex communication method;
Fig. 5 is the communication data format schematic diagram of embodiment of the present invention full duplex communication method definition;
The representation of frame head data, data " 1 " and data " 0 " in the communication data format of Fig. 6 a-6c respectively embodiment of the present invention full duplex communication method definition.
Detailed description of the invention
Below in conjunction with drawings and Examples, that the present invention is described in detail is as follows.
Embodiment one:
The present embodiment describes a kind of single-chip microcomputer full duplex communication device, including:
First single-chip microcomputer, including the first signal output being made up of two I/O mouths of the first single-chip microcomputer respectively and the first signal input;
Second singlechip, including the secondary signal delivery outlet being made up of the two of second singlechip I/O mouths respectively and secondary signal input port;
Wherein, described secondary signal delivery outlet is connected with described first signal input, outputs signal to the first single-chip microcomputer for what export described second singlechip;
Described secondary signal input port is connected with described first signal output, for receiving the output signal of described first single-chip microcomputer.
Embodiment two:
The present embodiment includes the content of embodiment one, but more specifically, as it is shown in figure 1, described first single-chip microcomputer is the master control borad of equipment, the output signal of described first single-chip microcomputer is the status information of equipment that described master control borad is collected;Described second singlechip is the display panel of equipment, is used for showing described status information of equipment, and collects the device parameter information that user sets, the device parameter information that output signal is described setting of described second singlechip.
In the present embodiment, described master control borad is the master control borad of refrigerator, and it is for gathering the temperature signal of refrigerator, the feedback signal receiving load and output loading control signal; Described status information of equipment includes all or part of of the feedback signal of described temperature signal and load. The device parameter information such as described display panel is the display panel of refrigerator, is used for the man-machine interaction realizing between refrigerator apparatus and user, some parameter gears that user sets are gathered by described display panel, the status information of display panel display device simultaneously.
In the present embodiment, the mode of serial communication between master control borad and display panel, is used to carry out data exchange.
Certainly, in other embodiments of the invention, described master control borad and display panel can also be other electrical equipment, such as master control borad and the display panel of washing machine, air-conditioning, water heater, lampblack absorber, dish-washing machine etc.; Namely the present invention can be widely applied to have on the various electrical equipment of display panel and master control borad.
Embodiment three:
The present embodiment includes the content of embodiment one, wherein, when the first signal input is shorter with the spacing of described first signal output with described secondary signal delivery outlet, secondary signal input port, when communication is not easily susceptible to disturb, described first signal input and described secondary signal delivery outlet are directly connected to; Described secondary signal input port and described first signal output are directly connected to.
Embodiment four:
The present embodiment includes the content of embodiment one; wherein; when the first signal input and described secondary signal delivery outlet, secondary signal input port are longer with the spacing of described first signal output; in order to increase capacity of resisting disturbance; ensure that EMC experiment is qualified; the ESD device of needs increase necessity and electric capacity, resistance, audion etc. advantageously ensure that the reliability of communication, the port of MCU can also be protected to be not damaged by simultaneously. Therefore, in the present embodiment, described first signal input is connected by anti-jamming circuit with described secondary signal delivery outlet; Described secondary signal input port is connected by anti-jamming circuit with described first signal output.
Being anti-jamming circuit the more commonly used at present shown in Fig. 2, anti-interference device therein can also increase according to actually used situation or reduce.
Embodiment five:
A kind of full duplex communication method of above-mentioned single-chip microcomputer full duplex communication device, including data sending step and data reception step:
As it is shown on figure 3, described data sending step includes:
S101: when judging, whether base arrives the transmission break period length of setting: if arriving, forward step S102 to; Otherwise terminate;
S102: judge whether to send new frame number data: if it is, forward step S103 to; Otherwise send buffering signals initiating port and terminate;
S103: judge whether to send data: if it is, forward step S104 to; Otherwise send frame head data and terminate;
S104: send data and terminate;
As shown in Figure 4, described data reception step includes:
S201: when judging, whether base arrives the reception break period length of setting: if arriving, then forward step S202 to; Otherwise terminate;
S202: determine whether communication signal, if it is, forward step S203 to;Otherwise terminate;
In the present embodiment, when not having to drive, the I/O mouth circuit of single-chip microcomputer is pulled upward to high level, just knowing whether there is corresponding communication signal after having low level, therefore the present embodiment determines whether that communication signal is specially and judges whether signal input is low level;
S203: whether what judgement received is frame head data: if it is, empty timing time and terminate; Otherwise receive data and terminate.
In the present embodiment, definition communication data format is as it is shown in figure 5, frame head data therein, data " 1 " and data " 0 " 2mS high level 10mS low level shown in Fig. 6 a-6c respectively, 2mS high level 2mS low level and 2mS high level 6mS low level represent. First send out a high position during transmission, often distribute a frame, send out one 0, as buffer time, be further continued for sending out next frame. Certainly, in other embodiments of the invention, the data number of reception and data type, it is possible to carry out oneself definition according to different demand occasions. In actual use, reception and the transmission of the present embodiment all carry out always, and general data is defined as a byte, receives 8 positions, receive how many bytes display panel and master control borad when actually used and can determine at any time according to the situation of transmission data.
The present invention improves quality and the cost competitiveness of product, it is achieved cost improvement; PCB design simplifies, and decreases the requirement simultaneously for master control borad taking communicating circuit part PCB space and also decreases, and reliability is high, and can solve EMC problem.
Embodiment of above is merely to illustrate the present invention; and it is not limitation of the present invention; those of ordinary skill about technical field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all equivalent technical schemes fall within scope of the invention, and the scope of patent protection of the present invention should be defined by the claims.

Claims (4)

1. a single-chip microcomputer full duplex communication device, it is characterised in that including:
First single-chip microcomputer, including the first signal output being made up of two I/O mouths of the first single-chip microcomputer respectively and the first signal input;
Second singlechip, including the secondary signal delivery outlet being made up of the two of second singlechip I/O mouths respectively and secondary signal input port;
Wherein, described secondary signal delivery outlet is connected with described first signal input, outputs signal to the first single-chip microcomputer for what export described second singlechip;
Described secondary signal input port is connected with described first signal output, for receiving the output signal of described first single-chip microcomputer;
Wherein, described first single-chip microcomputer is the master control borad of equipment, and the output signal of described first single-chip microcomputer is the status information of equipment that described master control borad is collected; Described second singlechip is the display panel of equipment, is used for showing described status information of equipment, and collects the device parameter information that user sets, the device parameter information that output signal is described setting of described second singlechip.
2. single-chip microcomputer full duplex communication device as claimed in claim 1, it is characterised in that described first signal input and described secondary signal delivery outlet are directly connected to; Described secondary signal input port and described first signal output are directly connected to.
3. single-chip microcomputer full duplex communication device as claimed in claim 1, it is characterised in that described first signal input is connected by anti-jamming circuit with described secondary signal delivery outlet;Described secondary signal input port is connected by anti-jamming circuit with described first signal output.
4. the full duplex communication method of single-chip microcomputer full duplex communication device according to any one of a claim 1-2, it is characterised in that include data sending step and data reception step:
Described data sending step includes:
S101: when judging, whether base arrives the transmission break period length of setting: if arriving, forward step S102 to; Otherwise terminate;
S102: judge whether to send new frame number data: if it is, forward step S103 to; Otherwise send buffering signals initiating port and terminate;
S103: judge whether to send data: if it is, forward step S104 to; Otherwise send frame head data and terminate;
S104: send data and terminate;
Described data reception step includes:
S201: when judging, whether base arrives the reception break period length of setting: if so, then forward step S202 to; Otherwise terminate;
S202: judge whether signal input is low level, if it is, forward step S203 to; Otherwise terminate;
S203: whether what judgement received is frame head data: if it is, receive data and terminate; Otherwise empty timing time and terminate.
CN201210178802.2A 2012-06-01 2012-06-01 Single-chip microcomputer full duplex communication device and the means of communication Active CN103457595B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210178802.2A CN103457595B (en) 2012-06-01 2012-06-01 Single-chip microcomputer full duplex communication device and the means of communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210178802.2A CN103457595B (en) 2012-06-01 2012-06-01 Single-chip microcomputer full duplex communication device and the means of communication

Publications (2)

Publication Number Publication Date
CN103457595A CN103457595A (en) 2013-12-18
CN103457595B true CN103457595B (en) 2016-06-15

Family

ID=49739629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210178802.2A Active CN103457595B (en) 2012-06-01 2012-06-01 Single-chip microcomputer full duplex communication device and the means of communication

Country Status (1)

Country Link
CN (1) CN103457595B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110018659A (en) * 2019-04-18 2019-07-16 承德石油高等专科学校 A kind of Single Chip Computer Communication System and its means of communication
CN110633242A (en) * 2019-08-10 2019-12-31 中山华帝电子科技有限公司 Control circuit of serial port communication circuit
CN111751443A (en) * 2020-07-07 2020-10-09 盐城工学院 Development system of magnetic particle flaw detector

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2172881Y (en) * 1994-01-24 1994-07-27 曹英 Adjusting and checking instrument for industrial instrument and automatic control system
CN1304235A (en) * 2000-01-11 2001-07-18 神达电脑股份有限公司 Detection method of synchronous serial-data transmission
CN101033579A (en) * 2006-03-08 2007-09-12 海尔集团公司 Washing machine computer control plate with double-plate structure

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2172881Y (en) * 1994-01-24 1994-07-27 曹英 Adjusting and checking instrument for industrial instrument and automatic control system
CN1304235A (en) * 2000-01-11 2001-07-18 神达电脑股份有限公司 Detection method of synchronous serial-data transmission
CN101033579A (en) * 2006-03-08 2007-09-12 海尔集团公司 Washing machine computer control plate with double-plate structure

Also Published As

Publication number Publication date
CN103457595A (en) 2013-12-18

Similar Documents

Publication Publication Date Title
CN201765692U (en) General meter-reading controller for carrier wave electric energy meter
CN102738894A (en) Modularized intelligent power distribution terminal based on bus port
CN103457595B (en) Single-chip microcomputer full duplex communication device and the means of communication
CN102593951B (en) Single-user power utilization field intelligent management device with prepayment function
CN103592996B (en) A kind of structure of card insert type multichannel function/arbitrary waveform generator and device
CN104408002A (en) Serial port master-slave communication control system and method
CN203070010U (en) Multifunctional board card used for flexible AC power transmission apparatus
CN202948359U (en) Plug-in multichannel function or arbitrary waveform generator structure and device
CN102523508B (en) Intelligent television control method based on local area network
CN112379139A (en) Alternating current-direct current hybrid universal intelligent electric meter
CN103490797A (en) Intelligent communication system based on power lines
CN201345391Y (en) Control panel system used in electric automobile battery charger
CN104504129A (en) Information inquiring terminal of household intelligent electric meter
CN204989844U (en) Gesture control intelligence table liquid crystal display systems
CN102788006A (en) Embedded air compressor control system
CN111725893A (en) Embedded power health detection and management system
CN202033418U (en) Intelligent electricity meter
CN206783039U (en) A kind of elevator reservation system
CN202587019U (en) Hot-plug Ethernet communication module
CN202275286U (en) Digital-quantity field energy-saving controller
CN103166651B (en) Power control device of transmitter digital modulator
CN216901652U (en) Switching-on and switching-off device for low-voltage centralized meter reading and general data transmitter thereof
CN202771609U (en) CAN (controller area network) bus based automatic meter reading system for residential quarters
CN204406140U (en) A kind of bus type programable controller system
CN204166332U (en) Based on the central air conditioner TT&C system of load relation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant