PPM

Pulse-position modulation (PPM) is a signal modulation used for both analog and digital signal transmissions. This method is widely used for optical communication systems such as optic fiber and IR remote controls, where efficiency is required and little or no external interference occurs.


How Pulse Position Modulation works

PPM encoded signal captured from a TV remote control

In PPM, data are transmitted with short pulses. All pulses have both the same width and amplitude. The parameter that changes is the delay between each pulse. Here is an example of a PPM signal:





It is obvious that the signal has similar pulses (in terms of amplitude and width), yet the duration between them differs. To explain how exactly this method works, i will start with the digital PPM.




PPM for Digital Data Transmission

Modulating a digital signal to Pulse Position is pretty much straight forward. The duration between the pulses will represent a digital 0 or 1. A small duration represents digital 0, and a large duration represents digital 1. The duration is not standard and varies according to the system requirements. An example is the IR TV remote control. The Sony IR protocol for example uses PPM transmission. A delay of 1.2mSec represents digital 0, and a delay of 1.8mSec represents digital 1. Here is an 8-bit data transmission example:





The byte '11011100' is encoded with PPM so that it can be transmitted with infrared light. For the first bit (1), the transmitter will send a pulse 1.8 mSec after the rising edge of the clock. For the second bit (1), the transmitter will send a pulse 1.8 mSec after the second rising edge of the clock. But for the third bit which is 0, the transmitter will send a pulse after 1.2 mSec from the third rising edge of the clock. Same algorithm applies for all other bits.

This method has a great disadvantage. The decoding of the signal requires that the decoder has a perfectly synchronized clock with the transmitter. Most of the times that is impossible. The signal itself does not provide a method for the decoder to reconstruct the clock (as it happens with PWM or Manchester code). For this reason, the Differential Pulse Position Modulation is used.




Differential Pulse Position Modulation

The Differential Pulse Position Modulation is a variation of the PPM coding, which in fact transmits data regardless of a clock. The delay between the pulses does not take reference from the rising edge of the clock. Instead, each delay takes reference from the falling edge of the previous pulse. Here is an example:





The above example shows how an 8-bit byte ('11011100') is encoded with Differential PPM. I did not add the clock because, as said before, this method encodes a signal regardless of a clock. This is what makes this method so widely used. In fact this is the modulation method that many TV remote controls work with.









Different data, different length

One distinctive characteristic about the Differential PPM, is that the length of the encoded signal is not fixed. The simple PPM produces always a fixed-length encoded signal, which has to do only with the number of bits and the clock period. For example, an n-bit data encoded with a clock having period T, will always produce an encoded signal with the same length which is n x T. Look at the following example. Two bytes are encoded with PPM, the first one is the '11111111' and the second is the '00000000'





The encoded data for both bytes has the same length. Now look at the same example encoded with Differential PPM:





The more the ZEROS the data has, the less time it needs to be transmitted! As a matter of fact, this is one of the great advantages of this system. The bandwidth efficiency is increased, as the overall transmission is significantly faster. Taking into account also the simplicity and ease of implementation, this explains why this method is so widely used. One big disadvantage for the D-PPM and PPM systems is that, any false pulse due to external fields or cable inter-talk, is very hard (if not impossible) to be detected and thus the complete transmission is corrupted. It is absolutely improper to be used in harsh environments or critical applications where reliability is required.




PPM for Analog Data Transmission

Encoding an analog signal in PPM is pretty much similar to the PWM encoding method. A saw-tooth waveform is compared with the analog signal. Every time the sawtooth waveform has the same amplitude with the analog signal, the sawtooth amplitude becomes 0 and a pulse is transmitted. Here is an example:





The decoding of the signal is usually done indirectly. It is simpler to convert the PPM into PWM and then through a low-pass filter convert it back to analog, rather than converting the PPM signal directly into analog.




As a Conclusion

D-PPM offers efficient data transmission due to its highly compressed format. The fact that it does not need a clock signal to synchronize with, means that the circuit is very simple to implement. On the other hand, PPM is very sensitive to eternal occurrences. Any external interference will cause a complete data corruption which is usually impossible to detect. Therefore, it is not used in cable transmissions, because cables are subject to electromagnetic interferences, but it is used in optic-fiber data transmissions. Also is is used in non-critical applications such as remote controls used for televisions, air conditions, toys etc.


  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
防范硬件盗版,最有效的方法是对产品加把“锁”。ATMEL公司提供了几种可靠方案,即AT88SC系列和SHA-256系列安全存储器加密芯片。 AT88SC系列加密芯片,包括AT88SC0104CA~AT88SC6416CA和AT88SC0104C~~25616C,采用独有的8字节密钥加密解密算法,具有协议认证和数据随机密文传送等功能。使用时,通过协议认证并将部分重要数据或程序存放到加密芯片中,极大地提高了产品的安全性。 SHA-256系列加密芯片,包括AT88SA100S、AT88SA10HS、AT88SA102S和ATSHA204,由于采用了SHA-256算法,因而具有更高的安全性。 为了提升您的开发效率,我们开发了完整的开发工具和开发包,包括:编程器、认证读写C源程序和密码密钥设置示例。使用我司产品,您可以大大缩短您的开发时间,并方便存档所有文件;还可以脱开电脑独立编程。 1、SC-RWP3型AT88SCXXXX读写编程器和开发包:1拖8型(9个日本烧录座TOP)编程器,可兼顾量产和调试两种需求。适用于AT88SC0104CA/C~AT88SC1616CA/C~ AT88SC25616CA/C全系列器件,支持SOP、DIP和卡式封装,采用了USB接口和日本烧录座。 2、SC-RWP2A型AT88SCXXXX读写编程器和开发包:用于开发和小规模生产。适用于AT88SC0104CA/C~ AT88SC1616CA/C~ AT88SC25616CA/C 全系列器件,支持SOP、DIP和卡式封装,采用了USB接口和日本烧录座。3、SC-RWP-CRF型AT88SCXXXXCRF读写器和开发包:适用于AT88SC0104CRF~ AT88SC0204CRF~ AT88SC1616CRF~AT88SC6416CRF全系列射频卡。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值