CN104104379B - A kind of logic level signal transmission method and device - Google Patents
A kind of logic level signal transmission method and device Download PDFInfo
- Publication number
- CN104104379B CN104104379B CN201410324072.1A CN201410324072A CN104104379B CN 104104379 B CN104104379 B CN 104104379B CN 201410324072 A CN201410324072 A CN 201410324072A CN 104104379 B CN104104379 B CN 104104379B
- Authority
- CN
- China
- Prior art keywords
- logic level
- level signal
- signal
- resistor
- logic
- 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.)
- Expired - Fee Related
Links
Landscapes
- Logic Circuits (AREA)
Abstract
本发明提供一种逻辑电平信号传输方法及装置,方法包括:将发送的第一逻辑电平信号与第二逻辑电平信号进行叠加后产生叠加逻辑电平信号,将叠加逻辑电平信号传输后分离为第三逻辑电平信号与第四逻辑电平信号,第三逻辑电平信号或第四逻辑电平信号被响应接收;第一逻辑电平信号和第二逻辑电平信号分别与第三逻辑电平信号和第四逻辑电平信号相同,在第一逻辑电平信号完成传输后进行第二逻辑电平信号的传输。本发明通过将两路逻辑电平信号进行叠加后传输,再分离为两路逻辑电平信号,实现用一根信号线传输两路逻辑信号,减少车载娱乐导航系统的分体机主机和显示屏之间的连接器的引脚数,降低结构设计难度,提高信号连接的可靠性。
The present invention provides a logic level signal transmission method and device. The method includes: generating a superimposed logic level signal after superimposing the transmitted first logic level signal and the second logic level signal, and transmitting the superimposed logic level signal After that, it is separated into a third logic level signal and a fourth logic level signal, and the third logic level signal or the fourth logic level signal is received in response; the first logic level signal and the second logic level signal respectively The three logic level signal is the same as the fourth logic level signal, and the transmission of the second logic level signal is performed after the transmission of the first logic level signal is completed. In the present invention, two logic level signals are superimposed and then transmitted, and then separated into two logic level signals, so that two logic signals can be transmitted with one signal line, and the number of split hosts and display screens of the vehicle entertainment navigation system can be reduced. The number of pins between the connectors reduces the difficulty of structural design and improves the reliability of signal connections.
Description
技术领域technical field
本发明涉及信号传输技术领域,尤其涉及一种逻辑电平信号传输方法及装置。The present invention relates to the technical field of signal transmission, in particular to a logic level signal transmission method and device.
背景技术Background technique
在目前的车载娱乐导航系统中,越来越多地出现主机和面板分体、两者之间使用线缆进行电气联接的分体机;一般主机上含有MCU及相关电路,面板上含有MPU及相关电路。而分体机的主机和面板彼此连接的信号非常多,包括音视频、控制、通讯等信号,这样就要求使用的连接器的引脚PIN必须足够多,从而导致连接器选型困难,相应的结构设计也变得复杂,进而导致分体机的信号连接可靠性降低。In the current car entertainment navigation system, there are more and more split machines in which the main unit and the panel are separated, and the two are electrically connected by cables; generally, the main unit contains MCU and related circuits, and the panel contains MPU and related circuits. However, there are many signals connected to each other between the main unit and the panel of the split machine, including audio and video, control, communication and other signals, so that the pin PIN of the connector used must be enough, which makes it difficult to select the connector. The structural design also becomes complicated, which in turn reduces the reliability of the signal connection of the split machine.
在分体机的连接信号中,有很多信号不必同时传输,比如,车载娱乐导航系统的面板上设计有复位键,在系统发生异常(如死机)时,通过此复位键产生一个复位信号,对MCU、MPU整体复位,使其恢复到正常状态;同时,主机上的MCU也有单独对面板上的MPU进行复位的信号线。这两种复位信号就不是同时传输的,但在现有的技术方案中,要实现上述两种复位功能,必须使用两条信号线传输两种复位信号。Among the connection signals of the split machine, there are many signals that do not need to be transmitted at the same time. For example, the panel of the car entertainment navigation system is designed with a reset button. Reset the MCU and MPU as a whole to restore them to the normal state; at the same time, the MCU on the host also has a signal line to reset the MPU on the panel separately. The two reset signals are not transmitted at the same time, but in the existing technical solution, to realize the above two reset functions, two signal lines must be used to transmit the two reset signals.
发明内容Contents of the invention
本发明提供一种逻辑电平信号传输方法及装置,解决了用一根信号线完成两路逻辑电平信号传输的技术问题。The invention provides a logic level signal transmission method and device, which solves the technical problem of using one signal line to complete two logic level signal transmissions.
为达到上述目的,本发明所采取的技术方案为:In order to achieve the above object, the technical scheme adopted in the present invention is:
本发明一方面提供一种逻辑电平信号传输方法,其特征在于,包括:One aspect of the present invention provides a logic level signal transmission method, which is characterized in that it includes:
将发送的第一逻辑电平信号与第二逻辑电平信号进行叠加后产生叠加逻辑电平信号,将所述叠加逻辑电平信号传输后分离为第三逻辑电平信号与第四逻辑电平信号,第三逻辑电平信号或第四逻辑电平信号被响应接收;superimposing the sent first logic level signal and the second logic level signal to generate a superimposed logic level signal, and separating the superimposed logic level signal into a third logic level signal and a fourth logic level signal after transmission signal, a third logic level signal or a fourth logic level signal is received in response;
第一逻辑电平信号和第二逻辑电平信号分别与第三逻辑电平信号和第四逻辑电平信号相同,在第一逻辑电平信号完成传输后进行第二逻辑电平信号的传输。The first logic level signal and the second logic level signal are respectively the same as the third logic level signal and the fourth logic level signal, and the transmission of the second logic level signal is performed after the transmission of the first logic level signal is completed.
进一步地,在上述逻辑电平信号传输步骤之前,还包括:Further, before the above logic level signal transmission step, it also includes:
配置发送的第一逻辑电平信号与第二逻辑电平信号为常态逻辑电平;configuring the sent first logic level signal and the second logic level signal to be a normal logic level;
设置参数,使接收的第三逻辑电平信号和第四逻辑电平信号为常态逻辑电平;Setting parameters so that the received third logic level signal and the fourth logic level signal are normal logic levels;
配置用于响应的有效逻辑电平信号;A valid logic level signal configured for response;
控制第一逻辑电平信号或第二逻辑电平信号由常态逻辑电平信号变为有效逻辑电平信号。Controlling the first logic level signal or the second logic level signal to change from a normal logic level signal to an effective logic level signal.
在上述逻辑电平信号传输步骤之后,还包括:After the above logic level signal transmission steps, also include:
设置发送的第一逻辑电平信号或第二逻辑电平信号由有效逻辑电平信号恢复为常态逻辑电平信号的恢复时间和接收的第三逻辑电平信号或第四逻辑电平信号的响应间隔时间,所述恢复时间小于或等于所述响应间隔时间。Set the recovery time of the transmitted first or second logic level signal from an active logic level signal to a normal logic level signal and the response of the received third logic level signal or fourth logic level signal Interval time, the recovery time is less than or equal to the response interval time.
本发明另一方面提供一种逻辑电平信号传输装置,包括第一组信号输入输出接口、逻辑电平信号叠加电路、逻辑电平信号分离电路、第二组信号输入输出接口;Another aspect of the present invention provides a logic level signal transmission device, including a first set of signal input and output interfaces, a logic level signal superposition circuit, a logic level signal separation circuit, and a second set of signal input and output interfaces;
第一组信号输入输出接口包括第一逻辑电平信号输出接口与第二逻辑电平信号输出接口,分别连接逻辑电平信号叠加电路的第一逻辑电平信号输入端与第二逻辑电平信号输入端,用于将第一逻辑电平信号与第二逻辑电平信号发送到逻辑电平信号叠加电路;The first group of signal input and output interfaces includes a first logic level signal output interface and a second logic level signal output interface, respectively connected to the first logic level signal input terminal and the second logic level signal of the logic level signal superposition circuit The input terminal is used to send the first logic level signal and the second logic level signal to the logic level signal superposition circuit;
逻辑电平信号叠加电路,用于将第一逻辑电平信号与第二逻辑电平信号进行叠加后产生叠加逻辑电平信号,并将所述叠加逻辑电平信号通过叠加信号输出端传输到逻辑电平信号分离电路的叠加信号输入端;A logic level signal superposition circuit, configured to superimpose the first logic level signal and the second logic level signal to generate a superimposed logic level signal, and transmit the superimposed logic level signal to the logic through the superimposed signal output terminal The superposition signal input terminal of the level signal separation circuit;
逻辑电平信号分离电路,用于将所述叠加逻辑电平信号分离为第三逻辑电平信号与第四逻辑电平信号,分别通过第三逻辑电平信号输出端和第四逻辑电平信号输出端输出;A logic level signal separation circuit, configured to separate the superimposed logic level signal into a third logic level signal and a fourth logic level signal, through the third logic level signal output terminal and the fourth logic level signal respectively output output;
第二组信号输入输出接口包括第三逻辑电平信号输入接口与第四逻辑电平信号输入接口,分别连接逻辑电平信号分离电路的第三逻辑电平信号输出端和第四逻辑电平信号输出端,用于响应接收第三逻辑电平信号或第四逻辑电平信号。The second group of signal input and output interfaces includes a third logic level signal input interface and a fourth logic level signal input interface, respectively connected to the third logic level signal output end and the fourth logic level signal of the logic level signal separation circuit The output terminal is used for receiving the third logic level signal or the fourth logic level signal in response.
进一步地,还包括第一微控制器和第二微控制器;Further, it also includes a first microcontroller and a second microcontroller;
所述第一微控制器,用于将第一组信号输入输出接口配置为所述第一逻辑电平信号输出接口与第二逻辑电平信号输出接口;并用于先配置发送的第一逻辑电平信号与第二逻辑电平信号为常态逻辑电平,再控制第一逻辑电平信号或第二逻辑电平信号由常态逻辑电平信号变为有效逻辑电平信号;The first microcontroller is used to configure the first group of signal input and output interfaces as the first logic level signal output interface and the second logic level signal output interface; The flat signal and the second logic level signal are normal logic levels, and then the first logic level signal or the second logic level signal is controlled to change from a normal logic level signal to an effective logic level signal;
所述第二微控制器,用于将第二组信号输入输出接口配置为所述第三逻辑电平信号输入接口与第四逻辑电平信号输入接口;并配置用于响应的有效逻辑电平信号。The second microcontroller is configured to configure the second group of signal input and output interfaces as the third logic level signal input interface and the fourth logic level signal input interface; and configure an effective logic level for the response Signal.
进一步地,还包括第一微控制器和第二微控制器;Further, it also includes a first microcontroller and a second microcontroller;
所述第一微控制器,用于设置发送的第一逻辑电平信号或第二逻辑电平信号由有效逻辑电平信号恢复为常态逻辑电平信号的恢复时间;The first micro-controller is used to set the recovery time for the sent first logic level signal or the second logic level signal to recover from an effective logic level signal to a normal logic level signal;
所述第二微控制器,用于设置接收的有效逻辑电平信号的响应间隔时间,第三逻辑电平信号或第四逻辑电平信号为有效逻辑电平信号;The second microcontroller is used to set the response interval time of the received valid logic level signal, the third logic level signal or the fourth logic level signal is an effective logic level signal;
所述恢复时间被设置为小于或等于所述响应间隔时间。The recovery time is set to be less than or equal to the response interval time.
进一步地,所述逻辑电平信号传输装置的另一种结构为:Further, another structure of the logic level signal transmission device is:
所述第一组信号输入输出接口连接开关,通过所述开关控制发送的第一逻辑The first group of signal input and output interfaces are connected to a switch, and the first logic sent by the switch is controlled
电平信号或第二逻辑电平信号由常态逻辑电平信号变为有效逻辑电平信号。The level signal or the second logic level signal changes from a normal logic level signal to an effective logic level signal.
进一步地,所述逻辑电平信号叠加电路的第一逻辑电平信号输入端经第一电阻接电源,经第二电阻接地;Further, the first logic level signal input terminal of the logic level signal superposition circuit is connected to the power supply through the first resistor, and grounded through the second resistor;
所述逻辑电平信号叠加电路的第二逻辑电平信号输入端经第四电阻连接第三电阻的一端,第三电阻的另一端接电源;The second logic level signal input terminal of the logic level signal superposition circuit is connected to one end of the third resistor through the fourth resistor, and the other end of the third resistor is connected to the power supply;
第一电阻和第二电阻的对接端与第三电阻和第四电阻的对接端连接为逻辑电平信号叠加电路的叠加信号输出端。The connecting end of the first resistor and the second resistor and the connecting end of the third resistor and the fourth resistor are connected as the superposition signal output terminal of the logic level signal superposition circuit.
进一步地,所述逻辑电平信号分离电路的叠加信号输入端连接所述叠加信号输出端,所述逻辑电平信号分离电路具有第一三极管、第二三极管、第三三极管;Further, the superposition signal input end of the logic level signal separation circuit is connected to the superposition signal output end, and the logic level signal separation circuit has a first triode, a second triode, and a third triode ;
所述叠加信号输入端连接第一三极管的发射极,第一三极管的基极与电源之间串联有第五电阻,第一三极管的基极与地之间串联有第六电阻,第一三极管的集电极与电源之间串联有第七电阻,第一三极管的集电极连接所述第三逻辑电平信号输入接口;The superposition signal input end is connected to the emitter of the first triode, a fifth resistor is connected in series between the base of the first triode and the power supply, and a sixth resistor is connected in series between the base of the first triode and the ground. A resistor, a seventh resistor is connected in series between the collector of the first triode and the power supply, and the collector of the first triode is connected to the third logic level signal input interface;
所述叠加信号输入端经第八电阻连接第三三极管的基极,所述第八电阻的两端并联有第一电容,第三三极管的基极经第九电阻接地;第三三极管的发射极接地;第三三极管的集电极连接第二三极管的基极,第二三极管的基极经第十电阻连接所述叠加信号输入端,第二三极管的基极经第二电容接地;第二三极管的发射极接地;第二三极管的集电极经第十一电阻接电源,第二三极管的集电极连接所述第四逻辑电平信号输入接口。The input terminal of the superposition signal is connected to the base of the third triode through the eighth resistor, the first capacitor is connected in parallel with the two ends of the eighth resistor, and the base of the third triode is grounded through the ninth resistor; the third The emitter of the triode is grounded; the collector of the third triode is connected to the base of the second triode, and the base of the second triode is connected to the superposition signal input terminal through the tenth resistor, and the second triode The base of the tube is grounded through the second capacitor; the emitter of the second triode is grounded; the collector of the second triode is connected to the power supply through the eleventh resistor, and the collector of the second triode is connected to the fourth logic Level signal input interface.
本发明通过将两路逻辑电平信号进行叠加后产生叠加逻辑电平信号,再将叠加逻辑电平信号传输后分离为两路逻辑电平信号,实现用一根信号线传输两路逻辑信号,减少车载娱乐导航系统的分体机主机和显示屏之间的连接器的引脚数,降低结构设计难度,提高信号连接的可靠性。The present invention generates a superimposed logic level signal by superimposing two logic level signals, and then separates the superimposed logic level signal into two logic level signals after transmission, so as to realize the transmission of two logic signals with one signal line, The number of pins of the connector between the main unit of the car entertainment navigation system and the display screen is reduced, the difficulty of structural design is reduced, and the reliability of signal connection is improved.
附图说明Description of drawings
图1是本发明的逻辑电平信号传输方法的流程示意图;Fig. 1 is a schematic flow chart of the logic level signal transmission method of the present invention;
图2是本发明的逻辑电平信号传输装置的结构示意图;Fig. 2 is a schematic structural diagram of a logic level signal transmission device of the present invention;
图3是本发明的逻辑电平信号传输装置的电路结构示意图;3 is a schematic diagram of the circuit structure of the logic level signal transmission device of the present invention;
图4是本发明的逻辑电平信号传输装置的另一种实施例的结构示意图。FIG. 4 is a schematic structural diagram of another embodiment of the logic level signal transmission device of the present invention.
具体实施方式detailed description
下面结合附图具体阐明本发明的实施方式,附图仅供参考和说明使用,不构成对本发明专利保护范围的限制。The implementation of the present invention will be described in detail below in conjunction with the accompanying drawings. The accompanying drawings are only for reference and description, and do not constitute a limitation to the protection scope of the present invention.
实施例1:Example 1:
如图1所示,本实施例提供一种逻辑电平信号传输方法,包括:将发送的第一逻辑电平信号与第二逻辑电平信号进行叠加后产生叠加逻辑电平信号,将所述叠加逻辑电平信号传输后分离为第三逻辑电平信号与第四逻辑电平信号,第三逻辑电平信号或第四逻辑电平信号被响应接收;As shown in FIG. 1 , this embodiment provides a logic level signal transmission method, including: generating a superimposed logic level signal after superimposing the transmitted first logic level signal and a second logic level signal, and The superimposed logic level signal is separated into a third logic level signal and a fourth logic level signal after transmission, and the third logic level signal or the fourth logic level signal is received in response;
第一逻辑电平信号和第二逻辑电平信号分别与第三逻辑电平信号和第四逻辑电平信号相同,在第一逻辑电平信号完成传输后进行第二逻辑电平信号的传输。The first logic level signal and the second logic level signal are respectively the same as the third logic level signal and the fourth logic level signal, and the transmission of the second logic level signal is performed after the transmission of the first logic level signal is completed.
在本发明的实施例中,在上述逻辑电平信号传输步骤之前,还包括:In an embodiment of the present invention, before the above logic level signal transmission step, it also includes:
配置发送的第一逻辑电平信号与第二逻辑电平信号为常态逻辑电平;在本实施例中,通过将第一组信号输入输出接口、第二组信号输入输出接口配置为悬空(Floating)状态来实现;The first logic level signal and the second logic level signal configured to be sent are normal logic levels; in this embodiment, by configuring the first group of signal input and output interfaces and the second group of signal input and output interfaces as floating ) state to achieve;
设置参数,使接收的第三逻辑电平信号和第四逻辑电平信号为常态逻辑电平;在本实施例中,使接收的两路逻辑电平信号的常态为高电平;Parameters are set so that the received third logic level signal and the fourth logic level signal are normal logic levels; in this embodiment, the normal state of the received two logic level signals is high level;
配置用于响应的有效逻辑电平信号;在本实施例中,当逻辑电平由高电平变成低电平时才响应,有效逻辑电平为低电平;Configure an effective logic level signal for response; in this embodiment, respond only when the logic level changes from high level to low level, and the effective logic level is low level;
控制第一逻辑电平信号或第二逻辑电平信号由常态逻辑电平信号变为有效逻辑电平信号。在本实施例中,通过将第一组信号输入输出接口或第二组信号输入输出接口拉低来实现。Controlling the first logic level signal or the second logic level signal to change from a normal logic level signal to an effective logic level signal. In this embodiment, it is realized by pulling down the first group of signal input and output interfaces or the second group of signal input and output interfaces.
在本发明的实施例中,在上述逻辑电平信号传输步骤之后,还包括:In an embodiment of the present invention, after the above logic level signal transmission step, further includes:
第一微处理器设置发送的第一逻辑电平信号或第二逻辑电平信号由有效逻辑电平信号恢复为常态逻辑电平信号的恢复时间t2,第二微处理器设置接收的第三逻辑电平信号或第四逻辑电平信号的响应间隔时间t1,所述恢复时间t2小于或等于所述响应间隔时间t1。在本实施例中,在响应第三逻辑电平信号或第四逻辑电平信号输入之后的响应间隔时间t1内忽略其再次输入;在发送的第一逻辑电平信号或第二逻辑电平信号输出低电平后的恢复时间t2内将其恢复成常态。The first microprocessor sets the recovery time t2 for the first logic level signal or the second logic level signal sent by the effective logic level signal to the normal logic level signal, and the second microprocessor sets the third logic level signal received The response interval time t1 of the level signal or the fourth logic level signal, the recovery time t2 is less than or equal to the response interval time t1. In this embodiment, the input of the third logic level signal or the fourth logic level signal is ignored within the response interval time t1 after the input of the third logic level signal or the fourth logic level signal; It will return to the normal state within the recovery time t2 after outputting the low level.
本实施例提供的逻辑电平信号传输方法可应用于分体机形式的车载娱乐导航系统,具体用于分体机的主机和面板之间的信号传输,如对主机上的MCU和面板上的MPU整体复位的复位信号和单独对面板上的MPU复位的复位信号的传输,可以应用本实施例用一根信号线先后传输,而不必同时传输。The logic level signal transmission method provided in this embodiment can be applied to a car entertainment navigation system in the form of a split machine, and is specifically used for signal transmission between the host and the panel of the split machine, such as the MCU on the host and the panel on the panel. The transmission of the reset signal to reset the MPU as a whole and the reset signal to reset the MPU on the panel alone can be transmitted successively through one signal line in this embodiment, instead of at the same time.
本实施例通过将第一逻辑电平信号和第二逻辑电平信号进行叠加后产生叠加逻辑电平信号,再将叠加逻辑电平信号传输后分离为第三逻辑电平信号和第四逻辑电平信号,实现用一根信号线传输两路逻辑信号,减少车载娱乐导航系统的分体机主机和显示屏之间的连接器的引脚PIN数,降低结构设计难度,提高信号连接的可靠性。In this embodiment, the superimposed logic level signal is generated by superimposing the first logic level signal and the second logic level signal, and then the superimposed logic level signal is separated into a third logic level signal and a fourth logic level signal after transmission. Flat signal, realize the transmission of two logic signals with one signal line, reduce the number of PIN pins of the connector between the split machine host and the display screen of the car entertainment navigation system, reduce the difficulty of structural design, and improve the reliability of signal connection .
实施例2:Example 2:
如图2所示,本实施例提供一种逻辑电平信号传输装置,包括第一组信号输入输出接口、逻辑电平信号叠加电路、逻辑电平信号分离电路、第二组信号输入输出接口;As shown in FIG. 2, this embodiment provides a logic level signal transmission device, including a first set of signal input and output interfaces, a logic level signal superposition circuit, a logic level signal separation circuit, and a second set of signal input and output interfaces;
第一组信号输入输出接口包括第一逻辑电平信号输出接口I/O11与第二逻辑电平信号输出接口I/O12,分别连接逻辑电平信号叠加电路的第一逻辑电平信号输入端与第二逻辑电平信号输入端,用于将第一逻辑电平信号与第二逻辑电平信号发送到逻辑电平信号叠加电路;The first group of signal input and output interfaces includes a first logic level signal output interface I/O11 and a second logic level signal output interface I/O12, respectively connected to the first logic level signal input terminal and the logic level signal superposition circuit of the logic level signal The second logic level signal input terminal is used to send the first logic level signal and the second logic level signal to the logic level signal superposition circuit;
逻辑电平信号叠加电路,用于将第一逻辑电平信号与第二逻辑电平信号进行叠加后产生叠加逻辑电平信号,并将所述叠加逻辑电平信号通过叠加信号输出端传输到逻辑电平信号分离电路的叠加信号输入端;A logic level signal superposition circuit, configured to superimpose the first logic level signal and the second logic level signal to generate a superimposed logic level signal, and transmit the superimposed logic level signal to the logic through the superimposed signal output terminal The superposition signal input terminal of the level signal separation circuit;
逻辑电平信号分离电路,用于将所述叠加逻辑电平信号分离为第三逻辑电平信号与第四逻辑电平信号,分别通过第三逻辑电平信号输出端和第四逻辑电平信号输出端输出;A logic level signal separation circuit, configured to separate the superimposed logic level signal into a third logic level signal and a fourth logic level signal, through the third logic level signal output terminal and the fourth logic level signal respectively output output;
第二组信号输入输出接口包括第三逻辑电平信号输入接口I/O21与第四逻辑电平信号输入接口I/O22,分别连接逻辑电平信号分离电路的第三逻辑电平信号输出端和第四逻辑电平信号输出端,用于响应接收第三逻辑电平信号或第四逻辑电平信号。The second group of signal input and output interfaces includes a third logic level signal input interface I/O21 and a fourth logic level signal input interface I/O22, which are respectively connected to the third logic level signal output terminal and the logic level signal separation circuit of the logic level signal separation circuit. The fourth logic level signal output end is used for receiving the third logic level signal or the fourth logic level signal in response.
如图2所示,在本发明的实施例中,还包括第一微控制器和第二微控制器;As shown in Figure 2, in an embodiment of the present invention, a first microcontroller and a second microcontroller are also included;
所述第一微控制器,用于将第一组信号输入输出接口配置为所述第一逻辑电平信号输出接口I/O11与第二逻辑电平信号输出接口I/O12;并用于先配置发送的第一逻辑电平信号A1与第二逻辑电平信号B1为常态逻辑电平,再控制第一逻辑电平信号A1或第二逻辑电平信号B1由常态逻辑电平信号变为有效逻辑电平信号;The first microcontroller is used to configure the first group of signal input and output interfaces as the first logic level signal output interface I/O11 and the second logic level signal output interface I/O12; and is used to configure first The first logic level signal A1 and the second logic level signal B1 sent are normal logic level, and then control the first logic level signal A1 or the second logic level signal B1 from normal logic level signal to effective logic Level signal;
所述第二微控制器,用于将第二组信号输入输出接口配置为所述第三逻辑电平信号输入接口I/O21与第四逻辑电平信号输入接口I/O22;并配置用于响应的有效逻辑电平信号。The second microcontroller is configured to configure the second group of signal input and output interfaces as the third logic level signal input interface I/O21 and the fourth logic level signal input interface I/O22; and configured for Active logic level signal for the response.
在本实施例中,还包括第一微控制器和第二微控制器;In this embodiment, a first microcontroller and a second microcontroller are also included;
所述第一微控制器,用于设置发送的第一逻辑电平信号A1或第二逻辑电平信号A2由有效逻辑电平信号恢复为常态逻辑电平信号的恢复时间;The first microcontroller is used to set the recovery time for the sent first logic level signal A1 or the second logic level signal A2 to recover from an effective logic level signal to a normal logic level signal;
所述第二微控制器,用于设置接收的有效逻辑电平信号的响应间隔时间,第三逻辑电平信号A2或第四逻辑电平信号B2为有效逻辑电平信号;The second microcontroller is used to set the response interval time of the received effective logic level signal, the third logic level signal A2 or the fourth logic level signal B2 is an effective logic level signal;
所述恢复时间被设置为小于或等于所述响应间隔时间。The recovery time is set to be less than or equal to the response interval time.
在本实施例中,如图2所示,所述第一微控制器、第一组信号输入输出接口I/O11,I/O12、逻辑电平信号叠加电路属于发送端;所述逻辑电平信号分离电路、第二组信号输入输出接口I/O21,I/O22、第二微控制器属于接收端。In this embodiment, as shown in FIG. 2, the first microcontroller, the first group of signal input and output interfaces I/O11, I/O12, and logic level signal superposition circuit belong to the sending end; the logic level The signal separation circuit, the second group of signal input and output interfaces I/O21, I/O22, and the second microcontroller belong to the receiving end.
如图3所示,在本发明的实施例中,所述逻辑电平信号叠加电路的第一逻辑电平信号输入端经第一电阻R11接电源,经第二电阻R12接地;As shown in FIG. 3, in an embodiment of the present invention, the first logic level signal input terminal of the logic level signal superposition circuit is connected to the power supply through the first resistor R11, and grounded through the second resistor R12;
所述逻辑电平信号叠加电路的第二逻辑电平信号输入端经第四电阻R14连接第三电阻R13的一端,第三电阻R13的另一端接电源;The second logic level signal input terminal of the logic level signal superposition circuit is connected to one end of the third resistor R13 through the fourth resistor R14, and the other end of the third resistor R13 is connected to the power supply;
第一电阻R11和第二电阻R12的对接端与第三电阻R13和第四电阻R14的对接端连接为逻辑电平信号叠加电路的叠加信号输出端。The connecting end of the first resistor R11 and the second resistor R12 and the connecting end of the third resistor R13 and the fourth resistor R14 are connected as the superposition signal output terminal of the logic level signal superposition circuit.
如图3所示,在本发明的实施例中,所述逻辑电平信号分离电路的叠加信号输入端连接所述叠加信号输出端,所述逻辑电平信号分离电路具有第一三极管Q21、第二三极管Q22、第三三极管Q23;As shown in Figure 3, in an embodiment of the present invention, the superposition signal input terminal of the logic level signal separation circuit is connected to the superposition signal output terminal, and the logic level signal separation circuit has a first triode Q21 , the second triode Q22, the third triode Q23;
所述叠加信号输入端连接第一三极管Q21的发射极,第一三极管Q21的基极与电源之间串联有第五电阻R21,第一三极管Q21的基极与地之间串联有第六电阻R22,第一三极管Q21的集电极与电源之间串联有第七电阻R23,第一三极管Q21的集电极连接所述第三逻辑电平信号输入接口I/O21;第一三极管Q21的集电极作为第三逻辑电平信号输出端。The superposition signal input terminal is connected to the emitter of the first triode Q21, the fifth resistor R21 is connected in series between the base of the first triode Q21 and the power supply, and the base of the first triode Q21 and the ground A sixth resistor R22 is connected in series, a seventh resistor R23 is connected in series between the collector of the first transistor Q21 and the power supply, and the collector of the first transistor Q21 is connected to the third logic level signal input interface I/O21 ; The collector of the first triode Q21 is used as the third logic level signal output terminal.
所述叠加信号输入端第八电阻R24连接第三三极管Q23的基极,所述第八电阻R24的两端并联有第一电容C21,第三三极管Q23的基极经第九电阻R25接地;第三三极管Q23的发射极接地;第三三极管Q23的集电极连接第二三极管Q22的基极,第二三极管Q22的基极经第十电阻R26连接所述叠加信号输入端,第二三极管Q22的基极经第二电容C22接地;第二三极管Q22的发射极接地;第二三极管Q22的集电极经第十一电阻R27接电源,第二三极管Q22的集电极连接所述第四逻辑电平信号输入接口I/O22;第二三极管Q22的集电极作为第四逻辑电平信号输出端。The eighth resistor R24 at the input end of the superposition signal is connected to the base of the third transistor Q23, the two ends of the eighth resistor R24 are connected in parallel with the first capacitor C21, and the base of the third transistor Q23 is connected to the base of the third transistor Q23 through the ninth resistor R25 is grounded; the emitter of the third transistor Q23 is grounded; the collector of the third transistor Q23 is connected to the base of the second transistor Q22, and the base of the second transistor Q22 is connected to the The superimposed signal input terminal, the base of the second triode Q22 is grounded through the second capacitor C22; the emitter of the second triode Q22 is grounded; the collector of the second triode Q22 is connected to the power supply through the eleventh resistor R27 , the collector of the second transistor Q22 is connected to the fourth logic level signal input interface I/O22; the collector of the second transistor Q22 is used as the fourth logic level signal output terminal.
图3中三极管选用导通门限电压大于等于0.7V。In Fig. 3, the triode selects the conduction threshold voltage to be greater than or equal to 0.7V.
本实施例提供的逻辑电平信号传输装置的工作过程为:The working process of the logic level signal transmission device provided in this embodiment is:
通过配置第一微控制器,使得第一组信号输入输出接口I/O11、I/O12的常态为悬空(Floating)状态;通过配置第二微控制器,使得第二组信号输入输出接口I/O21、I/O22的状态为输入。在本实施例中,逻辑电平信号叠加电路的电源为3.3V,从而叠加信号输出端(即图2中的节点1)的输出电压为3.3V,由于第一三极管Q21的发射极电压即等于节点1电压,基极电压是3.3V经电阻R21、R22分压后而得到,为1.05V,因此第一三极管Q21截止,第三逻辑电平A2为高电平3.3V;第三三极管Q23的基极电压是节点1的电压经电阻R24、R25分压后得到,为1.115V,因此第三三极管Q23导通,从而使第二三极管Q22的基极接地而截止,第四逻辑电平B2为高电平3.3V。这是逻辑电平信号传输装置的初始状态。By configuring the first microcontroller, the normal state of the first group of signal input and output interfaces I/O11 and I/O12 is a floating (Floating) state; by configuring the second microcontroller, the second group of signal input and output interfaces I/O The state of O21 and I/O22 is input. In this embodiment, the power supply of the logic level signal superimposition circuit is 3.3V, so the output voltage of the superimposed signal output terminal (ie, node 1 in FIG. 2 ) is 3.3V, because the emitter voltage of the first triode Q21 That is, it is equal to the voltage of node 1, and the base voltage is 3.3V obtained after being divided by resistors R21 and R22, which is 1.05V, so the first triode Q21 is cut off, and the third logic level A2 is a high level of 3.3V; The base voltage of the triode Q23 is obtained by dividing the voltage of the node 1 through the resistors R24 and R25, which is 1.115V, so the third triode Q23 is turned on, so that the base of the second triode Q22 is grounded And when it is off, the fourth logic level B2 is a high level of 3.3V. This is the initial state of a logic level signaling device.
下面分情形阐述逻辑电平信号传输装置的工作过程:The working process of the logic level signal transmission device is described in the following cases:
情形1:Scenario 1:
第一微控制器将第一逻辑电平信号输出接口I/O11由悬空变为低电平0,第二逻辑电平信号输出接口I/O12为任意状态,则叠加信号输出端(节点1)的电压为0V,第一三极管Q21的发射极电压即等于节点1电压,基极电压是3.3V经电阻R21、R22分压后而得到,为1.05V,从而使第一三极管Q21导通,第三逻辑电平A2由原来的高电平3.3V变为低电平0V,第二三极管Q22的基极电压为0V,因而截止,第四逻辑电平B2保持为高电平;The first microcontroller changes the first logic level signal output interface I/O11 from floating to low level 0, and the second logic level signal output interface I/O12 is in any state, then the superimposed signal output terminal (node 1) The voltage of the first triode Q21 is 0V, the emitter voltage of the first triode Q21 is equal to the voltage of node 1, and the base voltage is 3.3V obtained by dividing the voltage by the resistors R21 and R22, which is 1.05V, so that the first triode Q21 is turned on, the third logic level A2 changes from the original high level 3.3V to low level 0V, the base voltage of the second transistor Q22 is 0V, so it is cut off, and the fourth logic level B2 remains high flat;
第二微控制器判断第三逻辑电平A2输入为有效输入,第四逻辑电平B2的输入为无效输入;第二微控制器在响应间隔时间t1(5ms)内不再响应第三逻辑电平A2的输入;The second microcontroller judges that the input of the third logic level A2 is a valid input, and the input of the fourth logic level B2 is an invalid input; the second microcontroller no longer responds to the third logic level in the response interval time t1 (5ms). input of level A2;
第一微控制器在恢复时间t2(5ms)内将第一逻辑电平信号输出接口I/O11的状态由低电平0V恢复为悬空状态。在本实施例中,响应间隔时间t1等于恢复时间t2。The first microcontroller restores the state of the first logic level signal output interface I/O11 from the low level 0V to the suspended state within the recovery time t2 (5 ms). In this embodiment, the response interval time t1 is equal to the recovery time t2.
情形2:Scenario 2:
第一逻辑电平信号输出接口I/O11保持悬空状态,第一微控制器将第二逻辑电平信号输出接口I/O12由悬空变为低电平0,则叠加信号输出端(节点1)的电压是3.3V经电阻R13、R14分压后得到,为1.115V,第一三极管Q21的发射极电压即等于节点1电压,基极电压经电阻R21、R22分压后得到,为1.05V,因此第一三极管Q21截止,第三逻辑电平A2保持为高电平;第三三极管Q23的基极电压是节点1的电压经电阻R24、R25分压后得到,为0.377V,因此第三三极管Q23截止,而第二三极管Q22的基极电压为1.115V,从而使第二三极管Q22导通,第四逻辑电平B2由原来的高电平3.3V变为低电平0V;The first logic level signal output interface I/O11 remains in a floating state, and the first microcontroller changes the second logic level signal output interface I/O12 from floating to low level 0, and the superimposed signal output terminal (node 1) The voltage of 3.3V is obtained after dividing by resistors R13 and R14, which is 1.115V. The emitter voltage of the first triode Q21 is equal to the voltage of node 1, and the base voltage is obtained by dividing by resistors R21 and R22, which is 1.05 V, so the first triode Q21 is cut off, and the third logic level A2 remains high; the base voltage of the third triode Q23 is obtained by dividing the voltage of node 1 by resistors R24 and R25, which is 0.377 V, so the third transistor Q23 is cut off, and the base voltage of the second transistor Q22 is 1.115V, so that the second transistor Q22 is turned on, and the fourth logic level B2 is changed from the original high level 3.3 V becomes low level 0V;
第二微控制器判断第四逻辑电平B2输入为有效输入,第三逻辑电平A2的输入为无效输入;第二微控制器在响应间隔时间t1(5ms)内不再响应第四逻辑电平B2的输入;The second microcontroller judges that the input of the fourth logic level B2 is a valid input, and the input of the third logic level A2 is an invalid input; the second microcontroller no longer responds to the fourth logic level in the response interval time t1 (5ms). input of level B2;
第一微控制器在恢复时间t2(5ms)内将第二逻辑电平信号输出接口I/O12的状态由低电平0V恢复为悬空状态。在本实施例中,响应间隔时间t1等于恢复时间t2。The first microcontroller restores the state of the second logic level signal output interface I/O12 from the low level 0V to the suspended state within the recovery time t2 (5 ms). In this embodiment, the response interval time t1 is equal to the recovery time t2.
实施例3:Example 3:
在本实施例中,如图4所示,本实施例与实施例2的不同之处在于:提供所述逻辑电平信号传输装置的另一种结构:In this embodiment, as shown in FIG. 4, the difference between this embodiment and Embodiment 2 is that another structure of the logic level signal transmission device is provided:
所述第一组信号输入输出接口连接开关S11,通过所述开关S11控制发送的第一逻辑电平信号或第二逻辑电平信号由常态逻辑电平信号变为有效逻辑电平信号。The first group of signal input and output interfaces are connected to a switch S11, and the first logic level signal or the second logic level signal sent through the switch S11 is controlled to change from a normal logic level signal to an effective logic level signal.
在本实施例提供的逻辑电平信号传输装置可应用于分体机形式的车载娱乐导航系统,具体用于分体机的主机和面板之间的信号传输,如对主机上的MCU和面板上的MPU整体复位的机械复位信号和单独对面板上的MPU复位的软件复位信号的传输,应用本实施例用一根信号线先后传输,而不必同时传输。The logic level signal transmission device provided in this embodiment can be applied to a car entertainment navigation system in the form of a split machine, specifically for signal transmission between the host and the panel of the split machine, such as the MCU on the host and the panel The transmission of the mechanical reset signal for the overall reset of the MPU and the software reset signal for the MPU reset on the panel is transmitted successively by using one signal line in this embodiment, and does not need to be transmitted at the same time.
如图4所示,在本实施例中,开关S11为机械开关,按下后使电阻R11与R12相连的一端接地,从而产生低电平的复位信号。As shown in FIG. 4 , in this embodiment, the switch S11 is a mechanical switch, and when pressed, the end connected to the resistor R11 and R12 is grounded, thereby generating a low-level reset signal.
图4中三极管选用导通门限电压大于等于0.7V。In Fig. 4, the triode selects the conduction threshold voltage to be greater than or equal to 0.7V.
复位信号可根据系统的实际需要设置为低电平或高电平有效。在本实施例中,设置复位信号为低电平有效。The reset signal can be set as low level or high level active according to the actual needs of the system. In this embodiment, the reset signal is set to be active at low level.
在本实施例中,第一逻辑电平信号为机械复位信号A1,第二逻辑电平信号为软件复位信号B1,第三逻辑电平信号为机械复位信号A2,第四逻辑电平信号为软件复位信号B2。In this embodiment, the first logic level signal is the mechanical reset signal A1, the second logic level signal is the software reset signal B1, the third logic level signal is the mechanical reset signal A2, and the fourth logic level signal is the software reset signal A2. Reset signal B2.
本实施例的逻辑电平信号传输装置的工作过程为:The working process of the logic level signal transmission device of this embodiment is:
1)电路初始状态:当机械复位信号A1、软件复位信号B1皆无效(即高电平3.3V)时,节点1的电压为3.3V,由于第一三极管Q21的发射极电压即等于节点1电压,基极电压是3.3V经电阻R21、R22分压后而得到,为1.05V,因此第一三极管Q21截止,机械复位信号A2为高电平;第三三极管Q23的基极电压是节点1的电压经电阻R24、R25分压后得到,为1.115V,因此第三三极管Q23导通,使得第二三极管Q22的基极接地而截止,软件复位信号B2为高电平。1) The initial state of the circuit: when both the mechanical reset signal A1 and the software reset signal B1 are invalid (that is, the high level is 3.3V), the voltage of node 1 is 3.3V, since the emitter voltage of the first triode Q21 is equal to the node 1 voltage, the base voltage is 3.3V obtained by dividing the voltage by resistors R21 and R22, which is 1.05V, so the first triode Q21 is cut off, and the mechanical reset signal A2 is at high level; the base of the third triode Q23 The pole voltage is obtained by dividing the voltage of node 1 by resistors R24 and R25, which is 1.115V, so the third transistor Q23 is turned on, so that the base of the second transistor Q22 is grounded and cut off, and the software reset signal B2 is high level.
2)机械复位信号A1有效时:机械复位信号A1由高电平3.3V变为低电平0V,则节点1的电压为0V,第一三极管Q21的发射极电压即等于节点1电压,基极电压是3.3V经电阻R21、R22分压后而得到,为1.05V,因此第一三极管Q21导通,复位信号A2由原来的高电平3.3V变为低电平0V;第二三极管Q22的基极电压为0V,因而截止,软件复位信号B2保持为高电平。2) When the mechanical reset signal A1 is valid: the mechanical reset signal A1 changes from a high level of 3.3V to a low level of 0V, then the voltage of node 1 is 0V, and the emitter voltage of the first triode Q21 is equal to the voltage of node 1. The base voltage is 3.3V obtained by dividing the voltage by resistors R21 and R22, which is 1.05V, so the first triode Q21 is turned on, and the reset signal A2 changes from the original high level 3.3V to low level 0V; The base voltage of the transistor Q22 is 0V, so it is cut off, and the software reset signal B2 remains at a high level.
3)软件复位信号B1有效时:软件复位信号B1由高电平3.3V变为低电平0V,则节点1的电压是3.3V经电阻R13、R14分压后得到,为1.115V,第一三极管Q21的发射极电压即等于节点1电压,基极电压经电阻R21、R22分压后得到,为1.05V,因此第一三极管Q21截止,机械复位信号A2为高电平;第三三极管Q23的基极电压是节点1的电压经电阻R24、R25分压后得到,为0.377V,因此Q23截止,而Q22的基极电压为1.115V,因而导通,软件复位信号B2为低电平。3) When the software reset signal B1 is valid: the software reset signal B1 changes from a high level of 3.3V to a low level of 0V, then the voltage of node 1 is 3.3V obtained by dividing the voltage by resistors R13 and R14, which is 1.115V, the first The emitter voltage of the triode Q21 is equal to the voltage of node 1, and the base voltage is obtained after being divided by the resistors R21 and R22, which is 1.05V, so the first triode Q21 is cut off, and the mechanical reset signal A2 is at a high level; The base voltage of the triode Q23 is obtained by dividing the voltage of the node 1 through the resistors R24 and R25, which is 0.377V, so Q23 is cut off, and the base voltage of Q22 is 1.115V, so it is turned on, and the software resets the signal B2 is low level.
以上所揭露的仅为本发明的较佳实施例,不能以此来限定本发明的权利保护范围,因此依本发明申请专利范围所作的等同变化,仍属本发明所涵盖的范围。The above disclosures are only preferred embodiments of the present invention, and cannot be used to limit the protection scope of the present invention. Therefore, equivalent changes made according to the scope of the patent application of the present invention still fall within the scope of the present invention.
Claims (7)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410324072.1A CN104104379B (en) | 2014-07-08 | 2014-07-08 | A kind of logic level signal transmission method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410324072.1A CN104104379B (en) | 2014-07-08 | 2014-07-08 | A kind of logic level signal transmission method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104104379A CN104104379A (en) | 2014-10-15 |
| CN104104379B true CN104104379B (en) | 2017-09-22 |
Family
ID=51672228
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410324072.1A Expired - Fee Related CN104104379B (en) | 2014-07-08 | 2014-07-08 | A kind of logic level signal transmission method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104104379B (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1100203A (en) * | 1993-05-28 | 1995-03-15 | 美国电话电报公司 | High capacity optical fiber network |
| CN1297291A (en) * | 1999-09-13 | 2001-05-30 | 株式会社东芝 | Radio communication system |
| CN1452341A (en) * | 2002-04-18 | 2003-10-29 | 阿尔卡塔尔公司 | Method and system for control of light signal transmission |
| CN1813429A (en) * | 2003-07-16 | 2006-08-02 | 日本电信电话株式会社 | Optical communication system using optical frequency code, optical transmission device and optical reception device thereof, and reflection type optical communication device |
| CN203933595U (en) * | 2014-07-08 | 2014-11-05 | 惠州华阳通用电子有限公司 | A kind of logic level signal transmitting device |
-
2014
- 2014-07-08 CN CN201410324072.1A patent/CN104104379B/en not_active Expired - Fee Related
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1100203A (en) * | 1993-05-28 | 1995-03-15 | 美国电话电报公司 | High capacity optical fiber network |
| CN1297291A (en) * | 1999-09-13 | 2001-05-30 | 株式会社东芝 | Radio communication system |
| CN1452341A (en) * | 2002-04-18 | 2003-10-29 | 阿尔卡塔尔公司 | Method and system for control of light signal transmission |
| CN1813429A (en) * | 2003-07-16 | 2006-08-02 | 日本电信电话株式会社 | Optical communication system using optical frequency code, optical transmission device and optical reception device thereof, and reflection type optical communication device |
| CN203933595U (en) * | 2014-07-08 | 2014-11-05 | 惠州华阳通用电子有限公司 | A kind of logic level signal transmitting device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104104379A (en) | 2014-10-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6695739B2 (en) | Processing device, image sensor, and system | |
| WO2020133246A1 (en) | Reset apparatus and method for time division multiplexing and terminal | |
| CN107333073B (en) | Prevent external image information source interface circuit of halting | |
| JP2016122885A5 (en) | Electronic device, accessory device, control method thereof, and control program | |
| CN104104379B (en) | A kind of logic level signal transmission method and device | |
| US9942378B2 (en) | Display device and method for implementing incoming notification function with respect to MHL signal source | |
| JP2001502155A (en) | Bus communication system | |
| CN108024129A (en) | Display device and its mainboard | |
| CN104461991B (en) | Enhanced serial interface system and method with high throughput | |
| CN203933595U (en) | A kind of logic level signal transmitting device | |
| JP2006031250A (en) | Communication equipment and its control method | |
| CN107395475B (en) | CAN communication polarity control method, device and system and multi-connected air conditioning unit | |
| CN103473206A (en) | Data transmission method and I2C (Inter-Integrated Circuit) interface extender | |
| CN114168514A (en) | Communication isolation circuit and device | |
| CN114679248B (en) | Full duplex communication system and method for vehicle-mounted display screen and host | |
| CN108322798B (en) | CEC bus monitoring equipment | |
| CN217985028U (en) | High stability charge reset circuit and electronic product | |
| CN207291905U (en) | A kind of CAN bus polar converter and automobile | |
| CN204810461U (en) | Video equipment | |
| CN112562307A (en) | IIC signal transmission system, IIC signal transmission method, and storage medium | |
| JP2012156956A (en) | On-vehicle network apparatus | |
| CN205003665U (en) | Interconnecting devices and interconnected systems | |
| CN203482310U (en) | Display device and high frequency conversion circuit | |
| CN105812899A (en) | Electronic device group connection system and method | |
| CN217279563U (en) | Interface multiplexing circuit and electronic equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170922 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |