Why infrared receiver modules have a normally high output

Forum for the discussion of JP1 Interfaces, hardware hacks, etc.

Moderator: Moderators

Post Reply
NEC1
Posts: 56
Joined: Sat Jul 03, 2010 1:36 am

Why infrared receiver modules have a normally high output

Post by NEC1 »

I found the reason why the vast majority of infrared receiver modules have a normally high output when no signal and/or carrier is detected is because the output of the receiver is usually connected to an interrupt line (in many cases, active low) on a microcontroller.

So when constructing an interface, the output of the infrared detector should be normally high on no signal/carrier and the software should be programmed as such.
"The best thing possible to do with knowledge is to share it".
cauer29
Posts: 236
Joined: Wed Feb 03, 2010 9:15 am

Re: Why infrared receiver modules have a normally high outpu

Post by cauer29 »

NEC1 wrote:I found the reason why the vast majority of infrared receiver modules have a normally high output when no signal and/or carrier is detected is because the output of the receiver is usually connected to an interrupt line (in many cases, active low) on a microcontroller.

So when constructing an interface, the output of the infrared detector should be normally high on no signal/carrier and the software should be programmed as such.
Since just about every microcontroller worth its salt for the last 25 years allows interrupt on high or low, that's not it. More likely it has to do with low power operation. An open collector active low output doesn't draw any power when there's no IR present.

A.A.
Kevin Timmerman
Expert
Posts: 142
Joined: Tue Jan 09, 2007 5:52 pm
Location: West Michigan

Post by Kevin Timmerman »

The IR receiver module would typically be connected to a timer/counter unit input. That allows the exact time of a rising and/or falling edge to be captured and an interrupt triggered conditionally. For some protocols such as Sony and RC5/6 it is necessary to know the time of both edges, for NEC and similar it is possible to decode with only falling edge times, but having both can make the decoder more robust.

When these IR modules first became available the current chip technology typically used all N channel transistors. TTL, NMOS and many common analog chips from the 70's for example. This was much easier to manufacture and thus had lower cost than chips using both N and P channel transistors (CMOS for example). So if you build a chip with just N channel transistors it is common to have open collector outputs or outputs that can sink more current than they can source. This is why you (still) see at lot of busses that are actively driven low and passively pulled high. To improve fan-out and reduce power dissipation in these systems the inactive state is high and the active state is low - the logic levels are inverted.

The active low open collector output also allows for the IR module to operate at a different voltage than the microcontroller.

Executive summary: Lower cost, lower power, easy interface to almost any logic level, legacy
Post Reply