基于PWM信号的主从通信方法  被引量:4

Master Slave Communication Method Based on PWM Signal

在线阅读下载全文

作  者:郭语[1] 鞠全勇[1] GUO Yu;JU Quanyong(School of Mechatronic Engineering,Jinling Institute of Technology,Nanjing 211169,China)

机构地区:[1]金陵科技学院机电工程学院,江苏南京211169

出  处:《机械制造与自动化》2020年第6期166-168,181,共4页Machine Building & Automation

基  金:江苏省自然科学基金资助项目(BK20170119);金陵科技学院科研孵化基金项目(jit-fhxm-201916)。

摘  要:提出一种基于脉宽调制(PWM)信号的主从通信方法,主机通过发送特定频率和占空比的PWM信号传输信息,同时读取PWM信号线上的电平状态,根据电平状态接受从机发送的信息;从机通过捕获主机发送的PWM信号,解析信号的频率和占空比接受主机传递的信息,同时以不同的周期对PWM信号线拉低来发送自身信息。在此基础上,描述了用于实现PWM通信的主机系统和从机系统的软硬件设计。PWM信号通信基于单线传输的通信方法,具有系统简单、应用广泛、成本低等优点。A master-slave communication method based on PWM signal is proposed in this paper.The host transmits information through PWM signal of specific frequency and duty ratio.At the same time,it reads the level status on the PWM signal line and re-ceives the information sent by the slave according to the level status.By capturing the PWM signal sent by the host,the slave re-ceives the information transmitted by the host,which is used to analyze the frequency and duty ratio of the signal,and at the same time sends its own information by pulling down the PWM signal line in different cycles.On this basis,the hardware and software de-sign for the host system and the slave system for PWM communication is described.PWM signal communication is a communication method based on single line transmission,it has the advantages of simple system,wide application and low cost.

关 键 词:脉宽调制信号 单片机 通信 

分 类 号:TN926[电子电信—通信与信息系统]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象