Infrared Remote Control Protocols
Infrared remote controls send short bursts of a 30 to 56 kHz carrier, most often 36 or 38 kHz, and encode each command in the timing of those bursts. NEC uses pulse-distance coding, Philips RC-5 and RC-6 use bi-phase (Manchester) coding, and JVC uses a shorter NEC-like frame. IrDA is different again: a short-range infrared data link for serial data, not remote control. Capture the output of a demodulating IR receiver with a logic analyser, and an IR decoder shows the protocol, address and command of every key press.
What to Capture
An IR receiver module, such as a 38 kHz three-pin type, removes the carrier and outputs a logic signal that is low while a burst is received. That is what most decoders expect, and it is what the microcontroller in the product sees. To check the carrier frequency or the LED drive current, probe the transmitter LED instead: the bursts then show the individual carrier cycles. Use a receiver matched to the remote's carrier, or the range and pulse widths will suffer.
NEC Protocol
- Leader: a 9 ms burst and a 4.5 ms space.
- Bits: a 562.5 µs burst, then a 562.5 µs space for 0 or a 1.6875 ms space for 1, least significant bit first.
- Content: 8-bit address, its inverse, 8-bit command, its inverse, then a final burst. Extended NEC drops the inverted address to allow 16-bit addresses.
- Repeat: holding the key sends a repeat code (9 ms burst, 2.25 ms space, final burst) every 108 ms instead of the full frame.
Philips RC-5 and RC-6
RC-5 runs on a 36 kHz carrier with bi-phase coding: each bit lasts 1.778 ms and is a burst in one half and a space in the other. An RC-5 frame has 14 bits: two start bits, a toggle bit, a 5-bit address and a 6-bit command, most significant bit first. In extended RC-5 the second start bit becomes a seventh command bit. The toggle bit changes each time a key is pressed again, so the receiver can tell a new press from a held key; frames repeat every 113.8 ms while the key is held.
RC-6 also uses 36 kHz, with a 444 µs time unit. A frame starts with a 2.666 ms leader burst and 0.889 ms space, then a start bit, three mode bits and a double-length trailer (toggle) bit, followed by the payload: in mode 0, an 8-bit address and an 8-bit command. RC-6 uses the opposite bi-phase polarity to RC-5, so a decoder must know which one it is reading.
JVC Protocol
JVC uses a 38 kHz carrier and NEC-style pulse-distance coding with shorter timing: a leader of about 8.4 ms burst and 4.2 ms space, then an 8-bit address and 8-bit command, least significant bit first, with no inverted copies. A held key repeats the frame without the leader.
| Protocol | Carrier | Coding | Payload |
|---|---|---|---|
| NEC | 38 kHz | Pulse distance | 8-bit address and command, each with its inverse (or 16-bit address in extended NEC) |
| RC-5 | 36 kHz | Bi-phase, 1.778 ms bits | Toggle bit, 5-bit address, 6-bit command (7-bit extended) |
| RC-6 mode 0 | 36 kHz | Bi-phase, 444 µs unit | Toggle bit, 8-bit address, 8-bit command |
| JVC | 38 kHz | Pulse distance | 8-bit address, 8-bit command |
IrDA
IrDA is a data link, not a remote control format. In its SIR mode a UART signal is sent as short infrared pulses, 3/16 of a bit time long, for each 0 bit, at rates up to 115.2 kbit/s. It appears in older phones, meters, medical devices and data loggers with an optical port. An IrDA decoder converts the pulses back to UART bytes.
Common Infrared Remote Faults and How to Find Them
| Symptom | Likely Cause | What to Check |
|---|---|---|
| Some keys work, others do not | Firmware expects a different protocol variant or address | Decode the frames and compare address and command with the firmware table |
| Key repeats when held, or does not | Repeat codes or toggle bit handled wrongly | Look for NEC repeat codes or a toggle bit that does not change between presses |
| Short range | Receiver tuned to a different carrier, or weak LED drive | Measure the carrier frequency at the LED and the LED current |
| Random false presses | Interference from lighting or sunlight | Capture the receiver output with the remote idle; look for noise bursts |
| Decoder shows errors on a good remote | Capturing the modulated LED signal with a decoder that expects demodulated input, or inverted polarity | Capture the receiver output, or set the decoder polarity and carrier option |
Tools for Decoding Infrared Protocols
Watch tools capture the IR receiver output (or the LED drive) and decode protocol, address and command. Sample at 1 MS/s or more for demodulated signals, and well above the carrier frequency if you capture the LED drive.
| Product | Role | Capability | Price ex VAT |
|---|---|---|---|
| Acute TravelLogic 34-Channel | Watch | Logic analyser running Acute's decoder library, which includes NEC, RC-5, RC-6, JVC and IrDA | £1,260 |
| ZeroPlus LAP-C Pro Series | Watch | Logic analyser with NEC, Philips RC-5 and RC-6, and IrDA decoders in ZeroPlus's decoder library; ask us to confirm which come with your LAP-C Pro model | £925 |
Need a decoder for another remote format? Tell us the product or remote and we will check which analyser supports it.
Frequently Asked Questions
How Do I Tell Which IR Protocol a Remote Uses?
Capture one key press at the output of an IR receiver. A 9 ms leader and 4.5 ms space means NEC; a frame of 14 bi-phase bits of about 1.8 ms each means RC-5; a 2.7 ms leader followed by short bi-phase bits means RC-6; an 8.4 ms leader means JVC.
What Carrier Frequency Do IR Remotes Use?
Most use 36 kHz (RC-5, RC-6) or 38 kHz (NEC, JVC). Some formats use 40 or 56 kHz. Match the receiver module to the carrier for best range.
What Is the Toggle Bit?
A bit in RC-5 and RC-6 frames that changes each time a key is pressed again. It lets the receiver tell a held key, which repeats frames with the same toggle value, from a second press of the same key.
Is IrDA the Same as an IR Remote?
No. IrDA is a bidirectional infrared data link that carries UART data, typically up to 115.2 kbit/s in SIR mode. Remote control protocols send short one-way commands on a modulated carrier.
Can I Decode the LED Signal Directly?
Yes, if the decoder accepts modulated input or you filter it, but most decoders are designed for the demodulated receiver output. Probe the LED when you need to check the carrier frequency or duty cycle.
More Protocols
By John Legg CEng, Director, Debug Store. Updated 24 November 2026.