STFPC320
Remote control protocols
15.3.1
RC-5 data in decoded format
In the decoded form, the ADR bits followed by Start bit and Toggle Bit followed by Data bits
are sent in this order for each remote control protocol. The number of bits depends on the
corresponding RC protocol. The remaining empty bits are stuffed with 1’s to complete a
byte-aligned data frame.
Example for Philips RC-5 protocol, if the 5-bit ADDR field is “00000” and 6-bit command is
“000001”, the in decoded format the data on SDA pin will be sent as follows with MSB
transmitted first. S stands for Start Bit and T stands for Toggle Bit.
Figure 28. RC-5 data structure in decoded format
Byte 1
MSB
ADR
LSB
0 0 0 0 0S
MSB
T0
Byte 2
DAT
LSB
A
0 0 0 0 1XXX
Byte 3
XXXXXXXX
15.3.2
RC-5 data in RAW format
In the raw form, the data is sent in the same way as it is received for each RC protocol
except that the header is not transmitted on SDA. So for the above example for Philips RC-5
protocol, the data on SDA pin in raw-format will be as follows:
Figure 29. RC-5 data structure in raw format
Data word
1-bit Start
bit
Sent first on SDA
1-bit
Toggle Bit
5-bit Address
6-bit Command
MSB
LSB MSB
LSB
53/78