patents.google.com

CN102968082A - Method for realizing single line communication of singlechip - Google Patents

  • ️Wed Mar 13 2013

CN102968082A - Method for realizing single line communication of singlechip - Google Patents

Method for realizing single line communication of singlechip Download PDF

Info

Publication number
CN102968082A
CN102968082A CN2012104759483A CN201210475948A CN102968082A CN 102968082 A CN102968082 A CN 102968082A CN 2012104759483 A CN2012104759483 A CN 2012104759483A CN 201210475948 A CN201210475948 A CN 201210475948A CN 102968082 A CN102968082 A CN 102968082A Authority
CN
China
Prior art keywords
chip microcomputer
cpu
level signal
low level
singlechip
Prior art date
2012-11-21
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.)
Granted
Application number
CN2012104759483A
Other languages
Chinese (zh)
Other versions
CN102968082B (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.)
Geeya Technology Co ltd
Original Assignee
CHENGDU GEEYA 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.)
2012-11-21
Filing date
2012-11-21
Publication date
2013-03-13
2012-11-21 Application filed by CHENGDU GEEYA TECHNOLOGY CO LTD filed Critical CHENGDU GEEYA TECHNOLOGY CO LTD
2012-11-21 Priority to CN201210475948.3A priority Critical patent/CN102968082B/en
2013-03-13 Publication of CN102968082A publication Critical patent/CN102968082A/en
2014-10-01 Application granted granted Critical
2014-10-01 Publication of CN102968082B publication Critical patent/CN102968082B/en
Status Expired - Fee Related legal-status Critical Current
2032-11-21 Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method for realizing single line communication of a singlechip, and belongs to a communication method for the singlechip. The method is used for performing data communication between the singlechip and a central processing unit (CPU) and comprises the following steps of: A, pre-setting high-low electrical level signal time sequence combinations capable of executing different functions in the singlechip; B, sending a first high-low electrical level signal time sequence to the singlechip by the CPU, judging that the signal time sequence is matched with one or more of the pre-set high-low electrical level signal time sequence combinations after the singlechip receives the signal time sequence, and if so, feeding-back to the CPU; and C, sending a control instruction to the singlechip by the CPU through a same input/output (I/O) interface, and executing corresponding functions by the singlechip according to the control instruction. The high-low electrical level signal time sequence combinations with different functions are integrated in advance in a public-version program of the singlechip, and the matching verification of the signal time sequence is carried out, so that the aims that the CPU is wakened up to power on and is used for sending various kinds of control instructions are realized through the same I/O interface on the singlechip; and meanwhile, the method is easy to realize and popularize and the application cost is low.

Description

The implementation method that is used for the single-chip microcomputer single-wire communication

Technical field

The present invention relates to a kind of means of communication of single-chip microcomputer, in particular, the present invention relates generally to a kind of implementation method for the single-chip microcomputer single-wire communication.

Background technology

At present, in all kinds of chip designs, continuous expansion along with its function, and the communication that extends out between the equipment is also more and more, this just inevitably makes the communication modes that carries out various signal instructions on single-chip microcomputer or the chip also increase thereupon, and the chip of existing equipment or the communication between the single-chip microcomputer need two I/O interfaces or plural I/O interface just can realize at least, therefore for some I/O interfaces fewer chip or single-chip microcomputer, can divide to mix at the I/O interface resource and not enough problem occur, thereby making this type of chip or single-chip microcomputer extend out function is restricted, in the situation of especially in guaranteeing set-top box, keeping in communication between standby single-chip microcomputer and the mainboard CPU, existing the problems referred to above of connection that its I/O interface is extended out equipment are more obvious, therefore are necessary to do further improvement for the means of communication between single-chip microcomputer and the CPU.

Summary of the invention

One of purpose of the present invention is to solve above-mentioned deficiency, and a kind of implementation method for the single-chip microcomputer single-wire communication is provided, and solves single-chip processor i/o interface resource deficiency in the prior art with expectation, and a plurality of I/O interface communications take the more technical matters of resource.

For solving above-mentioned technical matters, the present invention by the following technical solutions:

A kind of implementation method for the single-chip microcomputer single-wire communication provided by the present invention, be used for and CPU between data communication, described method may further comprise the steps:

Steps A, the high-low level signal sequence that presets in single-chip microcomputer for the execution difference in functionality make up;

