• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Nigel's IR Tutorial

Status
Not open for further replies.

Gandledorf

New Member
Nigel, I had a quick question for you.

Why don't you use an internal counter with interrupts to encode/decode your signal? Is there a reason why you've avoided these?
 

Nigel Goodwin

Super Moderator
Most Helpful Member
Gandledorf said:
Nigel, I had a quick question for you.

Why don't you use an internal counter with interrupts to encode/decode your signal? Is there a reason why you've avoided these?
It's simpler, and easier to understand, not to use interrupts. As long as you are not wanting to do something else at the same time, there's no actual reason to use interrupts. For a simple IR remote receiver, which is doing nothing else apart from waiting for a signal - it's easy to use a simple software loop waiting for the signal, an interrupt driven routine would do exactly the same - except it wouldn't check for a signal, just perform an endless loop while waiting for an interrupt to appear.
 
Status
Not open for further replies.

Latest threads

EE World Online Articles

Loading
Top