The invention discloses a serial communication circuit, including target arm, debugging arm, connector and switch module: serial output arm arm serial debugging are respectively connected with the input end and the connector is connected with the input terminal of the target; arm serial input, output connector and debugging arm serial output end are connected to the the switch module; when the switch module receives the first signal, the output serial input arm connector and the end of the conduction, when the switch module receives the second signal, serial input and debugging of the arm target arm serial output conduction. The serial communication circuit provided by the embodiment of the invention solves the defect that the connector can only receive signals from the ARM chip, and can not send signals to the ARM chip for debugging. The invention also provides an embedded single board with corresponding technical effect.
【技术实现步骤摘要】
一种嵌入式单板及其串口通信电路
本专利技术涉及计算机嵌入式
,特别是涉及一种嵌入式单板及其串口通信电路。
技术介绍
随着计算机以及存储技术的不断发展,arm芯片作为一种处理器也得到了广泛的应用。在现有技术中,对arm芯片进行调试时,通常使用uart(UniversalAsynchronousReceiver/Transmitter,通用异步收发传输器)接口,也可以称为调试串口。可参阅图1,为现有技术中的一种串口通信电路。不妨将左侧的arm芯片称为第一arm101,将其串口输出端称为第一Tx,串口输入端称为第一Rx,并将右侧的arm芯片称为第二arm102,将其串口输出端称为第二Tx,串口输入端称为第二Rx,将连接器103的输入端称为连接器Rx,输出端称为连接器Tx。由图1可知,第一Tx分别与第二Rx和连接器Rx连接,第二Tx以及连接器Tx均连接至第一Rx。在图1的这种串口通信电路中,当需要对第一arm101进行调试时,对于连接器103而言,只能接收第一arm101的信号,但无法向第一arm101发送正确的信号。究其原因,是因为当信号从第一Tx发出时,由连接器Rx和第二Rx接收,相当于是一个源两个负载,信号可以进行传递。当第一Rx接收信号时,由于同时连接了连接器Tx和第二Tx,相当于是两个源一个负载,不符合uart信号通道的一个源的通信规则,当某一个源发送命令时,另一个源不发送,会导致信号电平的紊乱,也就使得连接器103无法对第一arm101进行调试,当然,在图1中,也无法对第二arm102进行调试。为了解决只能接收arm芯片发送的信号,无法向arm芯 ...
【技术保护点】
一种串口通信电路,其特征在于,包括目标arm、调试arm、连接器以及开关模块:所述目标arm的串口输出端分别与所述调试arm的串口输入端以及所述连接器的输入端连接;所述目标arm的串口输入端、所述连接器的输出端以及所述调试arm的串口输出端均连接至开关模块;当所述开关模块接收第一信号时,所述目标arm的串口输入端与所述连接器的输出端导通,当所述开关模块接收第二信号时,所述目标arm的串口输入端与所述调试arm的串口输出端导通。
【技术特征摘要】
1.一种串口通信电路,其特征在于,包括目标arm、调试arm、连接器以及开关模块:所述目标arm的串口输出端分别与所述调试arm的串口输入端以及所述连接器的输入端连接;所述目标arm的串口输入端、所述连接器的输出端以及所述调试arm的串口输出端均连接至开关模块;当所述开关模块接收第一信号时,所述目标arm的串口输入端与所述连接器的输出端导通,当所述开关模块接收第二信号时,所述目标arm的串口输入端与所述调试arm的串口输出端导通。2.根据权利要求1所述的电路,其特征在于,所述开关模块包括单刀双掷芯片,所述目标arm的串口输入端与所述单刀双掷芯片的不动端连接,所述连接器的输出端与所述单刀双掷芯片的第一动端连接,所述调试arm的串口输出端与所述单刀双掷芯片的第二动端连接;所述当所述开关模块接收第一信号时,所述目标arm的串口输入端与所述连接器的输出端导通,当所述开关模块接收第二信号时,所述目标arm的串口输入端与所述调试arm的串口输...
【专利技术属性】
技术研发人员:江博,
申请(专利权)人:郑州云海信息技术有限公司,
类型:发明
国别省市:河南,41
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。