Step B, CPU send the first high-low level signal sequence to single-chip microcomputer, and single-chip microcomputer is received and judged behind this signal sequence when one or more in making up of the high-low level signal sequence that presets with it are complementary, namely makes feedback to CPU;

To the single-chip microcomputer sending controling instruction, single-chip microcomputer is carried out corresponding function according to this steering order by same I/O interface for step C, CPU.

As preferably, further technical scheme is: when the I/O interface of single-chip microcomputer after the start is defaulted as high level, the first high-low level signal sequence that CPU sends to single-chip microcomputer by this I/O interface among the described step B, and the feedback that single-chip microcomputer is made to CPU is the high-low level signal combination that continues different time.

Further technical scheme is: the high-low level signal combination of described lasting different time is for continuing successively 10 milliseconds low level, continuing 5 milliseconds high level, lasting 3 milliseconds low level signal sequence.

Further technical scheme is: CPU is twice to the first high-low level signal sequence that single-chip microcomputer sends among the described step B, and the interval continues the high level of unit interval between twice; The feedback that described single-chip microcomputer is made to CPU also is twice, and the interval continues the high level of unit interval between twice.

Further technical scheme is: the high-low level signal sequence combination that described steps A presets in single-chip microcomputer is integrated in the public version program of single-chip microcomputer.

Further technical scheme is: CPU also is twice to the steering order that single-chip microcomputer sends among the described step C, and the interval continues the high level of unit interval between twice.

Further technical scheme is: described method is applied to the communication between the true stand-by circuit module of set-top box set top box main CPU and the standby single-chip microcomputer.

Further technical scheme is: CPU is that telepilot is treated switch key assignments or standby wakeup time by same I/O interface to the steering order that single-chip microcomputer sends among the described step C.

Further technical scheme is: CPU treats that to the telepilot that single-chip microcomputer sends switch key assignments or standby wakeup time are twice among the described step C, and the interval continues 5 milliseconds high level between twice.

Compared with prior art, one of beneficial effect of the present invention is: by the in advance high-low level signal sequence combination of integrated representative difference in functionality in the public version program of single-chip microcomputer, and by the checking of signal sequence coupling, so that namely realizing waking up by the same I/O interface on the single-chip microcomputer, CPU powers on and the operations such as transmission of all kinds of steering orders, and when method of the present invention is used in set-top box, the telepilot code value of single-chip microcomputer and stand-by time all are to download in real time after powering on by set top box main CPU, therefore can realize that the single-chip microcomputer in different set-top box or other electronic equipments uses the public version of same program, improve consistance, and by in public version program, presetting integrated different signal sequences combination, can realize the I/O interface communication protocol of more difference in functionalitys, a kind of implementation method for the single-chip microcomputer single-wire communication provided by the present invention more easily realizes simultaneously, and application cost is lower, is easy to promote.

Embodiment

The present invention is further elaborated in conjunction with specific embodiments again for the below.

One embodiment of the present of invention are a kind of implementation methods for the single-chip microcomputer single-wire communication, are used for and the CPU(central processing unit) between data communication, described method may further comprise the steps:

Steps A, the high-low level signal sequence that presets in single-chip microcomputer for the execution difference in functionality make up;

Step B, CPU send the first high-low level signal sequence to single-chip microcomputer (being the MCU chip), single-chip microcomputer is received and is judged behind this signal sequence when one or more in making up of the high-low level signal sequence that presets with it are complementary, namely make feedback to CPU, for example be in single-chip microcomputer under the holding state and receive and namely power on behind the first high-low level signal sequence and notify CPU its power on number of times and other real-time status;

To the single-chip microcomputer sending controling instruction, single-chip microcomputer is carried out corresponding function according to this steering order by same I/O interface for step C, CPU.

More specifically, when the electronic equipment of using this kind means of communication after start, when the I/O interface of above-mentioned single-chip microcomputer is defaulted as high level, the first high-low level signal sequence that CPU sends to single-chip microcomputer by this I/O interface among the step B, and the feedback that single-chip microcomputer is made to CPU is the high-low level signal combination that continues different time.This high-low level signal combination can arrange arbitrarily according to the difference in functionality that single-chip microcomputer will be carried out, and for example it is set to continue successively 10 milliseconds low level, continue 5 milliseconds high level, lasting 3 milliseconds low level continuous signal sequential.

