The invention discloses an input and output control circuit of serial communication, which includes a first processor and a second processor, a signal output end of the first processor and a signal receiving end of the second processor. The first processor and the second processor are connected with an enabling latch circuit and enable the energy end to be connected to the level. The signal output end is connected to the latch end of the latch circuit, the signal receiver is connected to the latch output end of the latch circuit, and the latch input end is grounded through the first pull resistance, and the latch output end is connected to the power supply end through the first pull resistance, or the latch input terminal passes through second. The pull resistor is connected to the power supply end, and the latch output terminal is grounded through the second pull-down resistor. The advantage of the invention is that it can solve the communication problem between two processors with different electrical configuration, and avoid the problem of configuration error and even normal startup because of different power configuration in the existing technology.
【技术实现步骤摘要】
串口通讯的输入输出控制电路
本专利技术属于通信
,尤其涉及一种串口通讯的输入输出控制电路。
技术介绍
通用串口(UART)作为一种简单、适用的通讯接口,有着强大的生命力。在各种新的通讯方式层出不穷的情形下,通用串口(UART)依然在通讯领域发挥着不可替代的作用。由于串口所具备的通信线路简单等特点,通信常常会被用于MCU(微控制单元)之间的通信。但是MCU的一些UART等串口输入输出管脚也同时是上电strap管脚,因此,在MCU之间通过串口对接时,需要考虑各自电平不能影响处理器的上电配置,如果因为改变STRAP电平导致配置错误,就会影响MCU的工作模式甚至不启动。为了解决上述技术问题,人们进行了长期的探索,例如中国专利公开了一种串口通信电路[申请号:CN201610049934.3],包括第一处理器串口通信端以及第二处理器MCU2串口通信端,其特征在于,还包括电平转换模块,所述电平转换模块包括第一电平输入端、第二电平输入端以及电平转换单元;其中,所述第二电平输入端的输入电压大于或等于所述第一电平输入端的输入电压;所述电平转换单元分别与第一电平输入端、第二电平输入端、第一处理器串口通信端以及第二处理器MCU2串口通信端连接;所述电平转换单元,用于将第一电平输入端输入电平与第二电平输入端输入电平进行相互转换。上述方案通过在两个处理器之间加防护电路实现电平转换以避免由于电平不匹配对电路造成损坏,但是仍然无法实现保持两个处理器各自电平的初始状态且不影响处理器的上电配置。
技术实现思路
本专利技术的目的是针对上述问题,提供一种能够兼容不同配置电平的串口通讯的输入输出 ...
【技术保护点】
1.一种串口通讯的输入输出控制电路,包括第一处理器和第二处理器,以及第一处理器的信号输出端和第二处理器的信号接收端,其特征在于,所述的第一处理器和第二处理器之间连接有一具有使能端的锁存电路,且所述的使能端连接于电平可控接口以控制使能端的电平,所述的信号输出端连接于所述锁存电路的锁存输入端,所述的信号接收端连接于所述锁存电路的锁存输出端,且所述的锁存输入端通过第一下拉电阻接地,所述的锁存输出端通过第一上拉电阻连接于供电电源端,或者,所述的锁存输入端通过第二上拉电阻连接于供电电源端,所述的锁存输出端通过第二下拉电阻接地。
【技术特征摘要】
1.一种串口通讯的输入输出控制电路,包括第一处理器和第二处理器,以及第一处理器的信号输出端和第二处理器的信号接收端,其特征在于,所述的第一处理器和第二处理器之间连接有一具有使能端的锁存电路,且所述的使能端连接于电平可控接口以控制使能端的电平,所述的信号输出端连接于所述锁存电路的锁存输入端,所述的信号接收端连接于所述锁存电路的锁存输出端,且所述的锁存输入端通过第一下拉电阻接地,所述的锁存输出端通过第一上拉电阻连接于供电电源端,或者,所述的锁存输入端通过第二上拉电阻连接于供电电源端,所述的锁存输出端通过第二下拉电阻接地。2.根据权利要求1所述的串口通讯的输入输出控制电路,其特征在于,所述的使能端通过第三上拉电阻连接于供电电源端,且所述的使能端低电平有效。3.根据权利要求1所述的串口通讯的输入输出控制电路,其特征在于,所述的使能端通过第三下拉电阻接地,且所述的使能端高电平有效。4.根据权利要求2所述的串口通讯的输入输出控制电路,其特征在于,所述锁存电路的锁存电源端连接于供电电源端,且所述的锁存电源端通过一电容接地。5.根据权利要求4所述的串口通讯的输入输出控制电路,其特...
【专利技术属性】
技术研发人员:裴志刚,
申请(专利权)人:上海康斐信息技术有限公司,
类型:发明
国别省市:上海,31
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。