STFPC320
Remote control protocols
15.4.1
NEC 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 NEC protocol, if the 8-bit ADDR field is “00000010” and 8-bit command is
“00011111”, the in decoded format the data on SDA pin will be sent as follows with MSB
transmitted first.
Figure 32. NEC data structure in decoded format
MSB
ADR
LSB
Byte 1
Byte 2
00000010
MSB
DATA
ST 0 0 0 1 1 1
LSB
Byte 3
1 1XXXXXX
15.4.2
NEC 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 33. NEC data structure in raw format
8-bit Address
Inverted 8-bit
address
8-bit command
Inverted 8-bit
command
LSB
MSB LSB
MSB LSB
MSB LSB
MSB
Sent first on SDA
55/78