As preferably, the present invention is used for the technical solution problem, and a preferred embodiment is that CPU is set to twice to the first high-low level signal sequence that single-chip microcomputer sends among the step B, and the interval continues the high level of unit interval between twice; And the feedback that single-chip microcomputer is made to CPU also is twice, and the interval continues the high level of unit interval between twice, for example continues 5 milliseconds high level signal as the interval.The high-low level signal sequence that can guarantee like this difference in functionality that all kinds of representative single-chip microcomputers will be carried out can effectively send with received, also can help CPU and single-chip microcomputer to the verification of high-low level signal sequence authenticity.And according to this principle, the improvement that previous embodiment of the present invention also can be carried out is that CPU among the step C also is set to twice to all kinds of steering orders that single-chip microcomputer sends, and the interval continues the high level of unit interval between twice, this interval continue high level signal time can and aforementioned the first high-low level signal sequence between be set to identical or different.

And for guaranteeing that the method in the above embodiment of the present invention is easier to implement, the inventor thinks preferably be integrated in the high-low level signal that above-mentioned steps A presets in the public version program of single-chip microcomputer in single-chip microcomputer.

As a kind of application mode of the present invention, an alternative embodiment of the invention is that the implementation method with above-mentioned single-chip microcomputer single-wire communication is applied to the communication between the true stand-by circuit module of set-top box set top box main CPU and the standby single-chip microcomputer.In this kind application of the present invention, CPU then is that telepilot is treated switch key assignments or standby wakeup time by same I/O interface to the steering order that single-chip microcomputer sends among the above-mentioned steps C.

And similar to above-mentioned principle, CPU treats that to the telepilot that single-chip microcomputer sends switch key assignments or standby wakeup time are twice among the step C, and the interval continues 5 milliseconds high level between twice.

The below is again in conjunction with the above embodiment of the present invention, the present invention is further elaborated, after set-top box or the start of other electronic equipments, one of them I/O interface of its single-chip microcomputer is defaulted as high level, CPU can send high-low level notification signal sequential to single-chip microcomputer (this notification signal sequential is for continuing 10ms low level+lasting 5ms high level+lasting 3ms low level), send altogether 2 times, between the interval continue the high level of 5ms, single-chip microcomputer is after notified, transmission open state notice sequential should be notified sequential still for continuing 10ms low level+lasting 5ms high level+lasting 3ms low level to CPU(), send altogether 2 times, between also the interval continue the high level of 5ms, this is that single-chip microcomputer powers on for the first time for notice CPU; After CPU is notified, send key assignments and the standby wakeup time that telepilot is treated switch by same I/O interface, also send 2 times, between still the interval continue the high level of 5ms, and because the telepilot code value of single-chip microcomputer and stand-by time all are to download when powering on by CPU, use same MCU program (i.e. public version program) so in production and application, just can accomplish different equipment, accomplish mass production, the simultaneously combination by different high-low level duration length can realize the communications protocol between how different single-chip microcomputers and the CPU.

" embodiment " who speaks of in this manual, " another embodiment ", " embodiment ", etc., refer to specific features, structure or the characteristics described in conjunction with this embodiment and be included among at least one embodiment that the application's generality describes.A plurality of local appearance statement of the same race is not necessarily to refer to same embodiment in instructions.Furthermore, when describing a specific features, structure or characteristics in conjunction with arbitrary embodiment, what advocate is to realize that in conjunction with other embodiment this feature, structure or characteristics also fall within the scope of the invention.

Although invention has been described with reference to a plurality of explanatory embodiment of the present invention here, but, should be appreciated that those skilled in the art can design a lot of other modification and embodiments, these are revised and embodiment will drop within the disclosed principle scope and spirit of the application.More particularly, in present specification and claim scope of disclosure, can carry out multiple modification and improvement to building block and/or the layout of subject combination layout.Except modification that building block and/or layout are carried out with improving, to those skilled in the art, other purposes also will be obvious.

Claims (9)

1. implementation method that is used for the single-chip microcomputer single-wire communication, be used for and CPU between data communication, it is characterized in that: described method may further comprise the steps:

Steps A, the high-low level signal sequence that presets in single-chip microcomputer for the execution difference in functionality make up;

Step B, CPU send the first high-low level signal sequence to single-chip microcomputer, and single-chip microcomputer is received and judged behind this signal sequence when one or more in making up of the high-low level signal sequence that presets with it are complementary, namely makes feedback to CPU;

To the single-chip microcomputer sending controling instruction, single-chip microcomputer is carried out corresponding function according to this steering order by same I/O interface for step C, CPU.

2. the implementation method for the single-chip microcomputer single-wire communication according to claim 1, it is characterized in that: when the I/O interface of single-chip microcomputer after the start is defaulted as high level, the first high-low level signal sequence that CPU sends to single-chip microcomputer by this I/O interface among the described step B, and the feedback that single-chip microcomputer is made to CPU is the high-low level signal combination that continues different time.

3. the implementation method for the single-chip microcomputer single-wire communication according to claim 2 is characterized in that: the high-low level signal combination of described lasting different time is for continuing successively 10 milliseconds low level, continuing 5 milliseconds high level, continue 3 milliseconds low level signal sequence.

4. the implementation method for the single-chip microcomputer single-wire communication according to claim 1 and 2 is characterized in that: CPU is twice to the first high-low level signal sequence that single-chip microcomputer sends among the described step B, and the interval continues the high level of unit interval between twice; The feedback that described single-chip microcomputer is made to CPU also is twice, and the interval continues the high level of unit interval between twice.

5. the implementation method for the single-chip microcomputer single-wire communication according to claim 1 is characterized in that: the high-low level signal sequence combination that described steps A presets in single-chip microcomputer is integrated in the public version program of single-chip microcomputer.

6. the implementation method for the single-chip microcomputer single-wire communication according to claim 1 is characterized in that: CPU also is twice to the steering order that single-chip microcomputer sends among the described step C, and the interval continues the high level of unit interval between twice.

7. the implementation method for the single-chip microcomputer single-wire communication according to claim 1, it is characterized in that: described method is applied to the communication between the true stand-by circuit module of set-top box set top box main CPU and the standby single-chip microcomputer.

8. the implementation method for the single-chip microcomputer single-wire communication according to claim 7 is characterized in that: CPU is that telepilot is treated switch key assignments or standby wakeup time by same I/O interface to the steering order that single-chip microcomputer sends among the described step C.

9. the implementation method for the single-chip microcomputer single-wire communication according to claim 8, it is characterized in that: CPU treats that to the telepilot that single-chip microcomputer sends switch key assignments or standby wakeup time are twice among the described step C, and the interval continues 5 milliseconds high level between twice.

CN201210475948.3A 2012-11-21 2012-11-21 Method for realizing single line communication of singlechip Expired - Fee Related CN102968082B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210475948.3A CN102968082B (en) 2012-11-21 2012-11-21 Method for realizing single line communication of singlechip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210475948.3A CN102968082B (en) 2012-11-21 2012-11-21 Method for realizing single line communication of singlechip

Publications (2)

Publication Number Publication Date
CN102968082A true CN102968082A (en) 2013-03-13
CN102968082B CN102968082B (en) 2014-10-01

Family

ID=47798271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210475948.3A Expired - Fee Related CN102968082B (en) 2012-11-21 2012-11-21 Method for realizing single line communication of singlechip

Country Status (1)

Country Link
CN (1) CN102968082B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107402897A (en) * 2017-07-04 2017-11-28 厦门芯阳科技股份有限公司 A kind of method of two single-chip I/O mouth single line communications
CN108549279A (en) * 2018-04-02 2018-09-18 郑州云海信息技术有限公司 A kind of method and apparatus for preventing server master board core voltage from leaking electricity
CN111683399A (en) * 2020-06-05 2020-09-18 南京英锐创电子科技有限公司 Device wake-up circuit, electronic device, wake-up system and device wake-up method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1375802A (en) * 2002-04-17 2002-10-23 吴远彪 Single wire transmitted controller for several electrical equipment units
CN1382326A (en) * 1999-10-28 2002-11-27 鲍尔斯马特公司 One way single-wire communication interface
CN1546342A (en) * 2003-12-17 2004-11-17 吴远彪 Single line transmission control system for automobile door electric appliance unit
CN101499043A (en) * 2009-03-12 2009-08-05 杭州士兰微电子股份有限公司 Single-wire bus system and communication method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1382326A (en) * 1999-10-28 2002-11-27 鲍尔斯马特公司 One way single-wire communication interface
CN1375802A (en) * 2002-04-17 2002-10-23 吴远彪 Single wire transmitted controller for several electrical equipment units
CN1546342A (en) * 2003-12-17 2004-11-17 吴远彪 Single line transmission control system for automobile door electric appliance unit
CN101499043A (en) * 2009-03-12 2009-08-05 杭州士兰微电子股份有限公司 Single-wire bus system and communication method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107402897A (en) * 2017-07-04 2017-11-28 厦门芯阳科技股份有限公司 A kind of method of two single-chip I/O mouth single line communications
CN108549279A (en) * 2018-04-02 2018-09-18 郑州云海信息技术有限公司 A kind of method and apparatus for preventing server master board core voltage from leaking electricity
CN111683399A (en) * 2020-06-05 2020-09-18 南京英锐创电子科技有限公司 Device wake-up circuit, electronic device, wake-up system and device wake-up method

Also Published As

Publication number Publication date
CN102968082B (en) 2014-10-01

Similar Documents

Publication Publication Date Title
ATE508560T1 (en) 2011-05-15 METHOD AND COMMUNICATION SYSTEM FOR TRANSMITTING INFORMATION IN A MOTOR VEHICLE
WO2007148198A3 (en) 2008-02-21 Method and system for providing interim discontinuous reception/transmission
EP2381695A4 (en) 2013-12-25 Construction equipment remote control system and method for controlling data transmission/reception while the construction equipment is in engine-off state
WO2010025205A3 (en) 2010-07-01 Method and apparatus to combine power and control signals in a mobile computing device
CN102968082B (en) 2014-10-01 Method for realizing single line communication of singlechip
WO2010060752A3 (en) 2010-08-05 Methods, apparatuses, system, related computer program product and data structure for power control and resource allocation
JPWO2016143130A1 (en) 2017-07-27 Air conditioner connection system
CN104021105A (en) 2014-09-03 Multifunctional interface expansion device and method based on ARM
CN102707698A (en) 2012-10-03 Household appliance control method
CN204272170U (en) 2015-04-15 A kind of BACnet protocol conversion system
CN102722154B (en) 2014-08-13 Household appliance control device
CN103067176A (en) 2013-04-24 Safety authentication method applied to multi-unit server management
CN103472746B (en) 2015-12-09 The redundancy control method of dual master control equipment and dual master control equipment
RU2702848C2 (en) 2019-10-11 Radio control panel for electric devices and method of transmitting command to electric device
CN204965406U (en) 2016-01-13 System and upgrading equipment that on -vehicle communication terminal upgrades
CN104049982A (en) 2014-09-17 Server control system and server control method
RU175051U1 (en) 2017-11-16 Processor module
CN203951462U (en) 2014-11-19 On-off control circuit and magnetic resonance system
CN103166659B (en) 2015-07-08 Radio-frequency mobile communication card and communication method
CN202838669U (en) 2013-03-27 NFC (Near Field Communication) switch system
CN109521717A (en) 2019-03-26 A kind of edge calculations logic controller with protocol translation
CN105320636B (en) 2018-07-13 CAN bus data equivalent device and data processing method
CN204761161U (en) 2015-11-11 Adopt expanded carrier technique's district intelligent management system
CN105357243A (en) 2016-02-24 Remote interaction method and apparatus with device in the Internet of things
CN204559625U (en) 2015-08-12 A kind of remote control of high-speed railway wireless network

Legal Events

Date Code Title Description
2013-03-13 C06 Publication
2013-03-13 PB01 Publication
2013-04-10 C10 Entry into substantive examination
2013-04-10 SE01 Entry into force of request for substantive examination
2014-10-01 C14 Grant of patent or utility model
2014-10-01 GR01 Patent grant
2014-12-03 C56 Change in the name or address of the patentee
2014-12-03 CP03 Change of name, title or address

Address after: 610000 No. 50 Shu West Road, Sichuan, Chengdu

Patentee after: GEEYA TECHNOLOGY CO.,LTD.

Address before: 610041 No. 50 Shu West Road, Sichuan, Chengdu

Patentee before: Chengdu Geeya Technology Co.,Ltd.

2022-11-01 CF01 Termination of patent right due to non-payment of annual fee
2022-11-01 CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141001

Termination date: 20211121